From 167b1cfa4d4f4a63d7ddfb2e3582ee83e8e7cb40 Mon Sep 17 00:00:00 2001 From: bernie Date: Thu, 7 Aug 2008 11:13:54 +0000 Subject: [PATCH] run_tests: unbreak and let TESTS be overridden externally git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1566 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/run_tests.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bertos/run_tests.sh b/bertos/run_tests.sh index 7bce5944..0e3401b2 100755 --- a/bertos/run_tests.sh +++ b/bertos/run_tests.sh @@ -12,12 +12,14 @@ 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) -- 2.25.1