aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-26 08:29:04 +0100
committerLoïc Hoguin <[email protected]>2018-11-26 08:29:04 +0100
commiteedd0e3976286959e2801e0c6ccb78b7d4732012 (patch)
tree7d1f2c93a1427aaa38d2f71ad970c4a666b4e3ac /test
parent8f8088ac4df9b4d4660f0b15d09f3fdaa991bea1 (diff)
downloaderlang.mk-eedd0e3976286959e2801e0c6ccb78b7d4732012.tar.gz
erlang.mk-eedd0e3976286959e2801e0c6ccb78b7d4732012.tar.bz2
erlang.mk-eedd0e3976286959e2801e0c6ccb78b7d4732012.zip
Add test for autopatch with two Rebar projects
Diffstat (limited to 'test')
-rw-r--r--test/core_deps.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/core_deps.mk b/test/core_deps.mk
index 3403f58..79e1e9b 100644
--- a/test/core_deps.mk
+++ b/test/core_deps.mk
@@ -26,6 +26,20 @@ ifneq ($(PLATFORM),msys2)
$t test -f $(APP)/deps/erlsha2/priv/erlsha2_nif.so
endif
+# This test is expected to fail when run in parallel and flock/lockf is not available.
+core-deps-autopatch-two-rebar: build clean
+
+ $i "Bootstrap a new OTP library named $(APP)"
+ $t mkdir $(APP)/
+ $t cp ../erlang.mk $(APP)/
+ $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
+
+ $i "Add two Rebar projects to the list of dependencies"
+ $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = epgsql mochiweb\n"}' $(APP)/Makefile
+
+ $i "Build the application"
+ $t $(MAKE) -C $(APP) $v
+
ifneq ($(PLATFORM),msys2)
core-deps-build-c-8cc: build clean