File: ph.t

package info (click to toggle)
libnet-perl 1.0703-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 352 kB
  • ctags: 392
  • sloc: perl: 4,114; makefile: 42
file content (31 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!./perl -w

use Net::Config;
use Net::PH;

unless(@{$NetConfig{ph_hosts}} && $NetConfig{test_hosts}) {
    print "1..0\n";
    exit 0;
}

print "1..5\n";

my $i = 1;

$ph = Net::PH->new(Debug => 0)
	or (print("not ok 1\n"), exit);

print "ok 1\n";

$ph->fields or print "not ";
print "ok 2\n";

$ph->siteinfo or print "not ";
print "ok 3\n";

$ph->id or print "not ";
print "ok 4\n";

$ph->quit or print "not ";
print "ok 5\n";