From dcc721a95bef6f0d8e6d8775b8efe33e5aecd562 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 18:28:20 +0200 Subject: Adding upstream version 8.2402.0. Signed-off-by: Daniel Baumann --- tests/testsuites/omprog-output-capture-bin.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tests/testsuites/omprog-output-capture-bin.sh (limited to 'tests/testsuites/omprog-output-capture-bin.sh') 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 -- cgit v1.2.3