From: Kern Sibbald Date: Fri, 5 Jun 2020 06:45:30 +0000 (+0200) Subject: regress: Implement CLOUD_TRUNCATE_CACHE X-Git-Tag: Release-9.6.4~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=238f57f183f797994975928435a60d98e941ee58;p=thirdparty%2Fbacula.git regress: Implement CLOUD_TRUNCATE_CACHE --- diff --git a/regress/scripts/functions b/regress/scripts/functions index ca675de74..0b7949b6e 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -73,18 +73,16 @@ start_test() $bperl -e "add_attribute('$conf/bacula-sd.conf', 'UriStyle', '$CLOUD_URISTYLE', 'Cloud')" fi if [ "$CLOUD_DRIVER" ]; then - driver=`echo $CLOUD_DRIVER | tr 'A-Z' 'a-z'` - # FakeS3 is useful but keeps big parts in memory. So we must limit parts. - if [ "$driver" = "fakes3" ]; then - if [ "$CLOUD_MAXIMUM_PART_SIZE" = "" ]; then - CLOUD_MAXIMUM_PART_SIZE=50MB - fi - CLOUD_DRIVER=S3 - fi - $bperl -e "add_attribute('$conf/bacula-sd.conf', 'Driver', '\"$CLOUD_DRIVER\"', 'Cloud')" + $bperl -e "add_attribute('$conf/bacula-sd.conf', 'Driver', '\"$CLOUD_DRIVER\"', 'Cloud')" fi if [ "$CLOUD_MAXIMUM_PART_SIZE" ]; then - $bperl -e "add_attribute('$conf/bacula-sd.conf', 'MaximumPartSize', '$CLOUD_MAXIMUM_PART_SIZE', 'Device')" + $bperl -e "add_attribute('$conf/bacula-sd.conf', 'MaximumPartSize', '$CLOUD_MAXIMUM_PART_SIZE', 'Device')" + fi + if [ "$CLOUD_TRUNCATE_CACHE" ]; then + $bperl -e "add_attribute('$conf/bacula-sd.conf', 'TruncateCache', '$CLOUD_TRUNCATE_CACHE', 'Cloud')" + fi + if [ "$CLOUD_DRIVER_COMMAND" ]; then + $bperl -e "add_attribute('$conf/bacula-sd.conf', 'DriverCommand', '$CLOUD_DRIVER_COMMAND', 'Cloud')" fi variant_name="Cloud"