2022-08-30 09:19:56 +03:00
|
|
|
#!/bin/sh
|
|
|
|
set -eu
|
2022-04-13 17:52:25 +03:00
|
|
|
|
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
|