From 97bc624e609cf5e33c6f7d42d1d0ce2668c6d753 Mon Sep 17 00:00:00 2001 From: EmilioCorigliano Date: Tue, 28 Apr 2026 12:02:37 +0200 Subject: [PATCH] fix(testing): create optional add_compiler_flags field to tests --- testing/config/tests.toml | 1 + testing/test.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/testing/config/tests.toml b/testing/config/tests.toml index 3d0e5ba..937595f 100644 --- a/testing/config/tests.toml +++ b/testing/config/tests.toml @@ -182,6 +182,7 @@ source_file = "c/malardalen/matmult.c" [[tests]] test_name = "c_basicmath" source_file = "c/mibench/basicmath.c" +add_compiler_flags = "-lm" [[tests]] test_name = "c_crc32_mibench" diff --git a/testing/test.py b/testing/test.py index ebda1ed..283a4f2 100644 --- a/testing/test.py +++ b/testing/test.py @@ -86,6 +86,9 @@ def test_aspis(test_data, use_container, aspis_addopt, data_technique, cfc_techn test_name = test_data["test_name"] source_file = test_data["source_file"] + if("add_compiler_flags" in test_data): + aspis_addopt += " " + test_data["add_compiler_flags"] + if("black_list" in test_data): black_list = test_data["black_list"] if(data_technique in black_list or cfc_technique in black_list):