diff --git a/runtests.py b/runtests.py old mode 100644 new mode 100755 index c691fbfef997bba42ff213a71785825463a8b26e..bf445c07199879b31de7d104870d0f49cf20b6c0 --- a/runtests.py +++ b/runtests.py @@ -1,4 +1,8 @@ +##!/usr/bin/env python3 + +import glob import os +import pathlib import shutil import subprocess import tempfile @@ -13,3 +17,11 @@ def runTest(name): print(subprocess.call(cmd)) cmd = ["diff", "-u", f"{d}/local", f"tests/{name}/merged"] return subprocess.call(cmd) + +for test in glob.glob("tests/*/base"): + p = pathlib.Path(test) + testname = p.parent.name + if runTest(testname) == 0: + print(f"Test({testname}) - successfull!") + else: + print(f"Test({testname}) - failed!")