Commit 447f7b81488c80337da854c84950623a1a68f345

Steffen Jaeckel 2016-04-22T00:53:29

mtest takes a while... don't let travis kill it

diff --git a/.travis.yml b/.travis.yml
index 0358fff..b0fb161 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,10 +3,7 @@ compiler:
   - gcc
 
 script:
-  - make
-  - make test
-  - make mtest
-  - ./mtest/mtest 666666 | ./test > test.log
+  - make travis_mtest
   - head -n 5 test.log
   - tail -n 2 test.log
   - ./testme.sh
diff --git a/makefile b/makefile
index f90971c..f19afce 100644
--- a/makefile
+++ b/makefile
@@ -96,6 +96,10 @@ test_standalone: $(LIBNAME) demo/demo.o
 mtest:
 	cd mtest ; $(CC) $(CFLAGS) -O0 mtest.c $(LFLAGS) -o mtest
 
+travis_mtest: test mtest
+	@ for i in `seq 1 10` ; do sleep 500 && echo alive; done &
+	./mtest/mtest 666666 | ./test > test.log
+
 timing: $(LIBNAME)
 	$(CC) $(CFLAGS) -DTIMER demo/timing.c $(LIBNAME) $(LFLAGS) -o ltmtest