summaryrefslogtreecommitdiff
path: root/tools/nngcat/CMakeLists.txt
diff options
context:
space:
mode:
authorEvan Haas <evan@lagerdata.com>2020-04-11 20:46:14 -0700
committerGarrett D'Amore <garrett@damore.org>2020-05-25 22:36:08 -0700
commitbdbddbc805d1d0450476707f20ccbbde2ede8cf7 (patch)
tree9bf0528035840912a84b1b44d6838f8ba9505cd4 /tools/nngcat/CMakeLists.txt
parent88c8eb81b3a1e4e5dfb0a7ead1d4a62467d07063 (diff)
downloadnng-bdbddbc805d1d0450476707f20ccbbde2ede8cf7.tar.gz
nng-bdbddbc805d1d0450476707f20ccbbde2ede8cf7.tar.bz2
nng-bdbddbc805d1d0450476707f20ccbbde2ede8cf7.zip
fixes #1007 nngcat should accept data from stdin
Allows passing a filename of `-` to the `--file` option in order to read from stdin. Also removes the requirement for the file to be seekable - this allows nngcat to be used as part of a shell pipeline, or with other non-seekable files
Diffstat (limited to 'tools/nngcat/CMakeLists.txt')
-rw-r--r--tools/nngcat/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/nngcat/CMakeLists.txt b/tools/nngcat/CMakeLists.txt
index 6edf3bda..bcfc575b 100644
--- a/tools/nngcat/CMakeLists.txt
+++ b/tools/nngcat/CMakeLists.txt
@@ -29,5 +29,6 @@ if (NNG_ENABLE_NNGCAT)
add_nngcat_test (nngcat_pubsub 20)
add_nngcat_test (nngcat_recvmaxsz 20)
add_nngcat_test (nngcat_unlimited 20)
+ add_nngcat_test (nngcat_stdin_pipe 20)
endif()
endif()