@-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
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
#
echo "Start autochanger tests"
echo "Start autochanger tests" >>test.out
+rm -f dumps/*
nice tests/incremental-changer
nice tests/two-pool-changer
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
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
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
#
# Run all tests
#
+rm -f dumps/*
./all-non-root-tests
./all-non-root-tape-tests
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
#
# Run all tests
#
+rm -f dumps/*
./all-non-root-tests
./all-root-tests
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):"
REGRESS_DEBUG=1
export REGRESS_DEBUG
rm -rf Testing
+rm -f dumps/*
git pull
scripts/config_dart
make setup
REGRESS_DEBUG=1
export REGRESS_DEBUG
rm -rf Testing
+rm -f dumps/*
git pull
scripts/config_dart
nice ctest -D Experimental -R "^(disk|tape):"
REGRESS_DEBUG=1
export REGRESS_DEBUG
rm -rf Testing
+rm -f dumps/*
git pull
scripts/config_dart
nice ctest -D Experimental -R "^tape:"
REGRESS_DEBUG=1
export REGRESS_DEBUG
rm -rf Testing
+rm -f dumps/*
git pull
make distclean
scripts/config_dart
REGRESS_DEBUG=1
export REGRESS_DEBUG
rm -rf Testing
+rm -f dumps/*
git pull
#
# Temp switch to branch Branch-5.0 NB this leaves you on a headless
# branch, but it works for building and testing.
#
-git checkout `git branch -r | grep "5\.0" | head -1`
-if [ $? -ne 0 ]; then
- git checkout master
-fi
+#git checkout `git branch -r | grep "5\.0" | head -1`
+#if [ $? -ne 0 ]; then
+# git checkout master
+#fi
make distclean
scripts/config_dart
make setup
REGRESS_DEBUG=1
export REGRESS_DEBUG
rm -rf Testing
+rm -f dumps/*
git pull
make distclean
scripts/config_dart
REGRESS_DEBUG=1
export REGRESS_DEBUG
rm -rf Testing
+rm -f dumps/*
git pull
make distclean
scripts/config_dart
#
end_test()
{
- cat ${working}/bacula.*.traceback 2>/dev/null
- cat ${working}/*.bactrace 2>/dev/null
- echo -e $print_error
+ 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 [ -f $tmp/err.log ]; then
+ cat $tmp/err.log
+ fi
if [ $estat != 0 ] ; then
echo " "
echo " !!!!! $TestName failed!!! `date +%R:%S` !!!!! "
db_user=${db_user:-"regress"}
db_password=${db_password:-""}
working=${working:-"$cwd/working"}
+dumps=${dumps:-"$cwd/dumps"}
bin=${bin:-"$cwd/bin"}
# Bacula scripts
export bin
export conf
export working
+export dumps
export scripts
export rscripts
export tmp