if [ $MUID != 0 ] ; then
echo " "
echo "You must be root to run this test."
- echo " ===== etc-test-root failed!!! ===== "
- echo " ===== etc-test-root failed!!! ===== " >>test.out
+ echo " ===== !!!! etc-test-root not run !!!! ===== "
+ echo " ===== !!!! etc-test-root not run !!!! ===== " >>test.out
echo " "
exit 1
fi
echo " "
echo " "
cwd=`pwd`
-scripts/copy-test-confs
scripts/cleanup
+scripts/copy-test-confs
echo "/etc" >/tmp/file-list
-bin/bacula stop 2>&1 >/dev/null
-bin/drop_sqlite_tables
-bin/make_sqlite_tables
+
bin/bacula start 2>&1 >/dev/null
-bin/console -c bin/console.conf <<END_OF_DATA
+bin/bconsole -c bin/bconsole.conf <<END_OF_DATA
@output /dev/null
messages
@output tmp/log1.out
@# now do a restore
@#
@output tmp/log2.out
-restore where=${cwd}/tmp/bacula-restores current all
+restore where=${cwd}/tmp/bacula-restores select
+unmark *
+mark *
+done
yes
wait
messages
if [ $? != 0 ] ; then
echo " "
echo " "
- echo " ===== etc-test-root failed!!! ===== "
- echo " ===== etc-test-root failed!!! ===== " >>test.out
+ echo " ===== !!!! etc-test-root failed !!!! ===== "
+ echo " ===== !!!! etc-test-root failed !!!! ===== " >>test.out
echo " "
else
echo " ===== etc-test-root OK ===== "