Changeset 1104 in MondoRescue for branches/stable/mondo/src/test
- Timestamp:
- Feb 7, 2007, 8:00:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/test/mktest
r1065 r1104 7 7 8 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"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 -fno-strict-aliasing -O2 -g -I../common -I../include" 10 10 11 11 echo "Generating test-msg" … … 15 15 echo "Generating test-conf" 16 16 gcc $OPT test-conf.c $lib -o test-conf 17 echo "Generating test-mem" 18 gcc $OPT test-mem.c $lib -o test-mem 17 19 18 20 echo "Testing against previous run" 19 for f in test-conf test-string test-msg ; do21 for f in test-conf test-string test-msg test-mem; do 20 22 chmod 755 $f 21 23 ./$f > /tmp/$f.res … … 23 25 if [ $? -ne 0 ]; then 24 26 echo "$f test KO !!" 27 else 28 echo "$f test OK" 25 29 fi 26 30 valgrind -q --error-exitcode=1 --leak-check=yes ./$f 2>&1 > /tmp/valgrind-$f.res
Note:
See TracChangeset
for help on using the changeset viewer.