diff options
author | Loïc Hoguin <[email protected]> | 2018-11-24 00:09:00 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-11-24 00:11:34 +0100 |
commit | acd16b52d11627ca66b858b4c3d39e2bed41e28f (patch) | |
tree | ed13b5b7a71a423f20c474529609f2123ddc8cec /test/plugin_ct.mk | |
parent | f713103ddc22ac8fdaf80198dc7e24f9032c84b1 (diff) | |
download | erlang.mk-acd16b52d11627ca66b858b4c3d39e2bed41e28f.tar.gz erlang.mk-acd16b52d11627ca66b858b4c3d39e2bed41e28f.tar.bz2 erlang.mk-acd16b52d11627ca66b858b4c3d39e2bed41e28f.zip |
Improve ct/eunit tests
Also don't run eunit if there's no src/test directory.
Diffstat (limited to 'test/plugin_ct.mk')
-rw-r--r-- | test/plugin_ct.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/plugin_ct.mk b/test/plugin_ct.mk index d2df526..4c5945a 100644 --- a/test/plugin_ct.mk +++ b/test/plugin_ct.mk @@ -14,7 +14,7 @@ ct-all: build clean $t $(MAKE) -C $(APP) -f erlang.mk bootstrap $v $i "Check that Common Test detects no tests" - $t $(MAKE) -C $(APP) ct | grep -q "Nothing to be done for 'ct'." + $t $(MAKE) -C $(APP) ct | grep -c "Nothing to be done for 'ct'." | grep -q 1 $i "Generate a Common Test suite" $t mkdir $(APP)/test @@ -100,7 +100,7 @@ ct-apps-only: build clean "random_int() -> 4." > $(APP)/apps/my_lib/src/my_lib.erl $i "Check that Common Test detects no tests" - $t $(MAKE) -C $(APP) ct | grep -q "Nothing to be done for 'ct'." + $t $(MAKE) -C $(APP) ct | grep -c "Nothing to be done for 'ct'." | grep -q 2 $i "Generate a Common Test suite in my_app" $t mkdir $(APP)/apps/my_app/test |