freerdp3: install cmdline-tests data for ptest

TestCommandLineToCommaSeparatedValues fails because its JSON test cases
are never installed.

With no arguments the test runs runJsonTests(), which globs
TEST_SOURCE_DIR/cmdline-tests/*.json via FindFirstFileA and returns -1
when the directory cannot be opened. do_configure:prepend already
rewrites TEST_SOURCE_DIR for this CMakeLists to ${PTEST_PATH}/test, and
the built driver confirms it:

  $ strings Testing/TestWinPRUtils | grep -e cmdline-tests -e ptest/test
  cmdline-tests
  cmdline-tests%c*.json
  /usr/lib/freerdp3/ptest/test

but do_install_ptest only copies *bmp out of
winpr/libwinpr/utils/test, so /usr/lib/freerdp3/ptest/test/cmdline-tests
does not exist on target and the glob always fails. Copy the directory
alongside the other test data.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2026-08-18 05:59:10 +02:00
committed by Khem Raj
parent f1fc1f3908
commit 8df282147e
@@ -86,6 +86,7 @@ do_install_ptest() {
cp -r ${B}/Testing ${D}${PTEST_PATH}
# test data
cp ${S}/winpr/libwinpr/utils/test/*bmp ${D}${PTEST_PATH}/test/
cp -r ${S}/winpr/libwinpr/utils/test/cmdline-tests ${D}${PTEST_PATH}/test/
cp ${S}/libfreerdp/codec/test/*bmp ${D}${PTEST_PATH}/test/
cp -r ${S}/client/common/test/* ${D}${PTEST_PATH}/test/
cp -r ${S}/resources ${D}${PTEST_PATH}