3 # Copyright (C) 2000-2017 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
6 # Small test to setup a backup with $nb_files*2 to backup,
7 # then, we can run multiple full jobs over the directory
8 # and create a "large" catalog.
12 # use bacula functions
13 use scripts::functions;
17 # cleanup the previous conf
20 # initialize the configuration
21 system("scripts//copy-test-confs");
23 # initialize the fileset
24 add_to_backup_list("$cwd/build/po");
30 "label volume=TestVolume001 storage=File pool=Scratch",
31 "run job=NightlySave level=full yes",
40 my $job = `awk '/[jJ]ob: / { print \$2 }' $tmp/log2.out`;
43 p("Now try to cancel the previous job to see if the director will connect to FD/SD");
47 "cancel inactive client=$CLIENT ujobid=$job",
49 "cancel inactive ujobid=$job",
51 "cancel inactive storage=File ujobid=$job"
58 p("Should find FD code 2901 in cancel output");
60 if (!docmd("grep 2901 $tmp/log3.out") ||
61 !docmd("grep 2901 $tmp/log4.out") ||
62 !docmd("grep 2901 $tmp/log5.out"))
64 print "ERROR: Unable to find 2901 in log3,4,5.out\n";