diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f817d3a..451b1bd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -99,3 +99,8 @@ jobs: ${ENV:CMAKE_BUILD_PARALLEL_LEVEL}=2 cmake --preset release -DENABLE_UNIT_TESTING=ON cmake --build --preset release + + - name: Run Tests + run: | + ./build/test/Debug/test.exe --help + python3 run_tests.py diff --git a/run_tests.py b/run_tests.py index c21458c..31b76a0 100644 --- a/run_tests.py +++ b/run_tests.py @@ -1,8 +1,9 @@ #!/usr/bin/env python3 +import platform import subprocess import threading -from datetime import datetime, timedelta +from datetime import datetime from pathlib import Path TEST_RUNNING_MSG = """ @@ -55,8 +56,12 @@ def run(self): str(self.shard_count), "--shard-index", str(self.shard_index), + "--verbosity", + "high", ] + print(f"Running {' '.join(cmd)}") + result = subprocess.run( cmd, capture_output=True, @@ -72,7 +77,11 @@ def run(self): if __name__ == "__main__": lock_file = Path(__file__).parent / "test_err_cnt.log.lock" - test_file = Path(__file__).parent / "build" / "test" / "test" + + if "Windows" == platform.system(): + test_file = Path(__file__).parent / "build" / "test" / "Debug" / "test.exe" + else: + test_file = Path(__file__).parent / "build" / "test" / "test" if lock_file.exists(): print(