aboutsummaryrefslogtreecommitdiffstats
path: root/test/core_deps.mk
diff options
context:
space:
mode:
Diffstat (limited to 'test/core_deps.mk')
-rw-r--r--test/core_deps.mk28
1 files changed, 26 insertions, 2 deletions
diff --git a/test/core_deps.mk b/test/core_deps.mk
index 174147b..14def21 100644
--- a/test/core_deps.mk
+++ b/test/core_deps.mk
@@ -33,7 +33,7 @@ core-deps-apps: build clean
$t test -f $(APP)/apps/my_app/ebin/my_app.app
$t test -f $(APP)/apps/my_app/ebin/boy.beam
$t test -f $(APP)/apps/my_app/ebin/girl.beam
- $t test -d $(APP)/deps/cowlib
+ $t test -f $(APP)/deps/cowlib/ebin/cowlib.app
# Applications in apps are compiled automatically but not added
# to the application resource file unless they are listed in LOCAL_DEPS.
@@ -49,6 +49,18 @@ core-deps-apps: build clean
[{module, M} = code:load_file(M) || M <- Mods], \
halt()"
+ $i "Clean Cowlib"
+ $t $(MAKE) -C $(APP)/deps/cowlib clean $v
+
+ $i "Check that Cowlib compiled files were removed"
+ $t test ! -e $(APP)/deps/cowlib/ebin/cowlib.app
+
+ $i "Build the application again"
+ $t $(MAKE) -C $(APP) $v
+
+ $i "Check that Cowlib compiled files exist"
+ $t test -f $(APP)/deps/cowlib/ebin/cowlib.app
+
$i "Clean the application"
$t $(MAKE) -C $(APP) clean $v
@@ -427,7 +439,7 @@ core-deps-apps-only: build clean
$t test -f $(APP)/apps/my_app/ebin/my_app_app.beam
$t test -f $(APP)/apps/my_app/ebin/my_app_sup.beam
$t test -f $(APP)/apps/my_app/ebin/my_server.beam
- $t test -d $(APP)/deps/cowlib/
+ $t test -f $(APP)/deps/cowlib/ebin/cowlib.app
$i "Check that the application was compiled correctly"
$t $(ERL) -pa $(APP)/apps/*/ebin/ -eval " \
@@ -436,6 +448,18 @@ core-deps-apps-only: build clean
[{module, M} = code:load_file(M) || M <- Mods], \
halt()"
+ $i "Clean Cowlib"
+ $t $(MAKE) -C $(APP)/deps/cowlib clean $v
+
+ $i "Check that Cowlib compiled files were removed"
+ $t test ! -e $(APP)/deps/cowlib/ebin/cowlib.app
+
+ $i "Build the application again"
+ $t $(MAKE) -C $(APP) $v
+
+ $i "Check that Cowlib compiled files exist"
+ $t test -f $(APP)/deps/cowlib/ebin/cowlib.app
+
$i "Clean the application"
$t $(MAKE) -C $(APP) clean $v