]> gitweb.michael.orlitzky.com - dead/htsn.git/blobdiff - test/shell/command-line-feed-hosts.test
Fix the "no feed hosts" check and add a shelltest for the behavior.
[dead/htsn.git] / test / shell / command-line-feed-hosts.test
diff --git a/test/shell/command-line-feed-hosts.test b/test/shell/command-line-feed-hosts.test
new file mode 100644 (file)
index 0000000..27b9ebf
--- /dev/null
@@ -0,0 +1,9 @@
+#
+# If a feed host is supplied on the command-line, it should override
+# the default list. Since htsn attempts to run forever, we sleep for a
+# second after starting it and then kill it ($! is its pid).
+#
+dist/build/htsn/htsn -u foo --password bar localhost & sleep 1; kill $!
+>>> /Connecting to localhost./
+>>>2 /ERROR: connect: does not exist \(Connection refused\)/
+>>>=0