Просмотр исходного кода

Add test for autopatch with two Rebar projects

Loïc Hoguin 6 лет назад
Родитель
Сommit
eedd0e3976
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      test/core_deps.mk

+ 14 - 0
test/core_deps.mk

@@ -26,6 +26,20 @@ ifneq ($(PLATFORM),msys2)
 	$t test -f $(APP)/deps/erlsha2/priv/erlsha2_nif.so
 	$t test -f $(APP)/deps/erlsha2/priv/erlsha2_nif.so
 endif
 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)
 ifneq ($(PLATFORM),msys2)
 core-deps-build-c-8cc: build clean
 core-deps-build-c-8cc: build clean