From f77f63ed285fb4895a80c70f41ddc32b4e56bc6b Mon Sep 17 00:00:00 2001 From: Aurélien Aptel Date: Fri, 25 Oct 2013 14:55:47 +0200 Subject: test_smbclient_tarmode.pl: test interactive command [ddiss@samba.org: split from clitar implementation commit] Signed-off-by: David Disseldorp Reviewed-by: Jim McDonough --- source3/script/tests/test_smbclient_tarmode.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source3/script/tests') 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); } -- cgit