X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fbvfs-test;h=17195eec6bf87c989beaa713cd2e42b70f1b924c;hb=9ba2c11720d6b9c45b1995fe59de4bd67a9c7c85;hp=aabd9a3645d8afb3403a86489f0d7934b5a51c3a;hpb=43b11c744bb7f073ef40315d59dab1d76b1a76bc;p=bacula%2Fbacula diff --git a/regress/tests/bvfs-test b/regress/tests/bvfs-test index aabd9a3645..17195eec6b 100755 --- a/regress/tests/bvfs-test +++ b/regress/tests/bvfs-test @@ -1,4 +1,9 @@ #!/bin/sh +# +# Copyright (C) 2000-2015 Kern Sibbald +# License: BSD 2-Clause; see file LICENSE-FOSS +# + # # Run a simple backup of the Bacula build directory then create some # new files, do an Incremental and restore those two files. @@ -26,6 +31,9 @@ start_test cat <${tmp}/bconcmds @$out /dev/null messages +sql +SELECT pg_catalog.setval('file_fileid_seq', 21474836471, false); + @$out ${tmp}/log1.out label storage=File volume=TestVolume001 label storage=File volume=TestVolume002 @@ -156,6 +164,8 @@ messages .bvfs_lsfile path=$tmpsrc/ jobid=1,2,3,4,5,6,7,8 @$out ${tmp}/log31.out .bvfs_lsfile path=$tmpsrc/ jobid=1,2,3,4,5,6,7 +@$out ${tmp}/log32.out +.bvfs_lsfile path=$tmpsrc/ jobid=1,2,3,4,5,6,7,8 filename=ficheriro1.txt quit END_OF_DATA @@ -182,7 +192,7 @@ END_OF_DATA run_bconsole -diff $tmpsrc/ficheriro1.txt $tmp/bacula-restores/$tmpsrc/ficheriro1.txt &>> $tmp/d1 +diff $tmpsrc/ficheriro1.txt $tmp/bacula-restores/$tmpsrc/ficheriro1.txt > $tmp/d1 2>&1 if [ $? != 0 ]; then print_debug "ERROR: ficheriro1.txt is different" rstat=1 @@ -281,6 +291,13 @@ if [ $? != 0 ]; then estat=1 fi +awk '/\tficheriro1.txt/ { print "ok"} ' $tmp/log32.out | grep ok > /dev/null +if [ $? != 0 ]; then + print_debug "ERROR: Should find ficheriro1.txt in bvfs_lsfiles output $tmp/log32.out" + estat=1 +fi + + # # Delete .c files because we will only restored the txt files #