From eedd0e3976286959e2801e0c6ccb78b7d4732012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 26 Nov 2018 08:29:04 +0100 Subject: Add test for autopatch with two Rebar projects --- test/core_deps.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test') 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 -- cgit v1.2.3