Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Running Qt Auto tests

Running Qt Auto tests

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
9 Posts 3 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kn96
    wrote on last edited by
    #1

    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!

    SGaistS 1 Reply Last reply
    0
    • K kn96

      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!

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kn96
        wrote on last edited by
        #3

        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!

        SGaistS 1 Reply Last reply
        0
        • K kn96

          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!

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          K 1 Reply Last reply
          0
          • SGaistS SGaist

            @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.

            K Offline
            K Offline
            kn96
            wrote on last edited by
            #5

            @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!

            SGaistS 1 Reply Last reply
            0
            • K kn96

              @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!

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              What is the exact error you are getting now ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              K 1 Reply Last reply
              0
              • SGaistS SGaist

                What is the exact error you are getting now ?

                K Offline
                K Offline
                kn96
                wrote on last edited by
                #7

                @SGaist A lot of the auto tests are failing due to some dependenciesnot being installed. Here are the steps I followed:

                1. unzip the tar.gz downloaded
                2. create a qt-build folder
                3. ran the configure with the --developer-build flag (it does not install QtPDF even when I pass the build-pdf flag)
                4. make -j
                5. 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.

                Christian EhrlicherC 1 Reply Last reply
                0
                • K kn96

                  @SGaist A lot of the auto tests are failing due to some dependenciesnot being installed. Here are the steps I followed:

                  1. unzip the tar.gz downloaded
                  2. create a qt-build folder
                  3. ran the configure with the --developer-build flag (it does not install QtPDF even when I pass the build-pdf flag)
                  4. make -j
                  5. 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.

                  Christian EhrlicherC Offline
                  Christian EhrlicherC Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  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.

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  K 1 Reply Last reply
                  0
                  • Christian EhrlicherC Christian Ehrlicher

                    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.

                    K Offline
                    K Offline
                    kn96
                    wrote on last edited by
                    #9

                    @Christian-Ehrlicher I need to create a .txt file for the output of auto tests for documentation I am trying to put together. Thanks!

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved