aboutsummaryrefslogtreecommitdiffstats
path: root/test/plugin_bootstrap.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-18 14:34:58 +0200
committerLoïc Hoguin <[email protected]>2015-09-18 14:34:58 +0200
commit5bcfeece2f55cd8570b1356d9982756e99f90b40 (patch)
treeb3ec855b58fbdb522a23c5739dad905753232a37 /test/plugin_bootstrap.mk
parent9c3f9f1dfe73738d182ddd9832406b2ab61293f7 (diff)
downloaderlang.mk-5bcfeece2f55cd8570b1356d9982756e99f90b40.tar.gz
erlang.mk-5bcfeece2f55cd8570b1356d9982756e99f90b40.tar.bz2
erlang.mk-5bcfeece2f55cd8570b1356d9982756e99f90b40.zip
Test "no .app.src" by default, test legacy with LEGACY=1
Also fixes two bugs with the new "no .app.src" method. All tests now pass with both methods. We can now test specific cases with make check c=$CASE.
Diffstat (limited to 'test/plugin_bootstrap.mk')
-rw-r--r--test/plugin_bootstrap.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/plugin_bootstrap.mk b/test/plugin_bootstrap.mk
index b927a92..16bfb58 100644
--- a/test/plugin_bootstrap.mk
+++ b/test/plugin_bootstrap.mk
@@ -22,7 +22,9 @@ bootstrap-app: build clean-bootstrap-app
$i "Check that all bootstrapped files exist"
$t test -f $(APP)/Makefile
+ifdef LEGACY
$t test -f $(APP)/src/$(APP).app.src
+endif
$t test -f $(APP)/src/$(APP)_app.erl
$t test -f $(APP)/src/$(APP)_sup.erl
@@ -51,7 +53,9 @@ bootstrap-lib: build clean-bootstrap-lib
$i "Check that all bootstrapped files exist"
$t test -f $(APP)/Makefile
+ifdef LEGACY
$t test -f $(APP)/src/$(APP).app.src
+endif
$i "Build the application"
$t $(MAKE) -C $(APP) $v
@@ -77,7 +81,9 @@ bootstrap-rel: build clean-bootstrap-rel
$t test -f $(APP)/relx.config
$t test -f $(APP)/rel/sys.config
$t test -f $(APP)/rel/vm.args
+ifdef LEGACY
$t test -f $(APP)/src/$(APP).app.src
+endif
$t test -f $(APP)/src/$(APP)_app.erl
$t test -f $(APP)/src/$(APP)_sup.erl