TestName="fifo-test"
JobName=FIFOTest
. scripts/functions
-set_debug 0
-cwd=`pwd`
scripts/cleanup
-#scripts/copy-test-confs
+scripts/copy-test-confs
echo "/tmp/bfifo" >/tmp/file-list
rm -f /tmp/bfifo
+mkfifo /tmp/bfifo
# send a file into the fifo
file=encrypt-bug.jpg
cat ${file} >/tmp/bfifo&
@# now do a restore
@#
@$out tmp/log2.out
-restore where=${cwd}/tmp/bacula-restores select all storage=File1 done
+@#setdebug level=50 client
+restore where=/ select all storage=File1 done
yes
wait
messages
quit
END_OF_DATA
-cat </tmp/bfifo >tmp/${file} &
+cat </tmp/bfifo >tmp/${file}&
run_bconsole