aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-05-14 17:42:11 +0200
committerLoïc Hoguin <[email protected]>2018-05-14 17:42:11 +0200
commit0a550d2deb8f14ebedd3567e04f749ff6e264df2 (patch)
tree2db3ec7493c22d0d3430c0c3f791a2a511267fe1
parentce0160ead3306313d85debc951e8f96e8e553d53 (diff)
downloaderlang.mk-0a550d2deb8f14ebedd3567e04f749ff6e264df2.tar.gz
erlang.mk-0a550d2deb8f14ebedd3567e04f749ff6e264df2.tar.bz2
erlang.mk-0a550d2deb8f14ebedd3567e04f749ff6e264df2.zip
Make some of the new tests more quiet
-rw-r--r--test/core_app.mk21
1 files changed, 8 insertions, 13 deletions
diff --git a/test/core_app.mk b/test/core_app.mk
index 08fa0a0..74f7472 100644
--- a/test/core_app.mk
+++ b/test/core_app.mk
@@ -1954,7 +1954,6 @@ core-app-hrl-multiapps-include-lib: build clean
$i "Add my_lib as LOCAL_DEPS of my_app"
$t echo "LOCAL_DEPS = my_lib" >> $(APP)/apps/my_app/Makefile
-
$i "Generate .hrl files"
$t mkdir $(APP)/apps/my_lib/include/
$t touch $(APP)/apps/my_lib/include/blue.hrl $(APP)/apps/my_lib/include/red.hrl
@@ -2058,7 +2057,6 @@ core-app-hrl-multiapps-include-lib-recursive: build clean
$i "Add my_lib as LOCAL_DEPS of my_app"
$t echo "LOCAL_DEPS = my_lib" >> $(APP)/apps/my_app/Makefile
-
$i "Generate .hrl files"
$t mkdir $(APP)/apps/my_lib/include/
$t touch $(APP)/apps/my_lib/include/blue.hrl $(APP)/apps/my_lib/include/red.hrl $(APP)/apps/my_lib/include/pill.hrl
@@ -2435,13 +2433,12 @@ core-app-hrl-include-loop: build clean
$t printf "%s\n" "-module(use_blue)." "-include(\"blue.hrl\")." > $(APP)/src/use_blue.erl
$t printf "%s\n" "-module(use_red)." "-include(\"red.hrl\")." > $(APP)/src/use_red.erl
-
$i "Build the application. Compilation should fail"
$t ! $(MAKE) -C $(APP) $v
$i "Check .d file"
- $t grep "src/use_blue.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
- $t grep "src/use_red.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
+ $t grep -q "src/use_blue.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
+ $t grep -q "src/use_red.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
core-app-hrl-include_lib-loop: build clean
@@ -2459,13 +2456,12 @@ core-app-hrl-include_lib-loop: build clean
$t printf "%s\n" "-module(use_blue)." "-include_lib(\"blue.hrl\")." > $(APP)/src/use_blue.erl
$t printf "%s\n" "-module(use_red)." "-include_lib(\"red.hrl\")." > $(APP)/src/use_red.erl
-
$i "Build the application. Compilation should fail"
$t ! $(MAKE) -C $(APP) $v
$i "Check .d file"
- $t grep "src/use_blue.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
- $t grep "src/use_red.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
+ $t grep -q "src/use_blue.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
+ $t grep -q "src/use_red.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
core-app-hrl-include-loop-define-protected: build clean
@@ -2487,8 +2483,8 @@ core-app-hrl-include-loop-define-protected: build clean
$t ! $(MAKE) -C $(APP) $v ; ret=$$?
$i "Check .d file"
- $t grep "src/use_blue.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
- $t grep "src/use_red.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
+ $t grep -q "src/use_blue.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
+ $t grep -q "src/use_red.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
core-app-hrl-include_lib-loop-define-protected: build clean
@@ -2510,8 +2506,8 @@ core-app-hrl-include_lib-loop-define-protected: build clean
$t $(MAKE) -C $(APP) $v ; ret=$$?
$i "Check .d file"
- $t grep "src/use_blue.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
- $t grep "src/use_red.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
+ $t grep -q "src/use_blue.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
+ $t grep -q "src/use_red.erl:: include/blue.hrl include/red.hrl; @touch" $(APP)/$(APP).d
core-app-hrl-multiapps-include-loop-define-protected: build clean
@@ -2529,7 +2525,6 @@ core-app-hrl-multiapps-include-loop-define-protected: build clean
$i "Add my_lib as LOCAL_DEPS of my_app"
$t echo "LOCAL_DEPS = my_lib" >> $(APP)/apps/my_app/Makefile
-
$i "Generate .hrl files"
$t mkdir $(APP)/apps/my_lib/include/
$t printf "%s\n" "-ifndef(BLUE_HRL_LOADED)." "-define(BLUE_HRL_LOADED,true)." "-include_lib(\"red.hrl\")." "-endif." > $(APP)/apps/my_lib/include/blue.hrl