diff options
author | Steve Strong <[email protected]> | 2013-08-18 18:26:41 +0200 |
---|---|---|
committer | Steve Strong <[email protected]> | 2013-08-22 13:30:05 +0200 |
commit | 264f9077f6daaad1cadd8b7b31441a5eb0b5bbde (patch) | |
tree | b4df3c6a8cc9ec4fcd93142006dc4b2b102445ff | |
parent | 0c8266dbefef3b15d8012caa64e94eba9209a7e8 (diff) | |
download | erlang.mk-264f9077f6daaad1cadd8b7b31441a5eb0b5bbde.tar.gz erlang.mk-264f9077f6daaad1cadd8b7b31441a5eb0b5bbde.tar.bz2 erlang.mk-264f9077f6daaad1cadd8b7b31441a5eb0b5bbde.zip |
Do not run tests if test directory does not exist
-rw-r--r-- | erlang.mk | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -183,8 +183,11 @@ CT_SUITES_FULL = $(addsuffix _SUITE,$(CT_SUITES)) tests: ERLC_OPTS += -DTEST=1 +'{parse_transform, eunit_autoexport}' tests: clean deps app build-tests - @mkdir -p logs/ - @$(CT_RUN) -suite $(CT_SUITES_FULL) + @if [ -d "test" ] ; \ + then \ + mkdir -p logs/ ; \ + $(CT_RUN) -suite $(CT_SUITES_FULL) ; \ + fi $(gen_verbose) rm -f test/*.beam # Dialyzer. |