From 108a0b73dcdf3879cdce1c78fd4108cf7e7cd8a1 Mon Sep 17 00:00:00 2001 From: Dieter Baron Date: Fri, 19 Apr 2024 15:40:08 +0200 Subject: [PATCH] Point to correct test case file for generated tests. --- CMakeLists.txt | 2 +- regress/convert_to_dir_variant.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d8cd436f..b3e87b62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,7 +109,7 @@ else() endif() find_program(NIHTEST nihtest) -set(NIHTEST_REQUIRED_VERSION "1.5") +set(NIHTEST_REQUIRED_VERSION "1.7") if(RUN_REGRESS) if (NOT NIHTEST OR NOT PYTHONBIN) diff --git a/regress/convert_to_dir_variant.py b/regress/convert_to_dir_variant.py index 50596234..026953ba 100755 --- a/regress/convert_to_dir_variant.py +++ b/regress/convert_to_dir_variant.py @@ -6,6 +6,7 @@ def create_zip_version(name): """Create zip version of test case.""" + file_name = name with open(name, 'r', encoding='utf-8') as input_file: last_slash = name.rfind('/') if last_slash != -1: @@ -13,6 +14,7 @@ def create_zip_version(name): last_dot = name.rfind('.') output_name = name[:last_dot] + '.zip.test' with open(output_name, 'w', encoding='utf-8') as output_file: + print(f"test-case-source {file_name}", file=output_file) for line in input_file.readlines(): if line.startswith(''): continue