Changeset 1079 in MondoRescue for trunk/mondo/src/test
- Timestamp:
- Jan 28, 2007, 5:58:18 PM (17 years ago)
- Location:
- trunk/mondo/src/test
- Files:
-
- 6 edited
- 2 copied
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 -
trunk/mondo/src/test/mondo.conf
r531 r1079 5 5 # Test conf file for mondo 6 6 testfalse = TRUE 7 # For msg tests 8 logfile = "/tmp/mondo-test.log" 9 loglevel = 3 -
trunk/mondo/src/test/test-conf.c
-
Property svn:eol-style
set to
native
r900 r1079 7 7 8 8 #include <stdio.h> 9 #include "my-stuff.h" 9 #include <stdlib.h> 10 10 11 #include "mr_conf.h" 11 12 #include "mr_mem.h" … … 14 15 int g_buffer_pid = 0; 15 16 16 main() {17 int main(void) { 17 18 int ret = 0; 18 19 int i = 0; -
Property svn:eol-style
set to
-
trunk/mondo/src/test/test-conf.res
r561 r1079 1 1 Integer : ***3*** 2 2 Float : ***32.670000*** 3 String : *** "The big string"***3 String : ***The big string*** -
trunk/mondo/src/test/test-string.c
-
Property svn:eol-style
set to
native
r900 r1079 6 6 */ 7 7 8 #define _GNU_SOURCE9 8 #include <string.h> 10 9 #include <stdlib.h> 11 10 #include <stdio.h> 12 11 13 #include "my-stuff.h"14 12 #include "mr_str.h" 15 13 #include "mr_mem.h" 16 14 17 main() {15 int main(void) { 18 16 const char delims[3] = ": \n"; 19 17 … … 31 29 } 32 30 mr_free(string); 31 33 32 exit(0); 34 33 } -
Property svn:eol-style
set to
-
trunk/mondo/src/test/test-string.res
r561 r1079 6 6 token=|hda1[0]|, lastpos=28 7 7 token=|hda12[3]|, lastpos=37 8 token=|hda6[2] ]|, lastpos=459 token=|hda5[1] ]|, lastpos=538 token=|hda6[2]|, lastpos=45 9 token=|hda5[1]|, lastpos=53
Note:
See TracChangeset
for help on using the changeset viewer.