diff options
author | Loïc Hoguin <[email protected]> | 2015-09-07 09:51:28 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-09-07 09:51:28 +0200 |
commit | b5c61eebdce09f27985db4a44aa13683b75e9c37 (patch) | |
tree | 42cd6444c36e70a230e635bc7571b84e83522016 /test/Makefile | |
parent | f7e3397596dc80f172b44305d4de69b1fe4ae7cc (diff) | |
download | erlang.mk-b5c61eebdce09f27985db4a44aa13683b75e9c37.tar.gz erlang.mk-b5c61eebdce09f27985db4a44aa13683b75e9c37.tar.bz2 erlang.mk-b5c61eebdce09f27985db4a44aa13683b75e9c37.zip |
Add an unrelated .hrl file in asn1 and mib tests
Useful to confirm only the relevant header files get
deleted on clean.
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile index 481c26c..82837fa 100644 --- a/test/Makefile +++ b/test/Makefile @@ -101,6 +101,10 @@ core-app-asn1: build clean-core-app-asn1 $t printf "%s\n" "-module(use_cap)." "-include(\"CAP.hrl\")." > $(APP)/src/use_cap.erl $t printf "%s\n" "-module(use_def)." "-include(\"Def.hrl\")." > $(APP)/src/use_def.erl + $i "Generate an unrelated .hrl file" + $t mkdir $(APP)/include/ + $t touch $(APP)/include/unrelated.hrl + $i "Build the application" $t $(MAKE) -C $(APP) $v @@ -158,7 +162,7 @@ core-app-asn1: build clean-core-app-asn1 $t test -f $(APP)/erlang.mk $t test -f $(APP)/asn1/CAP.asn1 $t test -f $(APP)/asn1/Def.asn1 - $t test -d $(APP)/include/ + $t test -f $(APP)/include/unrelated.hrl $t test -f $(APP)/src/$(APP).app.src $t test -f $(APP)/src/use_cap.erl $t test -f $(APP)/src/use_def.erl @@ -670,6 +674,10 @@ core-app-mib: build clean-core-app-mib $t printf "%s\n" "-module(use_v1)." "-include(\"EX1-MIB.hrl\")." > $(APP)/src/use_v1.erl $t printf "%s\n" "-module(use_v2)." "-include(\"OTP-REG.hrl\")." > $(APP)/src/use_v2.erl + $i "Generate an unrelated .hrl file" + $t mkdir $(APP)/include/ + $t touch $(APP)/include/unrelated.hrl + $i "Build the application" $t $(MAKE) -C $(APP) $v @@ -719,7 +727,7 @@ core-app-mib: build clean-core-app-mib $i "Check that source files still exist" $t test -f $(APP)/Makefile $t test -f $(APP)/erlang.mk - $t test -d $(APP)/include/ + $t test -f $(APP)/include/unrelated.hrl $t test -f $(APP)/mibs/EX1-MIB.mib $t test -f $(APP)/mibs/OTP-REG.mib $t test -f $(APP)/src/$(APP).app.src |