X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fdifferential-test;h=4d95637a5898d786f25c73a3ac39e3cf63a17f0e;hb=3448d94ab63e631f378fa674240b98133c9a5d29;hp=36205f422cd9d5ee3889c4d28167ea1cac189cc2;hpb=45dc0d2f1f568fcc62526533adacde65df441837;p=bacula%2Fbacula diff --git a/regress/tests/differential-test b/regress/tests/differential-test index 36205f422c..4d95637a58 100755 --- a/regress/tests/differential-test +++ b/regress/tests/differential-test @@ -9,7 +9,7 @@ JobName=differential scripts/cleanup scripts/copy-test-confs -echo "${cwd}/tmp/build" >/tmp/file-list +echo "${cwd}/tmp/build" >${cwd}/tmp/file-list mkdir ${cwd}/tmp/build cp -p ${cwd}/build/src/dird/*.c ${cwd}/tmp/build cd ${cwd}/tmp @@ -20,10 +20,11 @@ cd ${cwd} change_jobname CompressedTest $JobName start_test -cat <tmp/bconcmds +cat <${cwd}/tmp/bconcmds @$out /dev/null messages -@$out tmp/log1.out +@$out ${cwd}/tmp/log1.out +setdebug level=100 storage=File label storage=File volume=TestVolume002 label storage=File volume=TestVolume001 run job=$JobName yes @@ -38,10 +39,10 @@ scripts/check_for_zombie_jobs storage=File echo "ficheriro1.txt" >${cwd}/tmp/build/ficheriro1.txt echo "ficheriro2.txt" >${cwd}/tmp/build/ficheriro2.txt -cat <tmp/bconcmds +cat <${cwd}/tmp/bconcmds @$out /dev/null messages -@$out tmp/log1.out +@$out ${cwd}/tmp/log1.out @# Force differential on the second Volume update volume=TestVolume002 VolStatus=Used run level=differential job=$JobName yes @@ -55,17 +56,17 @@ run_bconsole scripts/check_for_zombie_jobs storage=File echo "ficheriro2.txt" >${cwd}/tmp/build/ficheriro2.txt -cat <tmp/bconcmds +cat <${cwd}/tmp/bconcmds @$out /dev/null messages -@$out tmp/log1.out +@$out ${cwd}/tmp/log1.out run level=incremental job=$JobName yes wait messages @# @# now do a restore @# -@$out tmp/log2.out +@$out ${cwd}/tmp/log2.out restore where=${cwd}/tmp/bacula-restores storage=File file=<${cwd}/tmp/restore-list yes wait @@ -82,6 +83,6 @@ check_two_logs # # Delete .c files because we will only restore the txt files # -rm -f tmp/build/*.c +rm -f ${cwd}/tmp/build/*.c check_restore_tmp_build_diff end_test