Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
accurate test: do not use bscan
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Apr 19, 2017
1 parent 28bfc73 commit b9a9f8c
Showing 1 changed file with 34 additions and 33 deletions.
67 changes: 34 additions & 33 deletions tests/accurate-test
Expand Up @@ -276,39 +276,40 @@ check_restore_diff

rm -rf ${cwd}/tmp/bareos-restores ${cwd}/build/accurate/bareos-restores

################################################################
p Check with bscan
################################################################

stop_bareos

cd $bin
./drop_bareos_tables >/dev/null 2>&1
./make_bareos_tables >/dev/null 2>&1
./grant_bareos_privileges >/dev/null 2>&1
cd ..

echo "volume=TestVolume001" >tmp/bscan.bsr

bscan_libdbi

$bin/bscan -c $conf/bareos-sd.conf $BSCANLIBDBI -n "$db_name" -u "$db_user" -m -s -b $tmp/bscan.bsr FileStorage 2>&1 > $tmp/bscan.log

cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out ${cwd}/tmp/log1.out
messages
@#
@# now do a restore after bscan
@#
@$out ${cwd}/tmp/log2.out
setdebug level=10 storage=File
restore fileset=FS_TESTJOB where=${cwd}/tmp/bareos-restores select all done
yes
wait
messages
quit
END_OF_DATA

#
#################################################################
#p Check with bscan
#################################################################
#
#stop_bareos
#
#cd $bin
# ./drop_bareos_tables >/dev/null 2>&1
# ./make_bareos_tables >/dev/null 2>&1
# ./grant_bareos_privileges >/dev/null 2>&1
#cd ..
#
#echo "volume=TestVolume001" >tmp/bscan.bsr
#
#bscan_libdbi
#
#$bin/bscan -c $conf/bareos-sd.conf $BSCANLIBDBI -n "$db_name" -u "$db_user" -m -s -b $tmp/bscan.bsr FileStorage 2>&1 > $tmp/bscan.log
#
#cat <<END_OF_DATA >${cwd}/tmp/bconcmds
#@$out ${cwd}/tmp/log1.out
#messages
#@#
#@# now do a restore after bscan
#@#
#@$out ${cwd}/tmp/log2.out
#setdebug level=10 storage=File
#restore fileset=FS_TESTJOB where=${cwd}/tmp/bareos-restores select all done
#yes
#wait
#messages
#quit
#END_OF_DATA
#
# run bareos with just the restore job
run_bareos

Expand Down

0 comments on commit b9a9f8c

Please sign in to comment.