solidity/test/cmdlineTests/~unknown_options/test.sh

16 lines
323 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# shellcheck source=scripts/common.sh
source "${REPO_ROOT}/scripts/common.sh"
set +e
output=$("$SOLC" --allow=test 2>&1)
failed=$?
set -e
if [[ $output != "unrecognised option '--allow=test'" ]] || (( failed == 0 ))
then
fail "Incorrect response to unknown options: $output"
fi