#!/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 then create some
# new files, do a Differental then a bunch of query commands
# and finally restore the two files.
#
+
+
+# Query test no longer works because the query file is empty
+exit
+
+
+
+
+
+
TestName="query-test"
JobName=query
. scripts/functions
scripts/cleanup
scripts/copy-test-confs
echo "${cwd}/tmp/build" >${cwd}/tmp/file-list
-mkdir ${cwd}/tmp/build
+mkdir -p ${cwd}/tmp/build
cp -p ${cwd}/build/src/dird/*.c ${cwd}/tmp/build
cd ${cwd}/tmp
echo "${cwd}/tmp/build/ficheriro1.txt" >restore-list
start_test
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@$out /dev/null
+@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
label storage=File volume=TestVolume001
echo "ficheriro2.txt" >${cwd}/tmp/build/ficheriro2.txt
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@$out /dev/null
+@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
@# Force differental on the second Volume
update volume=TestVolume001 VolStatus=Used
-run level=differental job=$JobName yes
+run level=differential job=$JobName yes
wait
messages
END_OF_DATA
echo "ficheriro2.txt" >${cwd}/tmp/build/ficheriro2.txt
cat <<END_OF_DATA >${cwd}/tmp/bconcmds
-@$out /dev/null
+@output /dev/null
messages
@$out ${cwd}/tmp/log1.out
run level=incremental job=$JobName yes