diff options
author | Waylan Limberg <waylan@gmail.com> | 2013-03-01 13:45:12 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2013-03-01 13:45:12 -0500 |
commit | 6bc8b9611c85d321fd4fbad012525b7cd05a66d9 (patch) | |
tree | 6f897eec0b37273152ba05fc0c8e5a45342ff6b8 /run-tests.py | |
parent | 26ebafb3b86b224c2acad29bf4d4314a3242189a (diff) | |
download | markdown-6bc8b9611c85d321fd4fbad012525b7cd05a66d9.tar.gz markdown-6bc8b9611c85d321fd4fbad012525b7cd05a66d9.tar.bz2 markdown-6bc8b9611c85d321fd4fbad012525b7cd05a66d9.zip |
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.
Diffstat (limited to 'run-tests.py')
-rwxr-xr-x | run-tests.py | 16 |
1 files changed, 15 insertions, 1 deletions
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() |