Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator Setting Bulk Test Environment

Qt Creator Setting Bulk Test Environment

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
9 Posts 3 Posters 727 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.
  • VRoninV Offline
    VRoninV Offline
    VRonin
    wrote on last edited by
    #1

    Hi Guys,
    I have a bunch of Qt tests in my project and they all need something appended to PATH in order to run. I don't want to go in each and every one of them to set the run environment. Is there a way to set it up in bulk?
    Thanks

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    aha_1980A kshegunovK 2 Replies Last reply
    0
    • VRoninV VRonin

      Hi Guys,
      I have a bunch of Qt tests in my project and they all need something appended to PATH in order to run. I don't want to go in each and every one of them to set the run environment. Is there a way to set it up in bulk?
      Thanks

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @VRonin,

      which build system and Qt version are you using?

      You can set up the environment per Kit, (Tools > Options), so maybe set up a special kit for that?

      Regards

      Qt has to stay free or it will die.

      VRoninV 1 Reply Last reply
      0
      • aha_1980A aha_1980

        Hi @VRonin,

        which build system and Qt version are you using?

        You can set up the environment per Kit, (Tools > Options), so maybe set up a special kit for that?

        Regards

        VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        @aha_1980 CMake Qt 5.15 and 6.1
        The one you set at the kit level is the build environment, not the run environment, isn’t it?

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        aha_1980A 1 Reply Last reply
        0
        • VRoninV VRonin

          @aha_1980 CMake Qt 5.15 and 6.1
          The one you set at the kit level is the build environment, not the run environment, isn’t it?

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by aha_1980
          #4

          @VRonin No, there is another one in Tools > Options > Kits.

          So in principle you could create a clone of your 5.15 kit which has the PATH set up for the unit tests. Then you use that kit when you want to build & run the tests.

          Could that work?

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          0
          • VRoninV VRonin

            Hi Guys,
            I have a bunch of Qt tests in my project and they all need something appended to PATH in order to run. I don't want to go in each and every one of them to set the run environment. Is there a way to set it up in bulk?
            Thanks

            kshegunovK Offline
            kshegunovK Offline
            kshegunov
            Moderators
            wrote on last edited by
            #5

            @VRonin said in Qt Creator Setting Bulk Test Environment:

            I have a bunch of Qt tests in my project and they all need something appended to PATH in order to run. I don't want to go in each and every one of them to set the run environment. Is there a way to set it up in bulk?

            If you run them in creator, then just append the path before starting it ... or whatever it is you use to run them ...

            $> PATH=$PATH:/something/odd qtcreator

            Read and abide by the Qt Code of Conduct

            VRoninV 1 Reply Last reply
            0
            • kshegunovK kshegunov

              @VRonin said in Qt Creator Setting Bulk Test Environment:

              I have a bunch of Qt tests in my project and they all need something appended to PATH in order to run. I don't want to go in each and every one of them to set the run environment. Is there a way to set it up in bulk?

              If you run them in creator, then just append the path before starting it ... or whatever it is you use to run them ...

              $> PATH=$PATH:/something/odd qtcreator
              VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #6

              @kshegunov this is the method I’m currently using but I thought there must be a better one, I’ll try the kit option

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              kshegunovK 1 Reply Last reply
              1
              • VRoninV VRonin

                @kshegunov this is the method I’m currently using but I thought there must be a better one, I’ll try the kit option

                kshegunovK Offline
                kshegunovK Offline
                kshegunov
                Moderators
                wrote on last edited by
                #7

                Btw, any specific reason you want to modify the PATH of all things? Typically there're better workarounds ...

                Read and abide by the Qt Code of Conduct

                VRoninV 1 Reply Last reply
                0
                • kshegunovK kshegunov

                  Btw, any specific reason you want to modify the PATH of all things? Typically there're better workarounds ...

                  VRoninV Offline
                  VRoninV Offline
                  VRonin
                  wrote on last edited by
                  #8

                  @kshegunov I just want my test to find a bunch of dlls they depend on (I’m on windows)
                  If you have better ways I’d love to hear them

                  "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                  ~Napoleon Bonaparte

                  On a crusade to banish setIndexWidget() from the holy land of Qt

                  kshegunovK 1 Reply Last reply
                  0
                  • VRoninV VRonin

                    @kshegunov I just want my test to find a bunch of dlls they depend on (I’m on windows)
                    If you have better ways I’d love to hear them

                    kshegunovK Offline
                    kshegunovK Offline
                    kshegunov
                    Moderators
                    wrote on last edited by
                    #9

                    What about symlinking the binaries? Or do you intend to link against mentioned libraries?

                    Read and abide by the Qt Code of Conduct

                    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