summaryrefslogtreecommitdiff
path: root/testing/fulltests/perl/T102tcp.t
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fulltests/perl/T102tcp.t')
-rw-r--r--testing/fulltests/perl/T102tcp.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/fulltests/perl/T102tcp.t b/testing/fulltests/perl/T102tcp.t
new file mode 100644
index 0000000..2fa07ac
--- /dev/null
+++ b/testing/fulltests/perl/T102tcp.t
@@ -0,0 +1,18 @@
+#!/usr/bin/perl
+
+# HEADER Perl TCP IPv4 Test
+
+BEGIN {
+ if (exists($ENV{'srcdir'})) {
+ push @INC, "$ENV{'srcdir'}/testing/fulltests/perl";
+ } elsif (-d "fulltests/perl") {
+ push @INC, "fulltests/perl";
+ } elsif (-d "../perl") {
+ push @INC, "../perl";
+ }
+}
+use NetSNMPTestTransport;
+
+my $test = new NetSNMPTestTransport(agentaddress => "tcp:localhost:9875");
+$test->require_feature("NETSNMP_TRANSPORT_TCP_DOMAIN");
+$test->run_tests();