log: Retouch documentation; Rearrenge level logic; Rename LOG_VERBOSITY to LOG_FORMAT...
[bertos.git] / bertos / run_tests.sh
index 74b391508418d8bbb046f7c2cc300ee2887887a4..77689f48353b5a93f9057802fcc20cc55f44d582 100755 (executable)
@@ -3,21 +3,22 @@
 # Copyright 2005 Develer S.r.l. (http://www.develer.com/)
 # All rights reserved.
 #
-# Author: Bernardo Innocenti <bernie@develer.com>
+# Author: Bernie Innocenti <bernie@codewiz.org>
 #
 # $Id$
 #
 
-
 VERBOSE=1
 
 CC=gcc
-CFLAGS="-W -Wall -Wextra -I. -fno-builtin -D_DEBUG -D_TEST"
+CFLAGS="-W -Wall -Wextra -I. -Iemul -std=gnu99 -fno-builtin -D_DEBUG -D_TEST -DARCH=ARCH_EMUL"
 
 CXX=g++
 CXXFLAGS="$CFLAGS"
 
-for test in `find . -name "*_test.*"`; do
+TESTS=${TESTS:-`find . -name "*_test.c*"`}
+
+for test in $TESTS; do
        [ $VERBOSE -gt 0 ] && echo "Running $test..."
        case "$test" in
        *.cpp)