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

CONFIG += cmdline testcase breaks path in make check rule

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.14.1, 5.15.0 Alpha
    • 5.12.2, 5.12.6, 5.13.2, 5.14.0 Beta3
    • Build tools: qmake
    • None
    • macOS
    • d60b71d635a038e3fe8b061b0ac3f2aad70227a5 (qt/qtbase/5.14)

      When using CONFIG with testcase and cmdline, if cmdline is specified before testcase, the check rule will have an incorrect path to the binary that references an app bundle. If testcase is specified before cmdline, it works.

       

      Using CONFIG += cmdline testcase  leads to Makefiles with the following incorrect path referencing an app bundle:

      check: first
       /path/to/target_wrapper.sh $(TESTRUNNER) ./$(QMAKE_TARGET).app/Contents/MacOS/$(QMAKE_TARGET) $(TESTARGS)
      

       

      Using CONFIG += testcase cmdline leads to Makefiles with the following statement with the correct path the binary: 

      check: first
        /path/to/target_wrapper.sh $(TESTRUNNER) ./$(QMAKE_TARGET) $(TESTARGS)
      

       

       

        For Gerrit Dashboard: QTBUG-80280
        # Subject Branch Project Status CR V

            qtbuildsystem Qt Build System Team
            linville Aaron Linville
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes