From b5c61eebdce09f27985db4a44aa13683b75e9c37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 7 Sep 2015 09:51:28 +0200 Subject: Add an unrelated .hrl file in asn1 and mib tests Useful to confirm only the relevant header files get deleted on clean. --- test/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'test/Makefile') 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 -- cgit v1.2.3