[QBS] How to run autotests from install-root

Ch'Gans chgans at gna.org
Fri Jul 1 08:49:31 CEST 2016


On 1 July 2016 at 18:21, BUSSE Andre - Contractor
<Andre.BUSSE at external.thalesgroup.com> wrote:
> Hi Chris,
> try this:
>
>   $> qbs run -p autotest-runner

Hi Andre,

Doesn't work here (Qbs 1.5.1):
ERROR: Cannot run: Product 'autotest-runner' is not an application.


Chris


>
> Good Luck!
>
> CU,
> Andre
>
>
> -----Urspr√ľngliche Nachricht-----
> Von: QBS [mailto:qbs-bounces+andre.busse=external.thalesgroup.com at qt-project.org] Im Auftrag von Ch'Gans
> Gesendet: Freitag, 1. Juli 2016 05:24
> An: qbs
> Betreff: [QBS] How to run autotests from install-root
>
> Hi there,
>
> Some of my unit tests require that the project is fully built and installed, and that they run from the same directory as the real application.
> By default "qbs build -p autotest-runner" execute the tests from their build directory, is there any way to get qbs run them from the install root?
>
> Here is my Autotest.qbs:
> ------------------------------------------------------
> import qbs
>
> Product {
>     type: ["application", "autotest"]
>     Depends { name: "Qt.test" }
>     targetName: "tst_" + name.split(' ').join("")
>     destinationDirectory: project.bin_path
>
>     Group {
>         fileTagsFilter: product.type
>         qbs.install: true
>         qbs.installDir: project.bin_path
>     }
> }
> ------------------------------------------------------
>
> Thanks,
> Chris
> _______________________________________________
> QBS mailing list
> QBS at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs



More information about the Qbs mailing list