| 1 |
#!./perl |
| 2 |
# |
| 3 |
# Before `make install' is performed this script should be runnable with |
| 4 |
# `make test'. After `make install' it should work as `perl test.pl' |
| 5 |
|
| 6 |
use strict; |
| 7 |
use warnings; |
| 8 |
use Test; |
| 9 |
|
| 10 |
BEGIN { |
| 11 |
$| = 1; |
| 12 |
plan tests => 9; |
| 13 |
} |
| 14 |
|
| 15 |
use NetSNMP::ASN (':all'); |
| 16 |
ok(1); |
| 17 |
|
| 18 |
ok(ASN_INTEGER, 2); |
| 19 |
ok(ASN_OCTET_STR, 4); |
| 20 |
ok(ASN_COUNTER, 0x41); |
| 21 |
ok(ASN_UNSIGNED, 0x42); |
| 22 |
ok(ASN_COUNTER64, 0x46); |
| 23 |
ok(ASN_IPADDRESS, 0x40); |
| 24 |
ok(ASN_NULL, 5); |
| 25 |
ok(ASN_TIMETICKS, 0x43); |