From bdbddbc805d1d0450476707f20ccbbde2ede8cf7 Mon Sep 17 00:00:00 2001 From: Evan Haas Date: Sat, 11 Apr 2020 20:46:14 -0700 Subject: 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 --- tools/nngcat/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/nngcat/CMakeLists.txt') 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() -- cgit v1.2.3-70-g09d2