3 # This script will test object deletion
11 scripts/copy-test-confs
15 echo $PWD/build/po > tmp/file-list
17 cat <<EOF > ${cwd}/tmp/bconcmds
21 label storage=File volume=TestVolume001
22 run job=$JobName level=full yes
25 @exec "touch $cwd/build/po/fr.po"
26 run job=$JobName level=incremental yes
29 @exec "touch $cwd/build/po/de.po"
30 run job=$JobName level=incremental yes
36 SELECT 'FOUND 1' FROM File WHERE JobId=3;
37 SELECT 'FOUND 2' FROM JobMedia WHERE JobId=3;
38 SELECT 'FOUND 3' FROM Log WHERE JobId=3;
39 SELECT 'FOUND 4' FROM BaseFiles WHERE JobId=3;
42 delete volume=TestVolume001 yes
44 SELECT 'FOUND 1' FROM File WHERE JobId IN (1,2);
45 SELECT 'FOUND 2' FROM JobMedia WHERE JobId IN (1,2);
46 SELECT 'FOUND 3' FROM Log WHERE JobId IN (1,2);
47 SELECT 'FOUND 4' FROM BaseFiles WHERE JobId IN (1,2);
59 grep -v SELECT $tmp/log2.out | grep FOUND > /dev/null
61 print_debug "Found orphan records in $tmp/log2.out"
65 grep -v SELECT $tmp/log3.out | grep FOUND > /dev/null
67 print_debug "Found orphan records in $tmp/log3.out"