summaryrefslogtreecommitdiff
path: root/lib/zephyr_tests.txt
diff options
context:
space:
mode:
authorGravatar Mark W. Eichin <eichin@thok.org>2009-04-14 03:32:30 +0000
committerGravatar Mark W. Eichin <eichin@thok.org>2009-04-14 03:32:30 +0000
commitb9216d53a815eb3fd5eed2c1d2cd46f1de328bf3 (patch)
treef35d7aaac3ac3964059741761e3dced7d70cb48c /lib/zephyr_tests.txt
parentb6cd121bcc16627002615620b8faf83a1f8dcf26 (diff)
test ZOpenPort and ZClosePort
record coverage, start a checklist of what next
Diffstat (limited to 'lib/zephyr_tests.txt')
-rw-r--r--lib/zephyr_tests.txt53
1 files changed, 53 insertions, 0 deletions
diff --git a/lib/zephyr_tests.txt b/lib/zephyr_tests.txt
index 8edb734..086d460 100644
--- a/lib/zephyr_tests.txt
+++ b/lib/zephyr_tests.txt
@@ -78,3 +78,56 @@ Trivial test of ZExpandRealm, using terribly well known hostnames:
>>> assert _z.ZExpandRealm("") == ""
>>> assert _z.ZExpandRealm("localhost") == ""
>>> assert _z.ZExpandRealm("bitsy.mit.edu") == "ATHENA.MIT.EDU"
+
+Trivial test of ZopenPort and ZClosePort:
+
+ >>> from ctypes import c_ushort
+ >>> port = c_ushort(0)
+ >>> st = _z.ZOpenPort(port)
+ >>> assert st == 0
+ >>> assert _z.ZGetFD() != -1
+ >>> assert port != 0
+
+TODO: consider checking that ZGetFD is returning a socket on that port.
+
+ >>> assert _z.ZClosePort() == 0
+ >>> assert _z.ZGetFD() == -1
+
+Coverage:
+
+Files complete:
+ ZOpenPort.c
+ ZClosePort.c
+ ZExpnRlm.c
+ ZCmpUID.c
+ ZGetSender.c (needs richer test)
+
+Pending:
+
+ZRequestLocations (ZAsyncLocate.c)
+ZParseLocations (ZAsyncLocate.c)
+ZCompareALDPred (ZAsyncLocate.c)
+ZFreeALD (ZAsyncLocate.c)
+ZCheckAuthentication (ZCkAuth.c)
+ZCheckIfNotice (ZCkIfNot.c)
+ZCheckZcodeAuthentication (ZCkZAut.c)
+ZCompareUIDPred (ZCmpUIDP.c)
+ZCompareMultiUIDPred (ZCmpUIDP.c)
+ZFlushLocations (ZFlsLocs.c)
+ZFlushSubscriptions (ZFlsSubs.c)
+ZFormatAuthenticNotice (ZFmtAuth.c)
+ZFormatAuthenticNoticeV5 (ZFmtAuth.c)
+ZFormatNoticeList (ZFmtList.c)
+ZFormatNotice (ZFmtNotice.c)
+ZNewFormatNotice (ZFmtNotice.c)
+ZFormatRawNotice (ZFmtRaw.c)
+ZFormatRawNoticeList (ZFmtRawLst.c)
+ZFormatSmallRawNoticeList (ZFmtSmRLst.c)
+ZFormatSmallRawNotice (ZFmtSmRaw.c)
+ZNewFormatSmallRawNotice (ZFmtSmRaw.c)
+ZFreeNotice (ZFreeNot.c)
+ZGetLocations (ZGetLocs.c)
+ZGetSubscriptions (ZGetSubs.c)
+ZGetWGPort (ZGetWGPort.c)
+ZIfNotice (ZIfNotice.c)
+(...continue with ZInit.c...)