mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
fix(ci): read only linked executables out of the build graph
The Windows job failed the check with two names that are not test executables. `libhost_thread_local_test_library` is a support library whose RUNTIME_OUTPUT_DIRECTORY puts it in the test directory; on Linux its output is a library artifact and never lands there, which is why the Linux job stayed green. `windows_exception_tests` is a MINGW-only test executable that no `add_test` registers. Ninja prints the rule beside each target, and CMake links an executable with `CXX_EXECUTABLE_LINKER__<target>_<config>` and a shared library with `CXX_SHARED_LIBRARY_LINKER__...`, on every platform. Requiring EXECUTABLE in the rule leaves the library out and keeps the Linux count at 362. `windows_exception_tests` is a real instance of the class this check looks for, so record it beside the other five rather than fail the job that found it.
This commit is contained in:
@@ -11,6 +11,7 @@ KNOWN_UNRUN = {
|
||||
"agc_driver_recorder_tests",
|
||||
"guest_formatting_tests",
|
||||
"video_out_flip_tests",
|
||||
"windows_exception_tests",
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +20,10 @@ def built(build):
|
||||
capture_output=True, text=True, check=True).stdout
|
||||
names = set()
|
||||
for line in listed.splitlines():
|
||||
found = re.match(rf"^{TEST_OUTPUT}([A-Za-z0-9_.]+)", line)
|
||||
path, _, rule = line.partition(": ")
|
||||
if "EXECUTABLE" not in rule:
|
||||
continue
|
||||
found = re.match(rf"^{TEST_OUTPUT}([A-Za-z0-9_.]+)$", path)
|
||||
if not found:
|
||||
continue
|
||||
name = found.group(1).rstrip(".")
|
||||
|
||||
Reference in New Issue
Block a user