X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Flib-tape-root;h=9044d1c088c7968967fe6d4373d6941834c249bd;hb=607d301d1a4c30080d46cc380edf2bb3501899d7;hp=ea9667cadbd5afb97aec429bf32f1bfc01fff1ef;hpb=a8b9586bf314ed146b28a924b96023e8d6b1f837;p=bacula%2Fbacula diff --git a/regress/tests/lib-tape-root b/regress/tests/lib-tape-root index ea9667cadb..9044d1c088 100755 --- a/regress/tests/lib-tape-root +++ b/regress/tests/lib-tape-root @@ -4,23 +4,21 @@ # then restore it. # cwd=`pwd` -bin/bacula stop 2>&1 >/dev/null -bin/drop_sqlite_tables -bin/make_sqlite_tables - -scripts/copy-tape-confs +. scripts/functions +scripts/cleanup scripts/cleanup-tape -echo "/lib" >/tmp/file-list +scripts/copy-tape-confs +echo "/lib" >${cwd}/tmp/file-list echo " " echo " " echo " === Starting lib-tape-root test ===" echo " " echo " " -bin/bacula start 2>&1 >/dev/null -bin/bconsole -c bin/bconsole.conf < >${cwd}/tmp/bconcmds @output /dev/null messages -@output tmp/log1.out +@output ${cwd}/tmp/log1.out label storage=DDS-4 Volume=TestVolume001 slot=0 run job=NightlySave yes wait @@ -28,15 +26,18 @@ messages @# @# now do a restore @# -@output tmp/log2.out -restore where=${cwd}/tmp/bacula-restores select all +@output ${cwd}/tmp/log2.out +restore where=${cwd}/tmp/bacula-restores select all done yes wait messages @output quit END_OF_DATA -bin/bacula stop 2>&1 >/dev/null + +run_bacula +stop_bacula + cd / ${cwd}/bin/testls -e ${cwd}/scripts/exclude-usr-test lib >${cwd}/tmp/original cd ${cwd}/tmp/bacula-restores @@ -50,7 +51,7 @@ sort <1 >restored rm -f 1 # cd ${cwd} -diff tmp/original tmp/restored 2>&1 1>/dev/nul +diff ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 1>/dev/nul if [ $? != 0 ] ; then echo " " echo " "