diff options
author | Ran Benita <ran234@gmail.com> | 2012-05-19 02:35:15 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2012-05-20 20:31:49 +0300 |
commit | 869c6871906526bcef2c835e2072a1a71ad03c33 (patch) | |
tree | e3b73218e1d4a01f6023390dd9cab408fef195ce /Makefile.am | |
parent | 68edd5f0df85c0bce5368c9c7aa52be219e50011 (diff) |
rules: add test
Add a non-extensive test to check that some basic things (e.g. rule
matching, var substitution, indexes and groups) work as expected.
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index cef9790..bd67aec 100644 --- a/Makefile.am +++ b/Makefile.am @@ -99,6 +99,12 @@ $(top_builddir)/makekeys/makekeys$(EXEEXT): $(top_srcdir)/makekeys/makekeys.c # Tests +# Some tests need to use unexported symbols, so we link them against +# a private copy of libxkbcommon with all symbols exposed. +noinst_LTLIBRARIES = libxkbcommon-priv.la +libxkbcommon_priv_la_LDFLAGS = $(libxkbcommon_la_LDFLAGS) +libxkbcommon_priv_la_SOURCES = $(libxkbcommon_la_SOURCES) + TESTS_ENVIRONMENT = TESTS = \ @@ -108,8 +114,9 @@ TESTS = \ test/rulescomp \ test/canonicalise \ test/state \ - test/context -TESTS_LDADD = libxkbcommon.la + test/context \ + test/rules-file +TESTS_LDADD = libxkbcommon-priv.la test_xkey_LDADD = $(TESTS_LDADD) test_filecomp_LDADD = $(TESTS_LDADD) @@ -118,6 +125,8 @@ test_rulescomp_LDADD = $(TESTS_LDADD) -lrt test_canonicalise_LDADD = $(TESTS_LDADD) test_state_LDADD = $(TESTS_LDADD) test_context_LDADD = $(TESTS_LDADD) +test_rules_file_CFLAGS = $(AM_CFLAGS) -Wno-declaration-after-statement +test_rules_file_LDADD = $(TESTS_LDADD) check_PROGRAMS = $(TESTS) |