From a36a35cb409e011b7f3835c62923eee1ce5d3c1b Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Tue, 17 Jun 2025 07:44:30 +0200 Subject: [PATCH] Added script to validate all samples Validation messages are stored into a single file --- examples/validate_all.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 examples/validate_all.py diff --git a/examples/validate_all.py b/examples/validate_all.py new file mode 100644 index 00000000..e9386fe3 --- /dev/null +++ b/examples/validate_all.py @@ -0,0 +1,19 @@ +# Copyright (C) 2025 by Sascha Willems - www.saschawillems.de +# This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) + +# Runs all samples in benchmark mode and stores all validation messages into a single text file + +# Note: Need to be copied to where the binary files have been compiled + +import glob +import subprocess +import os + +if os.path.exists("validation_output.txt"): + os.remove("validation_output.txt") +i = 0 +for sample in glob.glob("*.exe"): + # Skip headless samples, as they require manual keypress + if "headless" in sample: + continue + subprocess.call("%s -v -vl -b -bfs %s" % (sample, 50), shell=True) \ No newline at end of file