2022-08-30 09:19:56 +03:00
|
|
|
#!/bin/sh
|
2023-03-02 23:42:35 +02:00
|
|
|
|
|
|
|
# Copyright 2023 Uber Technologies, Inc.
|
|
|
|
# Licensed under the Apache License, Version 2.0
|
|
|
|
|
2022-08-30 09:19:56 +03:00
|
|
|
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
|