Merge pull request #3607 from izgzhen/complain-unknown-params

stop allow_guessing for command line option parser
This commit is contained in:
chriseth
2018-02-28 17:42:14 +01:00
committed by GitHub
3 changed files with 17 additions and 0 deletions
+15
View File
@@ -83,6 +83,21 @@ function compileWithoutWarning()
test -z "$output" -a "$failed" -eq 0
}
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
printError "Incorrect response to unknown options: $STDERR"
exit 1
fi
)
printTask "Compiling various other contracts and libraries..."
(
cd "$REPO_ROOT"/test/compilationTests/