]> git.sur5r.net Git - bacula/bacula/commitdiff
Save any dumps during regression to dumps directory
authorKern Sibbald <kern@sibbald.com>
Sat, 19 Jun 2010 13:58:28 +0000 (15:58 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:54 +0000 (16:53 +0200)
17 files changed:
regress/Makefile
regress/all-changer-tests
regress/all-dev-tests
regress/all-disk-tests
regress/all-root-tests
regress/all-tape-and-disk-tests
regress/all-tape-tests
regress/all-tests
regress/experimental-all
regress/experimental-disk
regress/experimental-disk-and-tape
regress/experimental-tape
regress/nightly-all
regress/nightly-disk
regress/nightly-disk-and-tape
regress/nightly-tape
regress/scripts/functions

index 983b0147d24e171160d829bbbebf76fce1fa931c..716893ffea9dc1d80baa1277449903b11b602de8 100644 (file)
@@ -26,8 +26,8 @@ bacula: all
        @-gunzip w.tar.gz
        @-tar xf w.tar
        @rm -f w.tar.gz w.tar
-       @rm -rf tmp working
-       mkdir tmp working
+       @rm -rf tmp working dumps
+       mkdir tmp working dumps
        echo "Doing: scripts/setup"
        scripts/setup
 
@@ -50,7 +50,7 @@ root_test:
 clean:
        scripts/cleanup
        rm -f tmp/file-list
-       rm -fr tmp/* working/* Testing
+       rm -fr tmp/* working/* dumps/* Testing
        rm -f test.out
        rm -f diff
        rm -f 1 2 3 scripts/1 scripts/2 scripts/3 tests/1 tests/2 tests/3
index 88c0a7b9af9f219e9adf1d75692c10b1c3744144..65dc26e4dbb3a845f47bb4722e362481434396ca 100755 (executable)
@@ -4,6 +4,7 @@
 #
 echo "Start autochanger tests"
 echo "Start autochanger tests" >>test.out
+rm -f dumps/*
 
 nice tests/incremental-changer
 nice tests/two-pool-changer
index 34f0ba2c5972f83cb97023b95983977a7dbd9145..cdf776ea1d32c000a77ef9b4d2ce20888d9680af 100755 (executable)
@@ -7,6 +7,7 @@ echo " "
 echo " " >>test.out
 echo "Start sample non-root disk tests"
 echo "Start sample non-root disk tests" >>test.out
+rm -f dumps/*
 nice tests/acl-xattr-test
 nice tests/action-on-purge-test
 nice tests/allowcompress-test
index ed399d5d2c2cea31b19677a021569f9539de25be..46fd443428c3cb9d939a17abddee1588aee6f060 100755 (executable)
@@ -6,6 +6,7 @@ echo " "
 echo " " >>test.out
 echo "Start non-root disk tests"
 echo "Start non-root disk tests" >>test.out
+rm -f dumps/*
 nice tests/acl-xattr-test
 nice tests/action-on-purge-test
 nice tests/allowcompress-test
index 1ba54d9f4a1a6cce64997b75e53e62d55a0d758f..284f4e47038333cc008af6aebc6d4051d2518818 100755 (executable)
@@ -6,6 +6,7 @@ echo " "
 echo " " >>test.out
 echo "Start root tests"
 echo "Start root tests" >>test.out
+rm -f dumps/*
 tests/dev-test-root
 tests/etc-test-root
 tests/lib-test-root
index 9bc3e7676c77210026dae379c0ad5a8ade274510..3d0e99d8b4817ef57c67b4ee88bbbbad62158389 100755 (executable)
@@ -2,5 +2,6 @@
 #
 # Run all tests
 #
+rm -f dumps/*
 ./all-non-root-tests
 ./all-non-root-tape-tests
index aee2a5248f6e6b29abc55ddddb045d90c7dc52de..a99ad9234859f0fae52e62e41645be119d390992 100755 (executable)
@@ -16,6 +16,7 @@ echo " "
 echo " " >>test.out
 echo "Start all non-root tape tests"
 echo "Start all non-root tape tests" >>test.out
+rm -f dumps/*
 nice tests/ansi-label-tape
 nice tests/backup-bacula-tape
 nice tests/bscan-tape
index e3dc688c8769083dabf3cf238034f12d498d045f..d54eb22489cc475ee89903b6607f1770685343bf 100755 (executable)
@@ -2,5 +2,6 @@
 #
 # Run all tests
 #
+rm -f dumps/*
 ./all-non-root-tests
 ./all-root-tests
index df73917bf4a4eec80a3913d0f552fa567d9c4aad..bf4a41dbc33289acd537f414c0dbdce26429bf7e 100755 (executable)
@@ -9,6 +9,7 @@ save_debug=${REGRESS_DEBUG}
 REGRESS_DEBUG=1
 export REGRESS_DEBUG
 rm -rf Testing
+rm -f dumps/*
 git pull
 scripts/config_dart
 nice ctest -D Experimental -R "^(disk|tape|changer):"
index a965df924255ad8fdbe2a69a8b8e66be1e33a5ac..39476df9dea4733f6536d97fb893871075094b51 100755 (executable)
@@ -9,6 +9,7 @@ save_debug=${REGRESS_DEBUG}
 REGRESS_DEBUG=1
 export REGRESS_DEBUG
 rm -rf Testing
+rm -f dumps/*
 git pull
 scripts/config_dart
 make setup
index 442370ded8ff0efa6d72c93739677e5b04f785b8..b1bd2a0f77093fea460180135bcc1d532754b750 100755 (executable)
@@ -9,6 +9,7 @@ save_debug=${REGRESS_DEBUG}
 REGRESS_DEBUG=1
 export REGRESS_DEBUG
 rm -rf Testing
+rm -f dumps/*
 git pull
 scripts/config_dart
 nice ctest -D Experimental -R "^(disk|tape):"
index fecd7d86de92696bc4540cc9f476922d2ff6600d..c12edf4d7ee3686d797fcfd15053892f473fa1bc 100755 (executable)
@@ -9,6 +9,7 @@ save_debug=${REGRESS_DEBUG}
 REGRESS_DEBUG=1
 export REGRESS_DEBUG
 rm -rf Testing
+rm -f dumps/*
 git pull
 scripts/config_dart
 nice ctest -D Experimental -R "^tape:"
index 7f817952a8e959fdef9db59f565544e6dfa02f74..28651ec3e589e38dff773fcf7096cc4f62329a87 100755 (executable)
@@ -9,6 +9,7 @@ save_debug=${REGRESS_DEBUG}
 REGRESS_DEBUG=1
 export REGRESS_DEBUG
 rm -rf Testing
+rm -f dumps/*
 git pull
 make distclean
 scripts/config_dart
index d97b69fa9363703d9a550a5a59b44286c930580f..85c59c5c7b333a4ac0d3c8af5e77629220404e1e 100755 (executable)
@@ -9,6 +9,7 @@ save_debug=${REGRESS_DEBUG}
 REGRESS_DEBUG=1
 export REGRESS_DEBUG
 rm -rf Testing
+rm -f dumps/*
 git checkout master
 git pull
 #
index f32bea52173cb26865ee26a27a7a287c12cdd33d..9a96c6185a40d83a452686d5e7387484f24de2e5 100755 (executable)
@@ -9,6 +9,7 @@ save_debug=${REGRESS_DEBUG}
 REGRESS_DEBUG=1
 export REGRESS_DEBUG
 rm -rf Testing
+rm -f dumps/*
 git pull
 make distclean
 scripts/config_dart
index e4d35171811afb1f87a0865f9ed691d35dc349c7..d8a1890a2e4af7eefd196c2a931fcdd9697baa76 100755 (executable)
@@ -9,6 +9,7 @@ save_debug=${REGRESS_DEBUG}
 REGRESS_DEBUG=1
 export REGRESS_DEBUG
 rm -rf Testing
+rm -f dumps/*
 git pull
 make distclean
 scripts/config_dart
index de33c0a89be4c1f36de79fb4c2fe329b80bfcbf1..97402695fc0f5e741cabb5ba218beed0002a22e1 100644 (file)
@@ -318,7 +318,9 @@ end_test()
 {
    if [ x$notracedump != xyes ]; then 
       cat ${working}/bacula.*.traceback 2>/dev/null
+      cp -f  ${working}/bacula.*.traceback ${dumps} 2>/dev/null
       cat ${working}/*.bactrace 2>/dev/null
+      cp -f ${working}/*.bactrace ${dumps} 2>/dev/null
    fi
    if [ $estat != 0 ] ; then
       echo " "
@@ -492,6 +494,7 @@ db_name=${db_name:-"regress"}
 db_user=${db_user:-"regress"}
 db_password=${db_password:-""}
 working=${working:-"$cwd/working"}
+dumps=${dumps:-"$cwd/dumps"}
 bin=${bin:-"$cwd/bin"}
 
 # Bacula scripts
@@ -515,6 +518,7 @@ tmpsrc=${tmpsrc:-"$cwd/tmp/build"}
 export bin
 export conf
 export working
+export dumps
 export scripts
 export rscripts
 export tmp