Also extract tests that do not start with a pragma.

This commit is contained in:
chriseth
2018-08-14 15:50:46 +02:00
parent 6cf299bec6
commit 6a5a187d83
2 changed files with 25 additions and 24 deletions
+9 -1
View File
@@ -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