aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-08 23:05:39 +0200
committerLoïc Hoguin <[email protected]>2015-09-08 23:05:39 +0200
commitb9c0bd643746ddd3424a91f6dd3cb6ad299cd342 (patch)
tree9439b6476257c0acc92152b77184ef3401ef1409 /test/Makefile
parent6feec02137b014f0bca2904008bac1e6cdae3c43 (diff)
downloaderlang.mk-b9c0bd643746ddd3424a91f6dd3cb6ad299cd342.tar.gz
erlang.mk-b9c0bd643746ddd3424a91f6dd3cb6ad299cd342.tar.bz2
erlang.mk-b9c0bd643746ddd3424a91f6dd3cb6ad299cd342.zip
Add a test for 'make help'
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index d7af832..b987cd8 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -77,7 +77,7 @@ clean-core: clean-core-app clean-core-upgrade
# Core: Building applications.
-CORE_APP_CASES = asn1 error generate-erl generate-erl-include generate-erl-prepend hrl hrl-recursive mib no-makedep xrl xrl-include yrl yrl-include
+CORE_APP_CASES = asn1 error generate-erl generate-erl-include generate-erl-prepend help hrl hrl-recursive mib no-makedep xrl xrl-include yrl yrl-include
CORE_APP_TARGETS = $(addprefix core-app-,$(CORE_APP_CASES))
CORE_APP_CLEAN_TARGETS = $(addprefix clean-,$(CORE_APP_TARGETS))
@@ -486,6 +486,16 @@ core-app-generate-erl-prepend: build clean-core-app-generate-erl-prepend
[{module, M} = code:load_file(M) || M <- Mods], \
halt()"
+core-app-help: build clean-core-app-help
+
+ $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 "Run 'make help' and check that it prints help"
+ $t test -n "`make -C $(APP) help` | grep Usage"
+
core-app-hrl: build clean-core-app-hrl
$i "Bootstrap a new OTP library named $(APP)"