Split functional tests into per-platform target
Fix make check-func
to allow user to run tests for exactly one platform instead of all platforms.
Problem
make check-func
today runs all the functional tests for all supported platforms. (For example, if you configure the Waffle build to support GLX, X11/EGL, but not Wayland, then `make check-func will run all GLX and X11/EGL functional tests). It's not possible to run only the GLX tests or only the X11/EGL tests.
Possible Solution 1
Build a separate test executable for each platform:
- bin/test-glx
- bin/test-wayland
- bin/test-x11-egl
- bin/test-cgl
- ...
Possible Solution 2
Today (495a7d07) all functional tests live in the bin/gl_basic_test
executable. We could continue to build all the tests into that executable add a --platform
argument. For example,
- bin/gl_basic_test --platform glx
- bin/gl_basic_test --platform wayland
- ...