1
Fork 0
hermetic_cc_toolchain/test/c/test.sh

18 lines
257 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
# shellcheck disable=SC2153
want=$WANT
# shellcheck disable=SC2153
binary=$BINARY
got=$($binary)
if [[ "$got" != "$want" ]]; then
echo wanted:
echo \ \ "$want"
echo got:
echo \ \ "$got"
exit 1
fi