gen_test_desc: support specifying RMM configuration
Extend the test description to allow specifying RMM configuration.
All RMM test configurations are grouped under the rmm-* category.
The expected format for specifying RMM test configurations is as follows:
rmm_config, tf_config, tftf_config, spm_config, scp_config, scp_tools.
Change-Id: I5cbb1ecba1e33a82e88432cbd0ac01e4660663d2
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
diff --git a/script/gen_test_desc.py b/script/gen_test_desc.py
index 50944a2..47d7e7c 100755
--- a/script/gen_test_desc.py
+++ b/script/gen_test_desc.py
@@ -45,6 +45,12 @@
# Reshuffle them into the canonical format
config_list = [config_list[1], config_list[2], config_list[3], config_list[4], config_list[0]]
+ if group.startswith("rmm-"):
+ # RMM configs would be specified in the following format:
+ # rmm_config, tf_config, tftf_config, spm_config, scp_config, scp_tools
+ # Reshuffle them into the canonical format
+ config_list = [config_list[1], config_list[2], config_list[4], config_list[5], config_list[3], config_list[0]]
+
if group.startswith("tf-l3-code-coverage"):
# coverage configs would be specified in the following format:
# tf_config, tftf_config, spm_config, scp_config, scp_tools
@@ -60,9 +66,9 @@
build_config, run_config = test.split(":")
# Test descriptors are always generated in the following order:
- # tf_config, tftf_config, scp_config, scp_tools, spm_config
+ # tf_config, tftf_config, scp_config, scp_tools, spm_config, rmm_config
# Fill missing configs to the right with "nil".
- config_list = (build_config.split(",") + ["nil"] * 5)[:5]
+ config_list = (build_config.split(",") + ["nil"] * 6)[:6]
# Perform any group-specific translation on the config
config_list = translate_build_config(group, config_list)