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 @output ${cwd}/tmp/log1.out
31 @output ${cwd}/tmp/log2.out
32 restore where=${cwd}/tmp/bacula-restores select
44 check_for_zombie_jobs storage=File
47 # more cleanup to be done below
50 ${cwd}/bin/testls -e ${cwd}/scripts/exclude-lib-test lib >${cwd}/tmp/original
51 cd ${cwd}/tmp/bacula-restores
52 ${cwd}/bin/testls -e ${cwd}/scripts/exclude-lib-test lib >${cwd}/tmp/restored
54 sed s%.*lib/kbd/consolefonts$%lib/kbd/consolefonts% original >1
57 sed s%.*lib/kbd/consolefonts$%lib/kbd/consolefonts% restored >1
62 diff ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 1>/dev/null
66 echo " ===== !!!! lib-test-root failed !!!! ===== "
67 echo " ===== !!!! lib-test-root failed !!!! ===== " >>test.out
70 echo " ===== lib-test-root OK ===== "
71 echo " ===== lib-test-root OK ===== " >>test.out