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)
|
|
|
|
|
2022-10-13 12:48:43 +03:00
|
|
|
if [ "$got" != "$want" ]; then
|
2022-04-13 17:52:25 +03:00
|
|
|
echo wanted:
|
|
|
|
echo \ \ "$want"
|
|
|
|
echo got:
|
|
|
|
echo \ \ "$got"
|
|
|
|
exit 1
|
|
|
|
fi
|