mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
6b061ba696
- Just extraction, with as few changes to the code as possible.
21 lines
429 B
Bash
Executable File
21 lines
429 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# shellcheck source=scripts/common.sh
|
|
source "${REPO_ROOT}/scripts/common.sh"
|
|
|
|
printTask "Testing unknown options..."
|
|
(
|
|
set +e
|
|
output=$("$SOLC" --allow=test 2>&1)
|
|
failed=$?
|
|
set -e
|
|
|
|
if [ "$output" == "unrecognised option '--allow=test'" ] && [ $failed -ne 0 ]
|
|
then
|
|
echo "Passed"
|
|
else
|
|
fail "Incorrect response to unknown options: $output"
|
|
fi
|
|
)
|