3 # Run a simple backup of the Bacula build directory
6 TestName="lib-test-root"
13 scripts/copy-test-confs
14 echo "/lib" >${cwd}/tmp/file-list
18 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
21 @$out ${cwd}/tmp/log1.out
31 @$out ${cwd}/tmp/log2.out
32 restore where=${cwd}/tmp/bacula-restores select
43 check_for_zombie_jobs storage=File
46 # more cleanup to be done below
49 ${cwd}/bin/testls -e ${cwd}/scripts/exclude-lib-test lib >${cwd}/tmp/original
50 cd ${cwd}/tmp/bacula-restores
51 ${cwd}/bin/testls -e ${cwd}/scripts/exclude-lib-test lib >${cwd}/tmp/restored
53 sed s%.*lib/kbd/consolefonts$%lib/kbd/consolefonts% original >1
56 sed s%.*lib/kbd/consolefonts$%lib/kbd/consolefonts% restored >1
61 diff ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 1>/dev/null
65 echo " ===== !!!! lib-test-root failed !!!! ===== "
66 echo " ===== !!!! lib-test-root failed !!!! ===== " >>test.out
69 echo " ===== lib-test-root OK ===== "
70 echo " ===== lib-test-root OK ===== " >>test.out