feat(tfut): add build support for unit testing

With this patch, the CI is now capable of configuring and building
unit tests by adding the proper component to the test group
variable.

Signed-off-by: Juan Pablo Conde <juanpablo.conde@arm.com>
Signed-off-by: Edward Potapov <edward.potapov@arm.com>
Change-Id: Iba487106a9dc5aa8358b358d385599a36f38b121
diff --git a/script/get_ut_test_list.py b/script/get_ut_test_list.py
new file mode 100644
index 0000000..b45fe69
--- /dev/null
+++ b/script/get_ut_test_list.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python3
+#
+# Copyright (c) 2024 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+import json
+import subprocess
+
+cmdres = subprocess.run(["ctest", "--show-only=json-v1"], stdout=subprocess.PIPE)
+
+tests_info = json.loads(cmdres.stdout.decode("utf-8"))
+tests = []
+for test in tests_info["tests"]:
+    if "command" in test:
+        tests.append(test["name"])
+
+tests_str = ' '.join(tests)
+print(tests_str)
+