Permalink
Browse files

Added runtests file.

  • Loading branch information...
1 parent 312488c commit f868144b9bee959c60f592dbb50ddc2bc3bbf70e @carlosbrando committed Apr 14, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 tests/runtests.sh
View
@@ -0,0 +1,19 @@
+echo "Running unit tests:"
+
+for i in tests/*_tests
+do
+ if test -f $i
+ then
+ if $VALGRIND ./$i 2>> tests/tests.log
+ then
+ echo $i PASS
+ else
+ echo "ERROR in test $i: here's tests/tests.log"
+ echo "------"
+ tail tests/tests.log
+ exit 1
+ fi
+ fi
+done
+
+echo ""

0 comments on commit f868144

Please sign in to comment.