run_tests: unbreak and let TESTS be overridden externally
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 7 Aug 2008 11:13:54 +0000 (11:13 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 7 Aug 2008 11:13:54 +0000 (11:13 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1566 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/run_tests.sh

index 7bce5944cd63e27490aa2b6064358930532281b9..0e3401b2bf28229b3daa50ed65d4e324fa3d42d5 100755 (executable)
 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.*"`}
+
+for test in $TESTS; do
        [ $VERBOSE -gt 0 ] && echo "Running $test..."
        case "$test" in
        *.cpp)