2022-07-27 23:33:52 +03:00
|
|
|
#!/usr/bin/env bash
|
2022-04-13 17:52:25 +03:00
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
2022-06-02 08:46:16 +03:00
|
|
|
# shellcheck disable=SC2153
|
2022-04-13 17:52:25 +03:00
|
|
|
want=$WANT
|
2022-06-02 08:46:16 +03:00
|
|
|
# shellcheck disable=SC2153
|
2022-04-13 17:52:25 +03:00
|
|
|
binary=$BINARY
|
|
|
|
got=$($binary)
|
|
|
|
|
|
|
|
if [[ "$got" != "$want" ]]; then
|
|
|
|
echo wanted:
|
|
|
|
echo \ \ "$want"
|
|
|
|
echo got:
|
|
|
|
echo \ \ "$got"
|
|
|
|
exit 1
|
|
|
|
fi
|