Skip to content
Snippets Groups Projects
Commit 116c6163 authored by Hefee's avatar Hefee
Browse files

run all available tests

parent 3bbc6ce9
Branches
Tags
No related merge requests found
runtests.py 100644 → 100755
##!/usr/bin/env python3
import glob
import os import os
import pathlib
import shutil import shutil
import subprocess import subprocess
import tempfile import tempfile
...@@ -13,3 +17,11 @@ def runTest(name): ...@@ -13,3 +17,11 @@ def runTest(name):
print(subprocess.call(cmd)) print(subprocess.call(cmd))
cmd = ["diff", "-u", f"{d}/local", f"tests/{name}/merged"] cmd = ["diff", "-u", f"{d}/local", f"tests/{name}/merged"]
return subprocess.call(cmd) 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!")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment