summaryrefslogtreecommitdiffstats
path: root/source3/script
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2013-10-25 14:55:47 +0200
committerJim McDonough <jmcd@samba.org>2013-11-05 08:42:42 -0500
commitf77f63ed285fb4895a80c70f41ddc32b4e56bc6b (patch)
tree23a0bc3bca92c01d04e1d79feb418d022f27c4ed /source3/script
parent70e80532b0a2646a91a042f077af7098d7f54ebf (diff)
downloadsamba-f77f63ed285fb4895a80c70f41ddc32b4e56bc6b.tar.gz
samba-f77f63ed285fb4895a80c70f41ddc32b4e56bc6b.tar.xz
samba-f77f63ed285fb4895a80c70f41ddc32b4e56bc6b.zip
test_smbclient_tarmode.pl: test interactive command
[ddiss@samba.org: split from clitar implementation commit] Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jim McDonough <jmcd@samba.org>
Diffstat (limited to 'source3/script')
-rwxr-xr-xsource3/script/tests/test_smbclient_tarmode.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/script/tests/test_smbclient_tarmode.pl b/source3/script/tests/test_smbclient_tarmode.pl
index 2af34c4e785..1695e3ca76d 100755
--- a/source3/script/tests/test_smbclient_tarmode.pl
+++ b/source3/script/tests/test_smbclient_tarmode.pl
@@ -84,6 +84,7 @@ my $CLEAN = 0;
my @TESTS = (
['create, normal files (no attributes)', \&test_creation_normal, 'normal'],
['create, normal nested files (no attributes)', \&test_creation_normal, 'nested'],
+ ['create, normal files (interactive)', \&test_creation_normal, 'inter'],
['create, incremental with -g', \&test_creation_incremental, '-g'],
['create, incremental with tarmode', \&test_creation_incremental, 'tarmode inc'],
['create, reset archived files with -a', \&test_creation_reset, '-a'],
@@ -339,7 +340,12 @@ sub test_creation_normal {
my $f = File->new_remote($prefix."file-$_");
push @files, $f;
}
- smb_tar('tarmode full', '-Tc', $TAR, $DIR);
+
+ if ($mode =~ /inter/) {
+ smb_tar("tar c $TAR $DIR", '');
+ } else {
+ smb_tar('tarmode full', '-Tc', $TAR, $DIR);
+ }
return check_tar($TAR, \@files);
}