aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2022-06-04build: stop using deprecated Meson functionsSimon Ser
Fixes the following warning: NOTICE: Future-deprecated features used: * 0.55.0: {'ExternalProgram.path'} * 0.56.0: {'dependency.get_pkgconfig_variable'} Signed-off-by: Simon Ser <contact@emersion.fr>
2022-02-25build: Bump wayland-scanner version to 1.20.0Tadeo Kondrak
Wayland 1.20.0 adds support for the type attribute to mark events as destructors. Signed-off-by: Tadeo Kondrak <me@tadeo.ca>
2021-10-11tests: check whether -Wl,--unresolved-symbols=ignore-all is supportedAlex Richardson
When linking for macOS, this linker flag is rejected. Instead of always passing it, we can check whether it is supported first. Signed-off-by: Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> Reviewed-by: Simon Ser <contact@emersion.fr>
2021-10-04tests: allow cross-compiling the testsAlex Richardson
I am trying to cross-compile from macOS for FreeBSD and this is currently failing since the tests attempt to build a native binary that links against the wayland-client and wayland-server libraries for the FreeBSD system. I believe we should be building them for the target system and not the current host (especially since there is no way to build wayland-client and wayland-server for macOS, but I do want to check that the files build correctly for FreeBSD). Signed-off-by: Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> Reviewed-by: Simon Ser <contact@emersion.fr>
2021-09-19meson.build: wayland-scanner is only needed for testsFabrice Fontaine
wayland-scanner is only needed for tests so don't require it if tests are disabled Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2021-09-01build: only require C/C++ compilers for hostSimon Ser
We use the no-op executables in test() directives, so these will be run on the host. This fixes the following warning: tests/meson.build:23: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build. Signed-off-by: Simon Ser <contact@emersion.fr>
2021-09-01build: fix indentation in tests/meson.buildSimon Ser
The rest of the file uses tabs, not spaces. Signed-off-by: Simon Ser <contact@emersion.fr>
2021-08-28tests: Include libwayland cflags/ldflagsDaniel Stone
When we're building C++ test executables, make sure we pull in the correct libwayland headers, to avoid trying to compile against a version different from the scanner we built it against. Signed-off-by: Daniel Stone <daniels@collabora.com>
2021-06-23tests: Fix build with -WextraXavier Claessens
Unused arguments warnings are treated as errors in those tests otherwise. Fixes: #53. Signed-off-by: Xavier Claessens <xavier.claessens@collabora.com>
2021-06-03tests: use dynamic python pathIssam E. Maghni
Stop hardcoding the Python path to /usr/bin/python3. Not all systems have Python installed to /usr/bin, and some users might have installed Python to a custom location. Instead, use /usr/bin/env, which performs a $PATH lookup to find the Python executable. Signed-off-by: Issam E. Maghni <issam.e.maghni@mailbox.org>
2021-03-26tests: Add compile testsJonas Ådahl
Only tested by the meson build system. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Simon Ser <contact@emersion.fr>
2021-03-26Add meson build system supportJonas Ådahl
Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Simon Ser <contact@emersion.fr>
2018-07-30tests: Make wayland-scanner strictJonas Ådahl
Pass --strict to wayland-scanner in order to make it exit with failure if something wasn't correct. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Simon Ser <contact@emersion.fr>
2018-07-30tests: Use public-code and private-code instead of codeJonas Ådahl
The wayland-scanner sub-commands private-code and public-code replaced the old code command, so lets use those in the tests instead. This requires at least wayland-scanner 1.15.0. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Simon Ser <contact@emersion.fr>
2016-01-14test: add make checkDerek Foreman
We can now test all the protocol files by running make check (or distcheck) which will pass them through the scanner. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> Acked-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Jonas Ådahl <jadahl@gmail.com>