Skip to content
  • Pekka Paalanen's avatar
    tests: thread-based client harness · babb3b3b
    Pekka Paalanen authored and Daniel Stone's avatar Daniel Stone committed
    This replaces the old test harness with a new one.
    
    The old harness relied on fork()'ing each test which makes tests independent,
    but makes debugging them harder. The new harness runs client code in a thread
    instead of a new process. A side-effect of not fork()'ing anymore is that any
    failure will stop running a test series short. Fortunately we do not have any
    tests that are expected to crash or fail.
    
    The old harness executed 'weston' from Meson, with lots of setup as both
    command line options and environment variables. The new harness executes
    wet_main() instead: the test program itself calls the compositor main function
    to execute the compositor in-process. Command line arguments are configured in
    the test program itself, not in meson.build. Environment variables aside, you
    are able to run a test by simply executing the test program, even if it is a
    plugin test.
    
    The new harness adds a new type of iteration: fixtures. For now, fixtures are
    used to set up the composit...
    babb3b3b