Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Unsolved make check not working

    Tools
    2
    2
    359
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cOld last edited by

      Hi all,
      this is my project structure:

      project.pro (subdirs template which link to project_lib.pro and project_ut.pro)
      \include
      \src
      project_lib.pro (create a dynamic library with DESTDIR set as $$PWD/../lib)
      \lib
      \test
      project_ut.pro (project with ut with CONFIG += testcase, qt += testlib, LIBS+=-L$$PWD/../lib and DESTDIR=$$PWD/../run)
      \run

      when I run "make check" the execution of the unit test does not start since it does not found the dll which indeed is not in the same folder

      Is there a way to execute the tests with make check without a manual copy of the dll?
      Note I'm working with qt5.5. on both windows and mac

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        For Windows, either modify the PATH environment variable for the check part to also point the to the folder where your DLLs are or put the tests destination folder in the same folder as the DLLs

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post