aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
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
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')
-rw-r--r--tests/libtest/Makefile.am2
-rwxr-xr-xtests/libtest/test75.pl13
2 files changed, 14 insertions, 1 deletions
diff --git a/tests/libtest/Makefile.am b/tests/libtest/Makefile.am
index 35709b8ec..276ec85eb 100644
--- a/tests/libtest/Makefile.am
+++ b/tests/libtest/Makefile.am
@@ -35,7 +35,7 @@ INCLUDES = -I$(top_srcdir)/include/curl \
LIBDIR = $(top_builddir)/lib
-EXTRA_DIST = test307.pl
+EXTRA_DIST = test75.pl test307.pl test610.pl
# files used only in some libcurl test programs
TESTUTIL = testutil.c testutil.h
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;