]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/sparse-test
Backport from Bacula Enterprise
[bacula/bacula] / regress / tests / sparse-test
index 9d94c71892afa825a9ab1520299a12ae11a8cbb0..780743a4a84bd9e3151cffda5a9a632e6026563d 100755 (executable)
@@ -1,4 +1,9 @@
 #!/bin/sh
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
 #
 # Run a simple backup of the Bacula build directory using the Sparse option
 #   then restore it.
@@ -9,14 +14,14 @@ JobName=SparseTest
 
 scripts/cleanup
 scripts/copy-test-confs
-echo "${cwd}/build" >/tmp/file-list
+echo "${cwd}/build" >${cwd}/tmp/file-list
 
 start_test
 
-cat >tmp/bconcmds <<END_OF_DATA
+cat >${cwd}/tmp/bconcmds <<END_OF_DATA
 @output /dev/null
 messages
-@$out tmp/log1.out
+@$out ${cwd}/tmp/log1.out
 label storage=File volume=TestVolume001
 run job=$JobName yes
 wait
@@ -24,7 +29,7 @@ messages
 @# 
 @# now do a restore
 @#
-@$out tmp/log2.out
+@$out ${cwd}/tmp/log2.out
 restore where=${cwd}/tmp/bacula-restores select storage=File
 unmark *
 mark *
@@ -32,7 +37,6 @@ done
 yes
 wait
 messages
-@output
 quit
 END_OF_DATA