mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-06 13:27:48 +00:00
test: Space-separate arguments in as-installed tests' .test files
The "as-installed" tests have metadata files in the .desktop-like format used by gnome-desktop-testing, which uses a subset of shell syntax for the Exec field. The list of arguments is represented as a semicolon-separated list by CMake, but we need to convert that into a space-separated list for the Exec field. Strictly speaking we should be quoting the arguments with the equivalent of Python's shlex.quote, but I couldn't find a way to do that in CMake, and currently none of the tests have arguments that need quoting. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
committed by
Anonymous Maarten
parent
30c2cda25e
commit
c81b4e8493
@@ -599,7 +599,9 @@ function(add_sdl_test TEST TARGET)
|
||||
set(command ${TARGET})
|
||||
endif()
|
||||
get_property(noninteractive_arguments TARGET ${TARGET} PROPERTY SDL_NONINTERACTIVE_ARGUMENTS)
|
||||
get_property(installed_arguments TARGET ${TARGET} PROPERTY SDL_INSTALLED_ARGUMENTS)
|
||||
get_property(installed_arguments_list TARGET ${TARGET} PROPERTY SDL_INSTALLED_ARGUMENTS)
|
||||
# This assumes that none of the arguments need quoting
|
||||
list(JOIN installed_arguments_list " " installed_arguments)
|
||||
get_property(disable_threads_args TARGET ${TARGET} PROPERTY SDL_DISABLE_THREADS_ARGS)
|
||||
get_property(uses_threads TARGET ${TARGET} PROPERTY SDL_THREADS)
|
||||
if(noninteractive_arguments)
|
||||
|
||||
Reference in New Issue
Block a user