Commit fb0b5550 by Tianqi Yang

test(global): add runAll.py to run all specified test suites

Add runAll.py to run all specified test suites
parent 9763cd5b
#!/usr/bin/env python3
import os
import subprocess
import sys
if __name__ == '__main__':
names = sys.argv[1:]
if len(names) == 0:
names = sorted(os.listdir('.'))
for name in names:
if os.path.isdir(name) and os.path.exists(os.path.join(name, 'runAll.py')):
print ('Running test suite {}:'.format(name))
subprocess.call(
[os.path.abspath(os.path.join(name, 'runAll.py'))],
stdin = sys.stdin,
stdout = sys.stdout,
stderr = sys.stderr,
cwd = name
)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment