From 847fd30d6ac58611ec70dc820d71a10d8a195859 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 3 Aug 2009 11:04:31 +0200 Subject: [PATCH] add test for list basefiles and new list files --- regress/tests/base-job-test | 38 +++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/regress/tests/base-job-test b/regress/tests/base-job-test index b63def9141..37ea770451 100755 --- a/regress/tests/base-job-test +++ b/regress/tests/base-job-test @@ -56,7 +56,7 @@ END_OF_DATA run_bacula ################################################################ -p Now do a second backup using base backup +p Now do a backup using base backup ################################################################ echo ${cwd}/bin >> ${cwd}/tmp/file-list @@ -98,8 +98,14 @@ check_restore_diff rm -rf ${cwd}/tmp/bacula-restores +grep -e 'FD Bytes Written: *0' ${cwd}/tmp/log4.out > /dev/null +if [ $? -ne 0 ]; then + print_debug "The first full job should have 0 byte in log4.out" + bstat=2 +fi + ################################################################ -p Now do a third backup after making few changes +p Now do a backup after making few changes ################################################################ cat <${cwd}/tmp/bconcmds @$out ${cwd}/tmp/log1.out @@ -131,7 +137,6 @@ check_files_written ${cwd}/tmp/log1.out 4 rm -rf ${cwd}/tmp/bacula-restores - ################################################################ p Test the job purge ################################################################ @@ -155,12 +160,33 @@ if [ $? -ne 0 ]; then dstat=2 fi -grep -e 'FD Bytes Written: *0' ${cwd}/tmp/log4.out > /dev/null -if [ $? -ne 0 ]; then - print_debug "The first full job should have 0 byte in log4.out" + +################################################################ +p Test list commands +################################################################ + +touch ${cwd}/build/po/fr.po + +cat <${cwd}/tmp/bconcmds +run level=full job=backup yes +wait +messages +@$out ${cwd}/tmp/log5.out +list basefiles jobid=6 +@$out ${cwd}/tmp/log6.out +list files jobid=6 +messages +END_OF_DATA + +run_bconsole + +grep po/fr.po ${cwd}/tmp/log5.out > /dev/null +if [ $? -eq 0 ]; then + print_debug "Should not display fr.po as basefile" bstat=2 fi +export bstat dstat stop_bacula end_test -- 2.39.5