]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: update base-job-test
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 17 Jun 2010 07:30:59 +0000 (09:30 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:55 +0000 (16:53 +0200)
regress/scripts/functions
regress/tests/base-job-test

index 97402695fc0f5e741cabb5ba218beed0002a22e1..9ba6c465045761e5c3229baa5fd89c38b5ce1184 100644 (file)
@@ -110,6 +110,10 @@ set_debug()
 
 print_debug()
 {
+   echo $* | grep ERROR > /dev/null
+   if test $? -eq 0; then
+     print_error="$print_error\n$*"
+   fi
    if test "$debug" -eq 1 ; then
      echo $*
    fi
@@ -322,6 +326,9 @@ end_test()
       cat ${working}/*.bactrace 2>/dev/null
       cp -f ${working}/*.bactrace ${dumps} 2>/dev/null
    fi
+   cat ${working}/bacula.*.traceback 2>/dev/null
+   cat ${working}/*.bactrace 2>/dev/null
+   echo -e $print_error
    if [ $estat != 0 ] ; then
       echo " "
       echo "  !!!!! $TestName failed!!! `date +%R:%S` !!!!! "
index 6eada768e14214ea605a3c4dc07c9f1d50253221..90222eaf81f160b3be0222719f50b4a4a3a0862d 100755 (executable)
@@ -103,7 +103,13 @@ rm -rf ${cwd}/tmp/bacula-restores
 
 grep -e 'FD Bytes Written: *0' ${cwd}/tmp/log4.out > /dev/null
 if [ $? -ne 0 ]; then
-    print_debug "The first full job should have 0 byte in log4.out"
+    print_debug "ERROR: The first full job should have 0 byte in log4.out"
+    bstat=2
+fi
+
+grep -e 'Using BaseJobId(s): 1$'  ${cwd}/tmp/log4.out > /dev/null
+if [ $? -ne 0 ]; then
+    print_debug "ERROR: The first full job should use only jobid=1 as basejob"
     bstat=2
 fi