untab
[dumbwifi.git] / test / testall.py
blob150a4d1e7948063c5ea9cdaa16505085e6cc2e6d
1 #!/usr/bin/env python
3 # Author: Martin Matusiak <numerodix@gmail.com>
4 # Licensed under the GNU Public License, version 3.
6 import glob
7 import sys
10 verbose = 1
11 if len(sys.argv) > 1 and sys.argv[1] == "-v": verbose = 2
13 cmd_template="""
14 import %s
15 %s.run(verbose)
16 """
18 tests = glob.glob("test_*.py")
19 for test in tests:
20 test = test.replace(".py", "")
21 cmd = (cmd_template % (test, test)).strip()
22 exec(compile(cmd, "", "exec"))