3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Run a simple backup of the Bacula build directory
11 TestName="lib-test-root"
18 scripts/copy-test-confs
19 echo "/lib" >${cwd}/tmp/file-list
23 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
26 @$out ${cwd}/tmp/log1.out
36 @$out ${cwd}/tmp/log2.out
37 restore where=${cwd}/tmp/bacula-restores select
48 check_for_zombie_jobs storage=File
51 # more cleanup to be done below
54 ${cwd}/bin/testls -e ${cwd}/scripts/exclude-lib-test lib >${cwd}/tmp/original
55 cd ${cwd}/tmp/bacula-restores
56 ${cwd}/bin/testls -e ${cwd}/scripts/exclude-lib-test lib >${cwd}/tmp/restored
58 sed s%.*lib/kbd/consolefonts$%lib/kbd/consolefonts% original >1
61 sed s%.*lib/kbd/consolefonts$%lib/kbd/consolefonts% restored >1
66 diff ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 1>/dev/null
70 echo " ===== !!!! lib-test-root failed !!!! ===== "
71 echo " ===== !!!! lib-test-root failed !!!! ===== " >>test.out
74 echo " ===== lib-test-root OK ===== "
75 echo " ===== lib-test-root OK ===== " >>test.out