Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Running unit test with jom

Running unit test with jom

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
jom check path
1 Posts 1 Posters 424 Views
  • 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.
  • Y Offline
    Y Offline
    Yannick
    wrote on last edited by
    #1

    Hi,
    I currently try to build and run on command line a unit test using

    • qmake <.pro file> command
    • jom check command

    The build works fine but the builded unit test doesn't launch successfully (Qt dll are missing).
    In the generated makefile I have the line:
    check: first
    cd <app path> && (set QT_PLUGIN_PATH=c:\Qt\Qt5.5.1\msvc2015_opengl\plugins) & (set PATH=c:\Qt\Qt5.5.1\msvc2015_opengl\lib;%%PATH:)=^)%%) & $(TESTRUNNER) .$(TARGET) $(TESTARGS)

    The problem is in this makefile when the PATH is set. It should finish by \bin instead of \lib.
    If I modify this makefile manually, the unit test run successfully.

    How can I do to configure qmake to generate this line with the correct PATH ?
    check: first
    cd <app path> && (set QT_PLUGIN_PATH=c:\Qt\Qt5.5.1\msvc2015_opengl\plugins) & (set PATH=c:\Qt\Qt5.5.1\msvc2015_opengl\bin;%%PATH:)=^)%%) & $(TESTRUNNER) .$(TARGET) $(TESTARGS)

    Should I need to add some variables in .pro file or on command line ?

    Thanks for your help.
    Best regards,

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved