Skip to content

Commit

Permalink
test/bbackupd: convert some tests to specialised (to run on S3 too)
Browse files Browse the repository at this point in the history
  • Loading branch information
qris committed Oct 30, 2018
1 parent 45a121e commit 821baee
Show file tree
Hide file tree
Showing 10 changed files with 413 additions and 163 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -32,7 +32,7 @@ lib/server/makeprotocol.pl
runtest.pl
test/backupstorefix/testfiles/testbackupstorefix.pl
test/bbackupd/testfiles/bbackupd.conf
test/bbackupd/testfiles/bbackupd-exclude.conf
test/bbackupd/testfiles/bbackupd.s3.conf
test/bbackupd/testfiles/bbackupd-snapshot.conf
test/bbackupd/testfiles/bbackupd-symlink.conf
test/bbackupd/testfiles/bbackupd-temploc.conf
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -89,7 +89,7 @@ AC_CONFIG_FILES([infrastructure/BoxPlatform.pm
contrib/solaris/bbstored-manifest.xml
lib/common/BoxPortsAndFiles.h
test/bbackupd/testfiles/bbackupd.conf
test/bbackupd/testfiles/bbackupd-exclude.conf
test/bbackupd/testfiles/bbackupd.s3.conf
test/bbackupd/testfiles/bbackupd-snapshot.conf
test/bbackupd/testfiles/bbackupd-symlink.conf
test/bbackupd/testfiles/bbackupd-temploc.conf
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/cmake/CMakeLists.txt
Expand Up @@ -41,7 +41,7 @@ set(files_to_configure
runtest.pl
test/backupstorefix/testfiles/testbackupstorefix.pl
test/bbackupd/testfiles/bbackupd.conf
test/bbackupd/testfiles/bbackupd-exclude.conf
test/bbackupd/testfiles/bbackupd.s3.conf
test/bbackupd/testfiles/bbackupd-snapshot.conf
test/bbackupd/testfiles/bbackupd-symlink.conf
test/bbackupd/testfiles/bbackupd-temploc.conf
Expand Down
8 changes: 8 additions & 0 deletions runtest.pl.in
Expand Up @@ -200,6 +200,14 @@ sub runtest
foreach my $line (<EXTRA>)
{
chomp $line;

# Remove comments and skip blank lines:
$line =~ s/#.*//;
if (not $line)
{
continue;
}

if ($line =~ m/^mkdir (.*)/)
{
push @commands, "cmake -E make_directory $test_dst_dir/$1";
Expand Down
2 changes: 2 additions & 0 deletions test/backupstorefix/testextra
Expand Up @@ -3,3 +3,5 @@ mkdir testfiles/0_1
mkdir testfiles/0_2
mkdir testfiles/bbackupd-data
cp ../../../test/bbackupd/testfiles/*.* testfiles/
# Overwrite bbackupd.s3.conf from test/bbackupd with our own (different MinimumFileAge):
cp ../../../test/backupstorefix/testfiles/bbackupd.s3.conf testfiles/

0 comments on commit 821baee

Please sign in to comment.