Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-101524

Run tests in parallel

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • None
    • Run tests in parallel

    Description

      What is needed to be able to run tests in parallel under the same host?

      NOTE: all approaches are about test-executables running in parallel - not test-case parallelisation

      This is because test-case (i.e. Qt test-function) level parallelisation is not supported by qtestlib.

      Dumb parallelisation - via ctest -j N

      This is almost impossible since tests have side-effects on the screen and on other system components like disk and network.

      Isolating screen output for each executable

      There are several alternative solutions:

      • offscreen QPA plugin
      • run each test under xvfb-run
        • slow since each test launches its own X server
      • Start N number of virtual X servers (Xvfb or XVNC) or virtual wayland compositors (how?) and somehow rotate the DISPLAY setting on every test started.

      Isolating system interference between test each executable

      One way would be to run the tests under different users and inside different work directories. But is this really necessary? Do different tests read/write same locations?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jimis Dimitrios Apostolou
            jimis Dimitrios Apostolou
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes