Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-993

Autotests not run from install-root

    XMLWordPrintable

Details

    • d7fb2f24e251c058bdab17bbd737639d9a1c8efd

    Description

      When using the AutotestRunner item, the command qbs build -p autotest-runner cause execution of the unit tests in their build directory.
      It would be nice if the tests were executed in the install root directory instead.

      The command qbs run -p autotest-runner returns this weird result:

      Restoring build graph from disk
      Building for configuration qt57-lnxgcc53_64-debug
      Running test tst_PathAutotests
      Running test tst_XDLSymbol
      Running test tst_DocumentAutotests
      Running test tst_XDLSymbolWriter
      Running test tst_XDLSymbolReader
      /home/krys/Projects/LibreEDA/qt57-lnxgcc53_64-debug/bin/tst_PathAutotests
      ********* Start testing of tst_Path *********
      [...]
      ********* Finished testing of tst_Symbol *********
      Build done for configuration qt57-lnxgcc53_64-debug.
      Installing
      ERROR: Cannot run: Product 'autotest-runner' is not an application.
      

      Basically, depedencies and test suites are built, then run from their build directory, then executed but qbs finally fails.

      Notes:

      • My use case is that some of my unit tests requires the project to be fully installed (need to access data and config files from their "well-known" locations)
      • Althought, Qbs and QtCreator don't depend on each other, there's an inconsistency. QtC run any 'runnable' (CTRL-R) from their install dir.
      • Original request on QBS mailing list: http://lists.qt-project.org/pipermail/qbs/2016-July/001537.html

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              chgans Christian Gagneraud
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes