Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-137033

qtopcua-ptest: miss install open62541-testserver

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.8.3
    • Yocto: meta-qt6 layer
    • None

      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"
      
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sapiippo Samuli Piippo
            pengzh Peng Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes