Running Qt Auto tests
-
Hi!
I am trying to install Qt 5.15.8 from the source. I successfully downloaded and ran the configure script with the following tags:./configure --developer-build --widgets --sqlite
After that I ran make -j6 and sudo make install. This will generate the qmake too in
/usr/bin/qmake.I tried running the auto tests for each module which are located in /tests/auto for each module.
But a lot of them are failing because of either missing packages or incorrect installation. how can I fix this issue?
Thanks! -
Hi!
I am trying to install Qt 5.15.8 from the source. I successfully downloaded and ran the configure script with the following tags:./configure --developer-build --widgets --sqlite
After that I ran make -j6 and sudo make install. This will generate the qmake too in
/usr/bin/qmake.I tried running the auto tests for each module which are located in /tests/auto for each module.
But a lot of them are failing because of either missing packages or incorrect installation. how can I fix this issue?
Thanks!Hi and welcome to devnet,
Since it's a developer build, it does not require to be installed. That's the goal of such a build: hack on Qt itself.
And if memory serves well, by default, there should be nothing installed in such a path otherwise you might break your system by replacing its libraries and executables.
-
Thank you! :)
Can you please guide me on how can I run the unit tests (tests/auto) for each module of Qt?I need to generate a unit test report for all the modules that I am using.
I am kind of struggling a lot with the same.Thank you!
@kn96 if memory serves well, but I might be mixing with something else, there's a make checks or make tests target that should run them.
One thing, you should disable example building, you are wasting time and space doing them.
-
@kn96 if memory serves well, but I might be mixing with something else, there's a make checks or make tests target that should run them.
One thing, you should disable example building, you are wasting time and space doing them.
-
@SGaist Thank you so much for your input. I ran make check and make tests and I am getting failed tests due to a lack of appropriate libraries. Can you please share a codeblock if possible that I can use? Thanks!
What is the exact error you are getting now ?
-
@SGaist A lot of the auto tests are failing due to some dependenciesnot being installed. Here are the steps I followed:
- unzip the tar.gz downloaded
- create a qt-build folder
- ran the configure with the --developer-build flag (it does not install QtPDF even when I pass the build-pdf flag)
- make -j
- And then I run make check
Technically if the installation was clean, everything should pass? I would appreciate if you can help me in installing Qt as well as all its dependencies.
-
@SGaist A lot of the auto tests are failing due to some dependenciesnot being installed. Here are the steps I followed:
- unzip the tar.gz downloaded
- create a qt-build folder
- ran the configure with the --developer-build flag (it does not install QtPDF even when I pass the build-pdf flag)
- make -j
- And then I run make check
Technically if the installation was clean, everything should pass? I would appreciate if you can help me in installing Qt as well as all its dependencies.
Why do you want to run them on your system at all? What do you think you gain with it?
The QtBase autotests run fine for me (in the build folder where they are meant to be run). And I doubt the others have some issues since all of them are run on every change going into Qt. -
Why do you want to run them on your system at all? What do you think you gain with it?
The QtBase autotests run fine for me (in the build folder where they are meant to be run). And I doubt the others have some issues since all of them are run on every change going into Qt.@Christian-Ehrlicher I need to create a .txt file for the output of auto tests for documentation I am trying to put together. Thanks!