summaryrefslogtreecommitdiff
path: root/runtests.py
diff options
context:
space:
mode:
Diffstat (limited to 'runtests.py')
-rwxr-xr-xruntests.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/runtests.py b/runtests.py
index 81c7c103f..42866714f 100755
--- a/runtests.py
+++ b/runtests.py
@@ -73,8 +73,8 @@ def main(argv):
help="just build, do not run any tests")
parser.add_argument("--doctests", action="store_true", default=False,
help="Run doctests in module")
- #parser.add_argument("--refguide-check", action="store_true", default=False,
- #help="Run refguide check (do not run regular tests.)")
+ parser.add_argument("--refguide-check", action="store_true", default=False,
+ help="Run refguide check (do not run regular tests.)")
parser.add_argument("--coverage", action="store_true", default=False,
help=("report coverage of project code. HTML output goes "
"under build/coverage"))
@@ -202,6 +202,14 @@ def main(argv):
shutil.rmtree(dst_dir)
extra_argv += ['--cov-report=html:' + dst_dir]
+ if args.refguide_check:
+ cmd = [os.path.join(ROOT_DIR, 'tools', 'refguide_check.py'),
+ '--doctests']
+ if args.submodule:
+ cmd += [args.submodule]
+ os.execv(sys.executable, [sys.executable] + cmd)
+ sys.exit(0)
+
if args.bench:
# Run ASV
items = extra_argv
@@ -335,7 +343,6 @@ def build_project(args):
# add flags used as werrors
warnings_as_errors = ' '.join([
# from tools/travis-test.sh
- '-Werror=declaration-after-statement',
'-Werror=vla',
'-Werror=nonnull',
'-Werror=pointer-arith',