aboutsummaryrefslogtreecommitdiffstats
path: root/test/cmdlineTests.sh
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-10 02:48:41 +0800
committerchriseth <chris@ethereum.org>2018-08-14 21:50:46 +0800
commit6a5a187d83d97764fc6f77e392cdb2b9d8d6bb72 (patch)
treebfc738a00921a74d241aad283fe29feb30638191 /test/cmdlineTests.sh
parent6cf299bec6b89b22d97e39d7db54f9dc4f652cfb (diff)
downloaddexon-solidity-6a5a187d83d97764fc6f77e392cdb2b9d8d6bb72.tar
dexon-solidity-6a5a187d83d97764fc6f77e392cdb2b9d8d6bb72.tar.gz
dexon-solidity-6a5a187d83d97764fc6f77e392cdb2b9d8d6bb72.tar.bz2
dexon-solidity-6a5a187d83d97764fc6f77e392cdb2b9d8d6bb72.tar.lz
dexon-solidity-6a5a187d83d97764fc6f77e392cdb2b9d8d6bb72.tar.xz
dexon-solidity-6a5a187d83d97764fc6f77e392cdb2b9d8d6bb72.tar.zst
dexon-solidity-6a5a187d83d97764fc6f77e392cdb2b9d8d6bb72.zip
Also extract tests that do not start with a pragma.
Diffstat (limited to 'test/cmdlineTests.sh')
-rwxr-xr-xtest/cmdlineTests.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh
index e0ef4461..c9acb99a 100755
--- a/test/cmdlineTests.sh
+++ b/test/cmdlineTests.sh
@@ -181,9 +181,17 @@ TMPDIR=$(mktemp -d)
"$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/docs/ docs
for f in *.sol
do
+ # The contributors guide uses syntax tests, but we cannot
+ # really handle them here.
+ if grep -E 'DeclarationError:|// ----' "$f" >/dev/null
+ then
+ continue
+ fi
echo "$f"
opts=''
- if grep "This will not compile" "$f" >/dev/null
+ # We expect errors if explicitly stated, or if imports
+ # are used (in the style guide)
+ if grep -E "This will not compile|import \"" "$f" >/dev/null
then
opts="-e"
fi