aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Strong <[email protected]>2013-08-18 18:26:41 +0200
committerSteve Strong <[email protected]>2013-08-22 13:30:05 +0200
commit264f9077f6daaad1cadd8b7b31441a5eb0b5bbde (patch)
treeb4df3c6a8cc9ec4fcd93142006dc4b2b102445ff
parent0c8266dbefef3b15d8012caa64e94eba9209a7e8 (diff)
downloaderlang.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.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/erlang.mk b/erlang.mk
index 7cbe768..13e8a70 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -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.