2024-07-21 16:42:41 +02:00

18 lines
381 B
Python

import subprocess
import glob
import os
tests = sorted(glob.glob("[A-Za-z]*.py"))
excludes = ["runtests.py"]
output_dir = os.path.join(os.path.dirname(__file__), "output")
if not os.path.exists(output_dir):
os.mkdir(output_dir)
for test in tests:
if test not in excludes:
print("%s ..." % test)
subprocess.call(["python", "./%s" % test])
print("Done.")