projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test for ticket system, bug #3
[bertos.git]
/
run_tests.sh
diff --git
a/run_tests.sh
b/run_tests.sh
index 0f8eb57b8f49ff924a829768aae4c7b2a116de61..7edc89df78657e397a5860f8d38f96e4b7e302fe 100755
(executable)
--- a/
run_tests.sh
+++ b/
run_tests.sh
@@
-1,25
+1,21
@@
#!/bin/bash
#
#!/bin/bash
#
-# Copyright Develer S.r.l. (http://www.develer.com/)
+# Copyright
2005
Develer S.r.l. (http://www.develer.com/)
# All rights reserved.
#
# Author: Bernardo Innocenti <bernie@develer.com>
#
# $Id$
#
# All rights reserved.
#
# Author: Bernardo Innocenti <bernie@develer.com>
#
# $Id$
#
-# $Log$
-# Revision 1.1 2005/02/01 06:59:24 bernie
-# Really trivial testsuite framework.
-#
VERBOSE=1
CC=gcc
VERBOSE=1
CC=gcc
-CFLAGS="-W -Wall -Wextra"
+CFLAGS="-W -Wall -Wextra
-I. -fno-builtin -D_DEBUG
"
CXX=g++
CXX=g++
-CXXFLAGS="
-W -Wall -Wextra
"
+CXXFLAGS="
$CFLAGS
"
for test in `find . -name "*_test.*"`; do
for test in `find . -name "*_test.*"`; do
@@
-28,10
+24,12
@@
for test in `find . -name "*_test.*"`; do
*.cpp)
$CXX $CXXFLAGS $test -o test || exit 1
./test || exit 1
*.cpp)
$CXX $CXXFLAGS $test -o test || exit 1
./test || exit 1
+ rm -f test
;;
*.c)
$CC $CFLAGS $test -o test || exit 1
./test || exit 1
;;
*.c)
$CC $CFLAGS $test -o test || exit 1
./test || exit 1
+ rm -f test
;;
esac
done
;;
esac
done