make check not working



  • 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


  • Lifetime Qt Champion

    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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.