]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: change delta test to find problems
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 20 Nov 2010 16:47:33 +0000 (17:47 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 25 Nov 2010 13:59:28 +0000 (14:59 +0100)
regress/tests/delta-test

index 80f5f01b985f3488bb2b93ea21ee4674224f372d..d1e0b5dda56912c65ba58db546c1e9deaca8e7c9 100755 (executable)
@@ -90,4 +90,13 @@ check_two_logs
 
 stop_bacula
 
+head -c 300 /etc/passwd > $tmp/source
+diff -u $tmp/source $tmp/delta.txt > $tmp/d
+if [ $? -ne 0 ]; then
+    print_debug "ERROR: delta.txt and source are different, restore failed"
+    print_debug `cat $tmp/d`
+    cat -ev $tmp/delta.*
+    dstat=1
+fi
+
 end_test