projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix timer test
[bertos.git]
/
bertos
/
run_tests.sh
diff --git
a/bertos/run_tests.sh
b/bertos/run_tests.sh
index 7edc89df78657e397a5860f8d38f96e4b7e302fe..349dc9ef4ea613098305fb3d3ac12e9847d2382d 100755
(executable)
--- a/
bertos/run_tests.sh
+++ b/
bertos/run_tests.sh
@@
-3,33
+3,33
@@
# Copyright 2005 Develer S.r.l. (http://www.develer.com/)
# All rights reserved.
#
# Copyright 2005 Develer S.r.l. (http://www.develer.com/)
# All rights reserved.
#
-# Author: Bern
ardo Innocenti <bernie@develer.com
>
+# Author: Bern
ie Innocenti <bernie@codewiz.org
>
#
# $Id$
#
#
# $Id$
#
-
VERBOSE=1
CC=gcc
VERBOSE=1
CC=gcc
-CFLAGS="-W -Wall -Wextra -I
. -fno-builtin -D_DEBUG
"
+CFLAGS="-W -Wall -Wextra -I
bertos -Ibertos/emul -std=gnu99 -fno-builtin -D_DEBUG -D_TEST -DARCH=ARCH_EMUL
"
CXX=g++
CXXFLAGS="$CFLAGS"
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)
[ $VERBOSE -gt 0 ] && echo "Running $test..."
case "$test" in
*.cpp)
- $CXX $CXXFLAGS $test -o
test
|| exit 1
- ./test
|| exit 1
- rm -f test
+ $CXX $CXXFLAGS $test -o
images/testcase
|| exit 1
+ ./test
case || echo "FAILED: $test"
+ rm -f test
case
;;
*.c)
;;
*.c)
- $CC $CFLAGS $test -o test || exit 1
- ./test
|| exit 1
- rm -f test
+ $CC $CFLAGS $test -o test
case
|| exit 1
+ ./test
case || echo "FAILED: $test"
+ rm -f test
case
;;
esac
done
;;
esac
done