From d6918a9fcb56c245fa72cf458cfef73f3b4d12d9 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 21 Jul 2003 17:30:27 +0000 Subject: [PATCH] Change test name git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@644 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/all-non-root-tests | 2 +- regress/tests/four-concurrent-jobs-test | 79 +++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 1 deletion(-) create mode 100755 regress/tests/four-concurrent-jobs-test diff --git a/regress/all-non-root-tests b/regress/all-non-root-tests index 1d89005b70..94e93743b1 100755 --- a/regress/all-non-root-tests +++ b/regress/all-non-root-tests @@ -15,7 +15,7 @@ tests/six-vol-test tests/bscan-test tests/wierd-files2-test tests/concurrent-jobs-test -tests/concurrent2-jobs-test +tests/four-concurrent-jobs-test tests/bsr-opt-test tests/bextract-test tests/recycle-test diff --git a/regress/tests/four-concurrent-jobs-test b/regress/tests/four-concurrent-jobs-test new file mode 100755 index 0000000000..8efd332f1d --- /dev/null +++ b/regress/tests/four-concurrent-jobs-test @@ -0,0 +1,79 @@ +#!/bin/sh +# +# Run two jobs at the same time +# +cwd=`pwd` +scripts/copy-test-confs +scripts/cleanup +echo "${cwd}/build" >/tmp/file-list +bin/bacula stop 2>&1 >/dev/null +bin/drop_sqlite_tables +bin/make_sqlite_tables + +echo " " +echo " " +echo " === Starting four-concurrent-jobs-test ===" +echo " === Starting four-concurrent-jobs-test ===" >>working/log +echo " " + +bin/bacula start 2>&1 >/dev/null +bin/console -c bin/console.conf <&1 >/dev/null +grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null +bstat=$? +grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null +rstat=$? +diff -r build tmp/bacula-restores${cwd}/build +if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then + echo " " + echo " " + echo " !!!!! four-concurrent-jobs-test Bacula source failed!!! !!!!! " + echo " !!!!! four-concurrent-jobs-test failed!!! !!!!! " >>test.out + echo " " + exit 1 +else + echo " ===== four-concurrent-jobs-test Bacula source OK ===== " + echo " ===== four-concurrent-jobs-test OK ===== " >>test.out + scripts/cleanup + exit 0 +fi -- 2.39.5