aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-11 13:30:24 +0200
committerLoïc Hoguin <[email protected]>2015-09-11 13:30:24 +0200
commit79d3bb3ef7902411a544d8fc4d108cdfb88f4251 (patch)
tree5b23ca07a5a60708ac1e350ab5230b8e1e7c0479 /test
parent6083106b4eb4d27b3d9b8a8a7582ae298801d7d2 (diff)
parentcefe0e96af6187a8ed57a2f1c89784c485ec5f32 (diff)
downloaderlang.mk-79d3bb3ef7902411a544d8fc4d108cdfb88f4251.tar.gz
erlang.mk-79d3bb3ef7902411a544d8fc4d108cdfb88f4251.tar.bz2
erlang.mk-79d3bb3ef7902411a544d8fc4d108cdfb88f4251.zip
Merge branch 'clean_erlang_mk_tmp' of https://github.com/ingwinlu/erlang.mk
Diffstat (limited to 'test')
-rw-r--r--test/Makefile24
1 files changed, 20 insertions, 4 deletions
diff --git a/test/Makefile b/test/Makefile
index f2e5319..81e9ca1 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -88,12 +88,12 @@ $(eval $(foreach t,$(patsubst %.mk,%,$(patsubst plugin_%,%,$(wildcard plugin_*.m
# Tests that don't easily fit into other categories.
-core:: core-clean-crash-dump core-help
-clean-core:: clean-core-clean-crash-dump clean-core-help
+core:: core-clean-crash-dump core-distclean-tmp core-help
+clean-core:: clean-core-clean-crash-dump clean-core-distclean-tmp clean-core-help
-.PHONY: core-clean-crash-dump core-help clean-core-clean-crash-dump clean-core-help
+.PHONY: core-clean-crash-dump core-distclean-tmp core-help clean-core-clean-crash-dump clean-core-distclean-tmp clean-core-help
-clean-core-clean-crash-dump clean-core-help:
+clean-core-clean-crash-dump clean-core-distclean-tmp clean-core-help:
$t rm -rf $(APP_TO_CLEAN)/
core-clean-crash-dump: build clean-core-clean-crash-dump
@@ -112,6 +112,22 @@ core-clean-crash-dump: build clean-core-clean-crash-dump
$i "Check that the crash dump is removed"
$t test ! -e $(APP)/erl_crash.dump
+core-distclean-tmp: build clean-core-distclean-tmp
+
+ $i "Bootstrap a new OTP application named $(APP)"
+ $t mkdir $(APP)/
+ $t cp ../erlang.mk $(APP)/
+ $t $(MAKE) -C $(APP) -f erlang.mk bootstrap all $v
+
+ $i "Check that a .erlang.mk directory exists"
+ $t test -d $(APP)/.erlang.mk
+
+ $i "Distclean the application"
+ $t $(MAKE) -C $(APP) distclean $v
+
+ $i "Check if .erlang.mk directory got removed"
+ $t test ! -e $(APP)/.erlang.mk
+
core-help: build clean-core-help
$i "Bootstrap a new OTP library named $(APP)"