aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/test610.pl
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-04-23 23:00:38 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-04-23 23:00:38 +0000
commit6a35841b2edcbd865e914ec33ea0568199a26a8a (patch)
treeb2bcac094797fa087165fc1007687f2afe83a299 /tests/libtest/test610.pl
parent28dde78dde21f20ab5ee491455828c3cf338ad5c (diff)
Added tests 610-612 to test more SFTP post-quote commands.
Diffstat (limited to 'tests/libtest/test610.pl')
-rwxr-xr-xtests/libtest/test610.pl24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/libtest/test610.pl b/tests/libtest/test610.pl
new file mode 100755
index 000000000..5d7c1f6aa
--- /dev/null
+++ b/tests/libtest/test610.pl
@@ -0,0 +1,24 @@
+#!/usr/bin/env perl
+# Create and remove directories and check their existence
+if ( $#ARGV != 1 )
+{
+ print "Usage: $0 mkdir|rmdir|gone path\n";
+ exit 1;
+}
+if ($ARGV[0] eq "mkdir")
+{
+ mkdir $ARGV[1] || die "$!";
+ exit 0;
+}
+elsif ($ARGV[0] eq "rmdir")
+{
+ rmdir $ARGV[1] || die "$!";
+ exit 0;
+}
+elsif ($ARGV[0] eq "gone")
+{
+ ! -e $ARGV[1] || die "Path $ARGV[1] exists";
+ exit 0;
+}
+print "Unsupported command $ARGV[0]\n";
+exit 1;