diff options
Diffstat (limited to 'tests/testsuites/omprog-output-capture-bin.sh')
-rwxr-xr-x | tests/testsuites/omprog-output-capture-bin.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/testsuites/omprog-output-capture-bin.sh b/tests/testsuites/omprog-output-capture-bin.sh new file mode 100755 index 0000000..1794cde --- /dev/null +++ b/tests/testsuites/omprog-output-capture-bin.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +echo "[stdout] Starting" +>&2 echo "[stderr] Starting" + +read log_line +while [[ -n "$log_line" ]]; do + echo "[stdout] Received $log_line" + >&2 echo "[stderr] Received $log_line" + read log_line +done + +echo "[stdout] Terminating normally" +>&2 echo "[stderr] Terminating normally" + +exit 0 |