Changeset 1079 in MondoRescue for trunk/mondo/src/test


Ignore:
Timestamp:
Jan 28, 2007, 5:58:18 PM (17 years ago)
Author:
Bruno Cornec
Message:

merge -r1045:1078 £SVN_M/branches/stable

Location:
trunk/mondo/src/test
Files:
6 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/mondo/src/test/mktest

    r900 r1079  
    66#
    77
    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
     8lib="../lib/mr_conf.c ../lib/mr_msg.c ../lib/mr_err.c ../lib/mr_mem.c"
     9OPT="-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"
    1010
    11 for f in "test-conf"; do
     11echo "Generating test-msg"
     12gcc $OPT test-msg.c $lib -o test-msg
     13echo "Generating test-string"
     14gcc $OPT test-string.c ../lib/mr_str.c $lib -o test-string
     15echo "Generating test-conf"
     16gcc $OPT test-conf.c $lib -o test-conf
     17
     18echo "Testing against previous run"
     19for f in test-conf test-string test-msg; do
    1220    chmod 755 $f
    1321    ./$f > /tmp/$f.res
     
    1624        echo "$f test KO !!"
    1725    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
    1830done
  • trunk/mondo/src/test/mondo.conf

    r531 r1079  
    55# Test conf file for mondo
    66testfalse = TRUE
     7# For msg tests
     8logfile = "/tmp/mondo-test.log"
     9loglevel = 3
  • trunk/mondo/src/test/test-conf.c

    • Property svn:eol-style set to native
    r900 r1079  
    77
    88#include <stdio.h>
    9 #include "my-stuff.h"
     9#include <stdlib.h>
     10
    1011#include "mr_conf.h"
    1112#include "mr_mem.h"
     
    1415int g_buffer_pid = 0;
    1516
    16 main() {
     17int main(void) {
    1718    int ret = 0;
    1819    int i = 0;
  • trunk/mondo/src/test/test-conf.res

    r561 r1079  
    11Integer : ***3***
    22Float : ***32.670000***
    3 String : ***"The big string"***
     3String : ***The big string***
  • trunk/mondo/src/test/test-string.c

    • Property svn:eol-style set to native
    r900 r1079  
    66 */
    77
    8 #define _GNU_SOURCE
    98#include <string.h>
    109#include <stdlib.h>
    1110#include <stdio.h>
    1211
    13 #include "my-stuff.h"
    1412#include "mr_str.h"
    1513#include "mr_mem.h"
    1614
    17 main() {
     15int main(void) {
    1816    const char delims[3] = ": \n";
    1917   
     
    3129    }
    3230    mr_free(string);
     31
    3332    exit(0);
    3433}
  • trunk/mondo/src/test/test-string.res

    r561 r1079  
    66token=|hda1[0]|, lastpos=28
    77token=|hda12[3]|, lastpos=37
    8 token=|hda6[2]]|, lastpos=45
    9 token=|hda5[1]]|, lastpos=53
     8token=|hda6[2]|, lastpos=45
     9token=|hda5[1]|, lastpos=53
Note: See TracChangeset for help on using the changeset viewer.