From 116c6163b6cf8629fd12c40e84a48cc5eb080c8d Mon Sep 17 00:00:00 2001 From: hefee <me@hefee.de> Date: Thu, 22 Mar 2018 17:05:20 +0100 Subject: [PATCH] run all available tests --- runtests.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) mode change 100644 => 100755 runtests.py diff --git a/runtests.py b/runtests.py old mode 100644 new mode 100755 index c691fbf..bf445c0 --- 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!") -- GitLab