blob: b45fe692dfc84410ff8cd155ea20cd9315f0046d [file] [log] [blame]
Juan Pablo Conde3feb7f12023-10-21 13:14:47 -05001#!/usr/bin/env python3
2#
3# Copyright (c) 2024 Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8import json
9import subprocess
10
11cmdres = subprocess.run(["ctest", "--show-only=json-v1"], stdout=subprocess.PIPE)
12
13tests_info = json.loads(cmdres.stdout.decode("utf-8"))
14tests = []
15for test in tests_info["tests"]:
16 if "command" in test:
17 tests.append(test["name"])
18
19tests_str = ' '.join(tests)
20print(tests_str)
21