]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/sparse-test
Make machine name independent + move log to working
[bacula/bacula] / regress / tests / sparse-test
index 4fa9ba4fd8204ce15869bd2010507046c3679ad8..f04f2f60091147356419ab5238f1e14ae60083df 100755 (executable)
@@ -5,17 +5,24 @@
 #
 cwd=`pwd`
 scripts/copy-test-confs
-rm -rf /tmp/TestVolume001 /tmp/bacula-restores
+scripts/cleanup
 echo "${cwd}/build" >/tmp/file-list
-bin/bacula stop 
+bin/bacula stop 2>&1 >/dev/null
 bin/drop_sqlite_tables
 bin/make_sqlite_tables
+
+echo " "
+echo " "
+echo " === Starting sparse-test ==="
+echo " === Starting sparse-test ===" >>working/log
+echo " "
+
 bin/bacula start
 bin/console -c bin/console.conf <<END_OF_DATA
 @output /dev/null
 messages
 @output
-label
+label storage=File
 TestVolume001
 run job=SparseTest
 yes
@@ -34,7 +41,7 @@ messages
 quit
 END_OF_DATA
 bin/bacula stop
-diff -ur build /tmp/bacula-restores${cwd}/build
+diff -r build /tmp/bacula-restores${cwd}/build
 if [ $? != 0 ] ; then
    echo " "
    echo " "
@@ -44,5 +51,5 @@ if [ $? != 0 ] ; then
 else
    echo "  ===== sparse-test Bacula source OK ===== "
    echo "  ===== sparse-test OK ===== " >>test.out
+   scripts/cleanup
 fi
-rm -rf /tmp/bacula-restores