#!/bin/sh # # Copyright (C) 2000-2015 Kern Sibbald # License: BSD 2-Clause; see file LICENSE-FOSS # # # Run a simple Verify InitCatalog, then Verify Catalog # TestName="verify-cat-test" JobName=VerifyCatalog . scripts/functions cwd=`pwd` scripts/cleanup scripts/copy-test-confs echo "${cwd}/build" >${cwd}/tmp/file-list #echo "${cwd}/do_all" >${cwd}/tmp/file-list #echo "${cwd}/do_all_tapes" >>${cwd}/tmp/file-list #echo "${cwd}/do_file" >>${cwd}/tmp/file-list change_jobname NightlySave $JobName start_test cat <tmp/bconcmds @output /dev/null messages @$out tmp/log1.out @#exec "sh -c 'touch ${cwd}/build/xxx_new_file'" run job=VerifyVolume level=InitCatalog yes wait messages @# @# now do a verify Catalog @# @$out ${cwd}/tmp/original @#exec "sh -c 'rm -f ${cwd}/build/xxx_new_file'" run job=VerifyVolume level=Catalog yes wait messages quit END_OF_DATA run_bacula sleep 2 check_for_zombie_jobs storage=File stop_bacula grep "^ Termination: *Verify OK" tmp/log1.out 2>&1 >/dev/null bstat=$? grep "^ Termination: *Verify OK" ${cwd}/tmp/original 2>&1 >/dev/null rstat=$? dstat=0 end_test