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

Commit

Permalink
Changes needed to use the new standard config
Browse files Browse the repository at this point in the history
Mostly changing the used pool in the checks
from File to Full, as there is no File pool anymore.

Also change the filesets from File = / to File = /usr/sbin
for the tests to limit the amount of backed up data.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
  • Loading branch information
pstorz authored and Marco van Wieringen committed Sep 6, 2013
1 parent 6628042 commit bc0708c
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -34,6 +34,9 @@ bareos: all
sed:
echo "Doing: scripts/do_sed"
scripts/do_sed
echo "adapting default fileset for regression tests"
cp bin/bareos-dir.conf bin/bareos-dir.conf.orig
sed 's#File.*/$$#File = /usr/sbin#g' < bin/bareos-dir.conf.orig > bin/bareos-dir.conf

# Run all disk tests
test:
Expand Down
2 changes: 1 addition & 1 deletion tests/acl-xattr-test
Expand Up @@ -208,7 +208,7 @@ cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label volume=TestVolume001 storage=File1 pool=File slot=1 drive=0
label volume=TestVolume001 storage=File1 pool=Full slot=1 drive=0
@#setdebug level=400 trace=1 client
@#setdebug level=300 trace=1 director
@#setdebug level=300 trace=1 storage=File1
Expand Down
2 changes: 1 addition & 1 deletion tests/backup-bareos-test
Expand Up @@ -27,7 +27,7 @@ cat <<END_OF_DATA >$tmp/bconcmds
messages
@$out $tmp/log1.out
setdebug level=100 storage=File
label volume=TestVolume001 storage=File pool=File
label volume=TestVolume001 storage=File pool=Full
run job=$JobName yes
status storage=File
status storage=File
Expand Down
2 changes: 1 addition & 1 deletion tests/estimate-test
Expand Up @@ -29,7 +29,7 @@ cat <<END_OF_DATA >$tmp/bconcmds
@$out /dev/null
messages
@$out $tmp/log1.out
label volume=TestVolume001 storage=File pool=File
label volume=TestVolume001 storage=File pool=Full
run job=$JobName yes
wait
messages
Expand Down
2 changes: 1 addition & 1 deletion tests/fileregexp-test
Expand Up @@ -27,7 +27,7 @@ cat <<END_OF_DATA >${tmp}/bconcmds
@$out /dev/null
messages
@$out ${tmp}/log1.out
label volume=TestVolume001 storage=File pool=File
label volume=TestVolume001 storage=File pool=Full
run job=$JobName yes
wait
messages
Expand Down
2 changes: 1 addition & 1 deletion tests/messages-test
Expand Up @@ -40,7 +40,7 @@ cat <<END_OF_DATA >$tmp/bconcmds
messages
@$out $tmp/log1.out
@#setdebug level=100 storage=File
label volume=TestVolume001 storage=File pool=File
label volume=TestVolume001 storage=File pool=Full
run job=$JobName yes
@sleep 1
status storage=File
Expand Down
2 changes: 1 addition & 1 deletion tests/no-chksum-test
Expand Up @@ -27,7 +27,7 @@ cat <<END_OF_DATA >$tmp/bconcmds
@$out /dev/null
messages
@$out $tmp/log1.out
label volume=TestVolume001 storage=File pool=File
label volume=TestVolume001 storage=File pool=Full
END_OF_DATA

run_bareos
Expand Down
4 changes: 2 additions & 2 deletions tests/source-addr-test
Expand Up @@ -60,7 +60,7 @@ cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
@#label volume=TestVolume001 storage=File pool=File
@#label volume=TestVolume001 storage=File pool=Full
@#setdebug level=100 storage=File
run job=$JobName yes
@sleep 3
Expand Down Expand Up @@ -97,7 +97,7 @@ cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label volume=TestVolume001 storage=File pool=File
label volume=TestVolume001 storage=File pool=Full
@#setdebug level=100 storage=File
wait
messages
Expand Down
2 changes: 1 addition & 1 deletion tests/stats-test
Expand Up @@ -26,7 +26,7 @@ cat <<END_OF_DATA >${cwd}/tmp/bconcmds
@$out /dev/null
messages
@$out ${cwd}/tmp/log1.out
label volume=TestVolume001 storage=File pool=File
label volume=TestVolume001 storage=File pool=Full
run job=$JobName yes
wait
messages
Expand Down

0 comments on commit bc0708c

Please sign in to comment.