Changeset 1079 in MondoRescue for trunk/mondo/src/test/mktest
- Timestamp:
- Jan 28, 2007, 5:58:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/test/mktest
r900 r1079 6 6 # 7 7 8 gcc -O2 -I../common -I../lib test-conf.c ../lib/mr_conf.c ../common/libmondo-msg.c -o test-conf 9 gcc -O2 -I../common -I../lib test-string.c ../lib/mr_str.c -o test-string 8 lib="../lib/mr_conf.c ../lib/mr_msg.c ../lib/mr_err.c ../lib/mr_mem.c" 9 OPT="-Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -Wstrict-prototypes -Wshadow -funsigned-char -Wunused -Winit-self -Wcast-align -O2 -g -I../common -I../include" 10 10 11 for f in "test-conf"; do 11 echo "Generating test-msg" 12 gcc $OPT test-msg.c $lib -o test-msg 13 echo "Generating test-string" 14 gcc $OPT test-string.c ../lib/mr_str.c $lib -o test-string 15 echo "Generating test-conf" 16 gcc $OPT test-conf.c $lib -o test-conf 17 18 echo "Testing against previous run" 19 for f in test-conf test-string test-msg; do 12 20 chmod 755 $f 13 21 ./$f > /tmp/$f.res … … 16 24 echo "$f test KO !!" 17 25 fi 26 valgrind -q --error-exitcode=1 --leak-check=yes ./$f 2>&1 > /tmp/valgrind-$f.res 27 if [ $? -ne 0 ]; then 28 echo "valgrind $f test KO !!" 29 fi 18 30 done
Note:
See TracChangeset
for help on using the changeset viewer.