Skip to content

Commit

Permalink
Updated testsuite.
Browse files Browse the repository at this point in the history
Added tests for various IPv6 possibilities.
  • Loading branch information
mchf authored and mvidner committed Nov 22, 2012
1 parent 33de4ff commit 034abca
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
6 changes: 6 additions & 0 deletions testsuite/tests/r-check.out
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ Return false
Return true
Return false
Return true
Return false
Return true
Return false
Return true
Return true
Return false
24 changes: 18 additions & 6 deletions testsuite/tests/r-check.ycp
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@
include "testsuite.ycp";
include "nfs/routines.ycp";

string OK_Name = "foo.bar.com.tw";
string TooLongName = "123456789012345678901234567890123456789012345678901234567890";
string IllegalName = "Something:wrong";
string IPv4 = "192.168.10.1";
string IPv4_invalid= "192.168.10:1";
string IPv6 = "fe80::219:d1ff:feac:fd10";
string OK_Name = "foo.bar.com.tw";
string TooLongName = "123456789012345678901234567890123456789012345678901234567890";
string IllegalName = "Something:wrong";
string IPv4 = "192.168.10.1";
string IPv4_invalid = "192.168.10:1";
string IPv6 = "fe80::219:d1ff:feac:fd10";
string IPv6_invalid = "fe80::219::fd10";
string IPv6_brackets = "[::1]";
string IPv6_brackets_invalid = "[::1";
string IPv6_link_local_nb = "fe80::3%eth0";
string IPv6_link_local_ib = "[fe80::3%eth0]";
string IPv6_link_local_invalid = "[fe80::3%]";

DUMP ("check_options");
TEST (``(check_options ("")), [], nil);
Expand All @@ -45,4 +51,10 @@
TEST (``(CheckHostName (IPv4)), [], nil);
TEST (``(CheckHostName (IPv4_invalid)), [], nil);
TEST (``(CheckHostName (IPv6)), [], nil);
TEST (``(CheckHostName (IPv6_invalid)), [], nil);
TEST (``(CheckHostName (IPv6_brackets)), [], nil);
TEST (``(CheckHostName (IPv6_brackets_invalid)), [], nil);
TEST (``(CheckHostName (IPv6_link_local_nb)), [], nil);
TEST (``(CheckHostName (IPv6_link_local_ib)), [], nil);
TEST (``(CheckHostName (IPv6_link_local_invalid)), [], nil);
}

0 comments on commit 034abca

Please sign in to comment.