Changeset 1139 in MondoRescue for branches/stable/mondo/src/test/mktest
- Timestamp:
- Feb 11, 2007, 7:04:12 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/test/mktest
r1104 r1139 6 6 # 7 7 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 -W init-self -Wcast-align -fno-strict-aliasing -O2 -g -I../common -I../include"8 lib="../lib/mr_conf.c ../lib/mr_msg.c ../lib/mr_err.c ../lib/mr_mem.c ../lib/mr_str.c ../lib/mr_file.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 -Wcast-align -fno-strict-aliasing -O2 -g -I../common -I../include" 10 10 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 echo "Generating test-mem" 18 gcc $OPT test-mem.c $lib -o test-mem 11 prg="test-conf test-string test-msg test-mem" 12 13 for i in $prg ; do 14 echo "Generating $i" 15 gcc $OPT $i.c $lib -o $i 16 done 19 17 20 18 echo "Testing against previous run" 21 for f in test-conf test-string test-msg test-mem; do19 for f in $prg ; do 22 20 chmod 755 $f 23 21 ./$f > /tmp/$f.res … … 28 26 echo "$f test OK" 29 27 fi 28 done 29 for f in $prg ; do 30 30 valgrind -q --error-exitcode=1 --leak-check=yes ./$f 2>&1 > /tmp/valgrind-$f.res 31 31 if [ $? -ne 0 ]; then
Note:
See TracChangeset
for help on using the changeset viewer.