summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMariusz Ceier <mceier+wayland@gmail.com>2014-12-15 11:33:53 +0100
committerDaniel Stone <daniels@collabora.com>2015-01-27 11:17:42 +0000
commite3dc9a7af6f8f88ff7503bc3a70178e47802868d (patch)
treea7896e0b4e174ba715450ea8ea11879afe6833aa /Makefile.am
parenttests: Correct return code handling (diff)
downloadwayland-e3dc9a7af6f8f88ff7503bc3a70178e47802868d.tar
wayland-e3dc9a7af6f8f88ff7503bc3a70178e47802868d.tar.gz
wayland-e3dc9a7af6f8f88ff7503bc3a70178e47802868d.tar.bz2
wayland-e3dc9a7af6f8f88ff7503bc3a70178e47802868d.tar.lz
wayland-e3dc9a7af6f8f88ff7503bc3a70178e47802868d.tar.xz
wayland-e3dc9a7af6f8f88ff7503bc3a70178e47802868d.tar.zst
wayland-e3dc9a7af6f8f88ff7503bc3a70178e47802868d.zip
tests: C++ compilation test
This test includes one of wayland headers, which produced error with C++ compiler. C compiler can't be used for this test, because it issues only a warning[1] and only when wayland headers are not installed in system headers path (/usr/include). [1] wayland-server-protocol.h:201:2: warning: implicit declaration of function ‘wl_resource_post_event’ [daniels: Merged in Marek's follow-up to check for a C++ compiler.] Signed-off-by: Mariusz Ceier <mceier+wayland@gmail.com> Signed-off-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 1551762..43b741a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -130,6 +130,10 @@ TESTS = \
resources-test \
message-test
+if ENABLE_CPP_TEST
+TESTS += cpp-compile-test
+endif
+
check_PROGRAMS = \
$(TESTS) \
exec-fd-leak-checker
@@ -181,6 +185,10 @@ resources_test_LDADD = libtest-runner.la
message_test_SOURCES = tests/message-test.c
message_test_LDADD = libtest-runner.la
+if ENABLE_CPP_TEST
+cpp_compile_test_SOURCES = tests/cpp-compile-test.cpp
+endif
+
fixed_benchmark_SOURCES = tests/fixed-benchmark.c
fixed_benchmark_LDADD = libtest-runner.la