]> gitweb.michael.orlitzky.com - haeredes.git/blobdiff - haeredes.cabal
src: apply all hlint suggestions.
[haeredes.git] / haeredes.cabal
index f4a41215862f6c5c88ec09a97592edb03df1a88e..fac5582d2131c6fc5accccd07307e1141ceafe83 100644 (file)
@@ -1,5 +1,5 @@
 name:           haeredes
-version:        0.4.5
+version:        0.5.1
 cabal-version:  >= 1.8
 author:         Michael Orlitzky
 maintainer:    Michael Orlitzky <michael@orlitzky.com>
@@ -11,6 +11,7 @@ category:       DNS, Utils
 build-type:     Simple
 extra-source-files:
   doc/man1/haeredes.1
+  test/shell/*.test
 synopsis:
   Confirm delegation of NS and MX records.
 description:
@@ -33,7 +34,7 @@ description:
       soon as the MX record is changed.
   .
   Haeredes can alert administrators when NS/MX records are changed. More
-  detail can be found in the man page.
+  detail and usage examples can be found in the man page.
   .
   /Examples/:
   .
@@ -41,41 +42,22 @@ description:
   [ab].iana-servers.net:
   .
   @
-  $ haeredes a.iana-servers.net b.iana-servers.net <<< \"example.com\"
-  @
-  .
-  If you use --no-append-root and your nameservers are rooted, you
-  must remember to supply the trailing dot yourself. Otherwise, you'll
-  get false positives.
-  .
-  @
-  $ haeredes --no-append-root \
-  &#x20;          a.iana-servers.net b.iana-servers.net \
-  &#x20;          <<< \"example.com\"
-  Domain \"example.com\" delegates somewhere else: \"b.iana-servers.net.\" \"a.iana-servers.net.\"
-  @
-  .
-  Check orlitzky.com against the expected name servers, using
-  d.gtld-servers.net:
-  .
-  @
-  $ haeredes --server 199.7.91.13 dns1.viabit.com dns2.viabit.com \
-  &#x20;          <<< \"orlitzky.com\"
+  $ echo \"example.com\" | haeredes a.iana-servers.net b.iana-servers.net
   @
   .
   Check orlitzky.com against only one of the expected two nameservers:
   .
   @
-  $ haeredes dns1.viabit.com <<< \"orlitzky.com\"
+  $ echo \"orlitzky.com\" | haeredes dns1.viabit.com
   Domain \"orlitzky.com.\" delegates somewhere else: \"dns2.viabit.com.\"
   @
   .
   Check a nonexistent domain (we provide no delegates, since we
-  know .bar will not be delegated):
+  know .doesnt-exist will not be delegated):
   .
   @
-  $ haeredes <<< \"foo.bar\"
-  Domain \"foo.bar.\" not delegated.
+  $ echo \"foo.doesnt-exist\" | haeredes
+  Domain \"foo.doesnt-exist.\" not delegated.
   @
 
 executable haeredes
@@ -138,6 +120,31 @@ test-suite doctests
     -optc-O3
     -optc-march=native
 
+
+-- These won't work without shelltestrunner installed in your
+-- $PATH. Maybe there is some way to tell Cabal that.
+test-suite shelltests
+  type: exitcode-stdio-1.0
+  hs-source-dirs: test
+  main-is: ShellTests.hs
+
+  build-depends:
+    base                        == 4.*,
+    process                     >= 1.1
+
+  -- It's not entirely clear to me why I have to reproduce all of this.
+  ghc-options:
+    -Weverything
+    -Wno-implicit-prelude
+    -Wno-safe
+    -Wno-unsafe
+    -Wno-all-missed-specialisations
+    -rtsopts
+    -threaded
+    -optc-O3
+    -optc-march=native
+
+
 source-repository head
   type: git
   location: http://gitweb.michael.orlitzky.com/haeredes.git