From 6a5a187d83d97764fc6f77e392cdb2b9d8d6bb72 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 9 Aug 2018 20:48:41 +0200 Subject: Also extract tests that do not start with a pragma. --- test/cmdlineTests.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.2.3