Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.8.3
-
None
Description
when execute qtopcua ptest, following error show:
Server Path: "/usr/lib64/qtopcua/ptest/tests/auto/declarative/../../open62541-testserver/open62541-testserver" all auto tests rely on an open62541-based test-server /usr/lib64/qtopcua/ptest/run-ptest: line 29: 721 Aborted (core dumped) ./${t} FAIL: tst_opcua Server Path: "/usr/lib64/qtopcua/ptest/tests/auto/clientSetupInCpp/../../open62541-testserver/open62541-testserver" all auto tests rely on an open62541-based test-server /usr/lib64/qtopcua/ptest/run-ptest: line 29: 726 Aborted (core dumped) ./${t} FAIL: tst_clientSetupInCpp
after check the open62541-testserver was build,bu not install to B_PTEST/tests in target.
❯ fd open62541-testserver build-ptest/tests/open62541-testserver/ build-ptest/tests/open62541-testserver/CMakeFiles/open62541-testserver.dir/ build-ptest/tests/open62541-testserver/CMakeFiles/open62541-testserver.dir/open62541-testserver_autogen/ build-ptest/tests/open62541-testserver/CMakeFiles/open62541-testserver_autogen.dir/ build-ptest/tests/open62541-testserver/open62541-testserver build-ptest/tests/open62541-testserver/open62541-testserver_autogen/
candidate fix
❯ git diff qtopcua_git.bb diff --git a/recipes-qt/qt6/qtopcua_git.bb b/recipes-qt/qt6/qtopcua_git.bb index 46c85cb..8668ea9 100644 --- a/recipes-qt/qt6/qtopcua_git.bb +++ b/recipes-qt/qt6/qtopcua_git.bb @@ -35,6 +35,12 @@ PACKAGECONFIG[open62541] = "-DFEATURE_open62541=ON,-DFEATURE_open62541=OFF,opens # cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security] SECURITY_STRINGFORMAT = "" +do_install_ptest:append() { + install -d ${D}${PTEST_PATH}/tests/open62541-testserver + install -m 0755 ${B_PTEST}/tests/open62541-testserver/open62541-testserver \ + ${D}${PTEST_PATH}/tests/open62541-testserver/ +} + DEPENDS += "qtbase qtopcua-native" BBCLASSEXTEND = "native nativesdk"
Attachments
Issue Links
- relates to
-
QTBUG-118680 Make auto tests pass with ptest
-
- Open
-