]> 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 b8ed84ef8096baffe5d2148e4262cae30dd3a428..f04f2f60091147356419ab5238f1e14ae60083df 100755 (executable)
@@ -5,7 +5,7 @@
 #
 cwd=`pwd`
 scripts/copy-test-confs
-rm -rf /tmp/TestVolume001 /tmp/bacula-restores
+scripts/cleanup
 echo "${cwd}/build" >/tmp/file-list
 bin/bacula stop 2>&1 >/dev/null
 bin/drop_sqlite_tables
@@ -14,6 +14,7 @@ bin/make_sqlite_tables
 echo " "
 echo " "
 echo " === Starting sparse-test ==="
+echo " === Starting sparse-test ===" >>working/log
 echo " "
 
 bin/bacula start
@@ -40,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 " "
@@ -50,5 +51,5 @@ if [ $? != 0 ] ; then
 else
    echo "  ===== sparse-test Bacula source OK ===== "
    echo "  ===== sparse-test OK ===== " >>test.out
-   rm -rf /tmp/bacula-restores /tmp/TestVolume001
+   scripts/cleanup
 fi