qconstr-verified tests: test TCPIP* insertion
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@428 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
This commit is contained in:
parent
993c586188
commit
a9fd220e46
|
|
@ -4,7 +4,7 @@
|
|||
#
|
||||
|
||||
use Test;
|
||||
BEGIN { plan tests => 34 };
|
||||
BEGIN { plan tests => 37 };
|
||||
use runproduct;
|
||||
use istest;
|
||||
use Ham::APRS::IS;
|
||||
|
|
@ -34,6 +34,23 @@ ok($ret, 1, "Failed to connect to the server: " . $i_rx->{'error'});
|
|||
|
||||
# do the actual tests
|
||||
|
||||
# Not in the Q algorithm, but:
|
||||
# Packets having srccall == login, and having no Q construct, must have
|
||||
# their digipeater path truncated away and replaced with ,TCPIP* and
|
||||
# then the Q construct.
|
||||
|
||||
istest::txrx(\&ok, $i_tx, $i_rx,
|
||||
"$login>DST:tcpip-path-replace1",
|
||||
"$login>DST,TCPIP*,qAC,TESTING:tcpip-path-replace1");
|
||||
|
||||
istest::txrx(\&ok, $i_tx, $i_rx,
|
||||
"$login>DST,DIGI1,DIGI5*:tcpip-path-replace2",
|
||||
"$login>DST,TCPIP*,qAC,TESTING:tcpip-path-replace2");
|
||||
|
||||
istest::txrx(\&ok, $i_tx, $i_rx,
|
||||
"$login>DST,TCPIP*:tcpip-path-replace3",
|
||||
"$login>DST,TCPIP*,qAC,TESTING:tcpip-path-replace3");
|
||||
|
||||
#
|
||||
# All packets
|
||||
# {
|
||||
|
|
|
|||
|
|
@ -82,7 +82,6 @@ $tx = "N1CAL>$dstcall,OH2RDG*,WIDE:!5028.51S/02505.68E#PHG$phg should pass";
|
|||
$rx = "N1CAL>$dstcall,OH2RDG*,WIDE,qAS,$login:!5028.51S/02505.68E#PHG$phg should pass";
|
||||
istest::txrx(\&ok, $i_tx, $i_rx, $tx, $rx);
|
||||
|
||||
|
||||
# disconnect
|
||||
|
||||
$ret = $i_rx->disconnect();
|
||||
|
|
|
|||
Loading…
Reference in New Issue