diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-12-17 23:18:41 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-12-17 23:18:41 +0000 |
commit | a5c185b6be6587a08c8620c0e5c9060546707a1e (patch) | |
tree | f5e82709657ca0e8cd51e43051886c5bfb663be2 /runtest.pl.in | |
parent | cb8a7466e6b8c75fdc957fab380b9d074d0f7ede (diff) |
Add support for cp command in testextra.
Fixes test/backupstorepatch.
Diffstat (limited to 'runtest.pl.in')
-rwxr-xr-x | runtest.pl.in | 11 |
1 files changed, 11 insertions, 0 deletions
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 ". |