From 4b1a04ef1f9632e4cf898cc6b7d0766f9ee3f7e7 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 17 Sep 2022 07:19:01 -0400 Subject: [PATCH] doc/README: mention usage and tests. --- doc/README | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/doc/README b/doc/README index 07e52b3..c9a7f4a 100644 --- a/doc/README +++ b/doc/README @@ -21,6 +21,17 @@ read. The line above gets turned into, and surely you agree that this is preferable. +== Usage == + +Either, + + $ djbdns-logparse < logfile + +or + + $ djbdns-logparse log1 [log2 [log3 ...]] + + == Requirements == There are only two: @@ -44,3 +55,18 @@ with heavy assistance from Rob Mayoff's documentation: * https://www.dqd.com/~mayoff/notes/djbdns/tinydns-log.html * https://www.dqd.com/~mayoff/notes/djbdns/dnscache-log.html + + +== Tests == + +The (doctest) test suite can be run with either setuptools, + + $ python setup.py test + +or using tox, + + $ tox + +Or, you can just run them manually: + + $ python -m doctest -v djbdns/*.py -- 2.43.2