[Development] How to run Qt's auto-tests?
Sergio Ahumada
sergio.ahumada at digia.com
Tue May 28 13:58:48 CEST 2013
On 05/28/2013 01:58 PM, shane.kearns at accenture.com wrote:
>> What's the procedure for building and running Qt's auto-tests? I've
>> tried:
>>
>
> See Sergio's response.
> Note that 'make check' will stop at the first failure, and the QtNetwork tests require a test server to be set up.
> See here:
> https://qt.gitorious.org/qtqa/sysadmin/blobs/master/README.network_test_server.txt
>
> Alternatively you can skip the QtNetwork tests and the few QFile related tests that use this server if you not working on this part of the code.
I think you can also do
$ make -k check
>> Also, can I configure + build the base libraries using "-nomake tests",
>> then just build + run the subset of tests that I'm interested in?
>>
>
> Yes you can - run qmake / make / make check in a subdirectory (e.g. tests/auto/network to run only the QtNetwork tests)
$ make -k -C tests/auto/network check
should work as well.
Cheers,
--
Sergio Ahumada
Release Engineer - Digia, Qt
More information about the Development
mailing list