3 # Run a simple backup of the Bacula build directory
6 TestName="lib-test-root"
13 scripts/copy-test-confs
14 echo "/lib" >/tmp/file-list
18 cat <<END_OF_DATA >tmp/bconcmds
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 tmp/original 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