Permalink
Browse files

add targets for running unit tests

SVN Revision: 716
  • Loading branch information...
1 parent ce6f0e6 commit 83995e4c76170d5063f568a106fd0af726e01c91 @nniclausse nniclausse committed Apr 12, 2007
Showing with 12 additions and 2 deletions.
  1. +12 −2 Makefile.in
View
@@ -42,9 +42,14 @@ else
ifeq ($(TYPE),native)
OPT:=+native
else
- OPT =
+ OPT = +strict_record_tests
endif
endif
+
+ifeq ($(TYPE),test)
+OPT =+export_all
+endif
+
INC = ./include
CC = $(ERLC)
@@ -136,7 +141,12 @@ tsung: Makefile config.status $(PERL_SCRIPTS) tsung.sh tsung.spec $(TARGET) $(RE
buildtest: $(TEST_TARGET)
-test: buildtest $(CONFFILE)
+fulltest: clean test
+
+test:
+ $(MAKE) TYPE=test dotest
+
+dotest: tsung buildtest $(CONFFILE)
erl -pa ./ebin -s eunit test ts_test_all -s init stop
all: clean tsung

0 comments on commit 83995e4

Please sign in to comment.