From 6bc8b9611c85d321fd4fbad012525b7cd05a66d9 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 1 Mar 2013 13:45:12 -0500 Subject: Switched testing to tox. Also scrapped fabfile.py and replaced it with a much simpler makefile. Tox does most of the stuff that was in fabfile.py anyway. Now that everything runs in all supported python versions without using 2to3, we don't need to wait for tox to support it. --- run-tests.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'run-tests.py') diff --git a/run-tests.py b/run-tests.py index e30c7b3..a2e6d13 100755 --- a/run-tests.py +++ b/run-tests.py @@ -1,5 +1,19 @@ #!/usr/bin/env python import tests +import os, sys, getopt -tests.run() +opts, args = getopt.getopt(sys.argv[1:], '') + +if args and args[0] == "update": + if len(args) > 1: + config = tests.get_config(os.path.dirname(args[1])) + root, ext = os.path.splitext(args[1]) + if ext == config.get(tests.get_section(os.path.basename(root), config), 'input_ext'): + tests.generate(root, config) + else: + print(file, 'does not have a valid file extension. Check config.') + else: + tests.generate_all() +else: + tests.run() -- cgit v1.2.3