mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Provide a better error reporting for failed cmdline tests.
This commit is contained in:
@@ -369,7 +369,7 @@ printTask "Compiling various other contracts and libraries..."
|
||||
do
|
||||
echo " - $dir"
|
||||
cd "$dir"
|
||||
compileFull -w ./*.sol ./*/*.sol
|
||||
compileFull --expect-warnings ./*.sol ./*/*.sol
|
||||
cd ..
|
||||
done
|
||||
)
|
||||
@@ -397,15 +397,15 @@ SOLTMPDIR=$(mktemp -d)
|
||||
# are used (in the style guide)
|
||||
if grep -E "This will not compile|import \"" "$f" >/dev/null
|
||||
then
|
||||
opts=(-e)
|
||||
opts=(--expect-errors)
|
||||
fi
|
||||
if grep "This will report a warning" "$f" >/dev/null
|
||||
then
|
||||
opts+=(-w)
|
||||
opts+=(--expect-warnings)
|
||||
fi
|
||||
if grep "This may report a warning" "$f" >/dev/null
|
||||
then
|
||||
opts+=(-o)
|
||||
opts+=(--ignore-warnings)
|
||||
fi
|
||||
|
||||
# Disable the version pragma in code snippets that only work with the current development version.
|
||||
|
||||
Reference in New Issue
Block a user