From a5c185b6be6587a08c8620c0e5c9060546707a1e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 17 Dec 2015 23:18:41 +0000 Subject: Add support for cp command in testextra. Fixes test/backupstorepatch. --- runtest.pl.in | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'runtest.pl.in') diff --git a/runtest.pl.in b/runtest.pl.in index 2d6c955f..23e46f95 100755 --- a/runtest.pl.in +++ b/runtest.pl.in @@ -157,6 +157,17 @@ sub runtest "status $status"; } } + elsif ($line =~ m/^cp (.*) (.*)/) + { + my ($src, $dst) = ($1, $2); + $src =~ s|/|\\|g; + $dst =~ s|/|\\|g; + my $cmd = "xcopy /s /i /y /q ". + "$test_dst_dir\\$src $test_dst_dir\\$dst"; + my $status = system($cmd); + $status == 0 or die "$cmd: failed with ". + "status $status"; + } else { die "Unsupported command in ". -- cgit v1.2.3