aboutsummaryrefslogtreecommitdiffstats
path: root/test/core_apps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-12-07 19:40:02 +0100
committerLoïc Hoguin <[email protected]>2018-12-07 19:40:02 +0100
commita3cd50792d0ed1c5dfee66ff79ee7117057e9970 (patch)
tree79c76f50159c7d63fc313628b8b0715831537b42 /test/core_apps.mk
parent1fb70e0d435e5058c558f89d223a0f6ba3bd5342 (diff)
downloaderlang.mk-a3cd50792d0ed1c5dfee66ff79ee7117057e9970.tar.gz
erlang.mk-a3cd50792d0ed1c5dfee66ff79ee7117057e9970.tar.bz2
erlang.mk-a3cd50792d0ed1c5dfee66ff79ee7117057e9970.zip
Autopatch: allow configuring REBAR_GIT and REBAR_COMMIT
And use this in the tests to fetch Rebar only once and then clone from the local repository. This should speed up tests a little.
Diffstat (limited to 'test/core_apps.mk')
-rw-r--r--test/core_apps.mk26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/core_apps.mk b/test/core_apps.mk
index 14cbb37..47040d0 100644
--- a/test/core_apps.mk
+++ b/test/core_apps.mk
@@ -6,7 +6,7 @@ CORE_APPS_TARGETS = $(call list_targets,core-apps)
core-apps: $(CORE_APPS_TARGETS)
-core-apps-build: build clean
+core-apps-build: init
$i "Bootstrap a new OTP library named $(APP)"
$t mkdir $(APP)/
@@ -112,7 +112,7 @@ endif
[{module, M} = code:load_file(M) || M <- Mods], \
halt()"
-core-apps-build-count: build clean
+core-apps-build-count: init
$i "Bootstrap a new OTP library named $(APP)"
$t mkdir $(APP)/
@@ -148,7 +148,7 @@ core-apps-build-count: build clean
$t test "`wc -c $(APP)/apps/app_one/count | awk '{printf $$1}'`" -eq 1
$t test "`wc -c $(APP)/apps/app_two/count | awk '{printf $$1}'`" -eq 1
-core-apps-conflict: build clean
+core-apps-conflict: init
$i "Bootstrap a new OTP library named $(APP)"
$t mkdir $(APP)/
@@ -167,7 +167,7 @@ core-apps-conflict: build clean
$i "Check that Cowlib wasn't fetched"
$t test ! -e $(APP)/deps/cowlib
-core-apps-deep-conflict: build clean
+core-apps-deep-conflict: init
$i "Bootstrap a new OTP library named $(APP)"
$t mkdir $(APP)/
@@ -186,7 +186,7 @@ core-apps-deep-conflict: build clean
$i "Check that Cowlib wasn't fetched"
$t test ! -e $(APP)/deps/cowlib
-core-apps-dir: build clean
+core-apps-dir: init
$i "Bootstrap a new OTP library named $(APP)"
$t mkdir $(APP)/
@@ -257,7 +257,7 @@ endif
$i "Check that all relevant files were removed"
$t test ! -e $(APP)/deps
-core-apps-dir-include-lib: build clean
+core-apps-dir-include-lib: init
$i "Bootstrap a new OTP library named $(APP)"
$t mkdir $(APP)/
@@ -316,7 +316,7 @@ core-apps-dir-include-lib: build clean
$t test -f $(APP)/deep/libs/girl_app/ebin/girl_app.app
$t test -f $(APP)/deep/libs/girl_app/ebin/girl.beam
-core-apps-new-app: build clean
+core-apps-new-app: init
$i "Bootstrap a new OTP library named $(APP)"
$t mkdir $(APP)/
@@ -361,7 +361,7 @@ endif
{module, my_server} = code:load_file(my_server), \
halt()"
-core-apps-new-lib: build clean
+core-apps-new-lib: init
$i "Bootstrap a new OTP library named $(APP)"
$t mkdir $(APP)/
@@ -400,7 +400,7 @@ endif
{module, my_server} = code:load_file(my_server), \
halt()"
-core-apps-new-tpl: build clean
+core-apps-new-tpl: init
$i "Bootstrap a new OTP library named $(APP)"
$t mkdir $(APP)/
@@ -432,7 +432,7 @@ core-apps-new-tpl: build clean
[{module, M} = code:load_file(M) || M <- Mods], \
halt()"
-core-apps-local-deps: build clean
+core-apps-local-deps: init
$i "Bootstrap a new OTP library named $(APP)"
$t mkdir $(APP)/
@@ -502,7 +502,7 @@ core-apps-local-deps: build clean
$t test -f $(APP)/apps/my_app_2/ebin/my_app_2_sup.beam
$t test -f $(APP)/deps/lager/ebin/lager.app
-core-apps-local-deps-circular: build clean
+core-apps-local-deps-circular: init
$i "Bootstrap a new OTP library named $(APP)"
$t mkdir $(APP)/
@@ -536,7 +536,7 @@ core-apps-local-deps-circular: build clean
$t test -f $(APP)/apps/my_app_2/ebin/my_app_2_app.beam
$t test -f $(APP)/apps/my_app_2/ebin/my_app_2_sup.beam
-core-apps-only: build clean
+core-apps-only: init
$i "Create a multi application repository with no root application"
$t mkdir $(APP)/
@@ -601,7 +601,7 @@ core-apps-only: build clean
$i "Check that all relevant files were removed"
$t test ! -e $(APP)/deps
-core-apps-toplevel-local-deps: build clean
+core-apps-toplevel-local-deps: init
$i "Bootstrap a new OTP library named $(APP)"
$t mkdir $(APP)/