waffle-gl / waffle

A C library for selecting an OpenGL API and window system at runtime
https://waffle.freedesktop.org
BSD 2-Clause "Simplified" License
35 stars 16 forks source link

Split functional tests into per-platform target #33

Closed linyaa-kiwi closed 8 years ago

linyaa-kiwi commented 8 years ago

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:

Today (495a7d0) 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,