#!/bin/sh PROG="$1" mkdir -p testoutput TEST=testoutput TESTNAME="Test that failed decryption warning only prints once." TESTRESULT="OK" $PROG --format=json simulations/simulation_bad_keys.txt room fhkvdataiv 03065716 NOKEY \ 2> $TEST/test_stderr.txt | jq --sort-keys . > $TEST/test_output.txt cat > $TEST/expected_err.txt < $TEST/test_stderr.txt | jq --sort-keys . > $TEST/test_output.txt cat > $TEST/expected_err.txt <