On 1 July 2016 at 18:21, BUSSE Andre - Contractor
<andre.bu...@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....@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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs
_______________________________________________
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs

Reply via email to