aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/test75.pl
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-04-30 20:15:33 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-04-30 20:15:33 +0000
commit5187faeeb97321343cd0a1f3ad9aa10992513e99 (patch)
treebb96009d55f96c9b05c032982c14abb31e775270 /tests/libtest/test75.pl
parent1228ec9fbb7db2d6f1615e8736be66d5c6f698d2 (diff)
Improved the test harness to allow running test servers on other than
the default port numbers, allowing more than one test suite to run simultaneously on the same host.
Diffstat (limited to 'tests/libtest/test75.pl')
-rwxr-xr-xtests/libtest/test75.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/libtest/test75.pl b/tests/libtest/test75.pl
new file mode 100755
index 000000000..01a53ff15
--- /dev/null
+++ b/tests/libtest/test75.pl
@@ -0,0 +1,13 @@
+#!/usr/bin/env perl
+# Check that the length of a given URL is correct
+if ( $#ARGV != 1 )
+{
+ print "Usage: $0 string length\n";
+ exit 3;
+}
+if (length(@ARGV[0]) != @ARGV[1])
+{
+ print "Given host IP and port not supported\n";
+ exit 1;
+}
+exit 0;