diff --git a/scripts/lib/mlkem_test.py b/scripts/lib/mlkem_test.py index aa0ad35fe..99d94c2bb 100644 --- a/scripts/lib/mlkem_test.py +++ b/scripts/lib/mlkem_test.py @@ -96,7 +96,7 @@ def dict2str(dict): args = [ "make", f"CROSS_PREFIX={self.cross_prefix}", - f"{self.test_type}", + f"{self.test_type.make_target()}", ] + extra_make_args env = os.environ.copy() diff --git a/scripts/lib/util.py b/scripts/lib/util.py index b3eff6042..ebafad27c 100644 --- a/scripts/lib/util.py +++ b/scripts/lib/util.py @@ -100,6 +100,20 @@ def bin(self): if self == TEST_TYPES.ACVP: return "acvp_mlkem" + def make_target(self): + if self == TEST_TYPES.MLKEM: + return "mlkem" + if self == TEST_TYPES.BENCH: + return "bench" + if self == TEST_TYPES.BENCH_COMPONENTS: + return "bench_components" + if self == TEST_TYPES.NISTKAT: + return "nistkat" + if self == TEST_TYPES.KAT: + return "kat" + if self == TEST_TYPES.ACVP: + return "acvp" + def bin_path(self, scheme): return path( f"test/build/{scheme.name.lower()}/bin/{self.bin()}{scheme.suffix()}"