Use new header locations everywhere
[bertos.git] / bertos / run_tests.sh
index 7edc89df78657e397a5860f8d38f96e4b7e302fe..77689f48353b5a93f9057802fcc20cc55f44d582 100755 (executable)
@@ -3,22 +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"
+CFLAGS="-W -Wall -Wextra -I. -Iemul -std=gnu99 -fno-builtin -D_DEBUG -D_TEST -DARCH=ARCH_EMUL"
 
 CXX=g++
 CXXFLAGS="$CFLAGS"
 
+TESTS=${TESTS:-`find . -name "*_test.c*"`}
 
-for test in `find . -name "*_test.*"`; do
+for test in $TESTS; do
        [ $VERBOSE -gt 0 ] && echo "Running $test..."
        case "$test" in
        *.cpp)