From d55a299efd74431e98c8a4f24cffd07c95d419d6 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 15 Mar 2011 12:47:54 +0100 Subject: Introduce check test framework Add the check test framework, and add a simple test to check point to point mappings. The tests use the device files as input. Signed-off-by: Henrik Rydberg --- test/Makefile.am | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'test/Makefile.am') diff --git a/test/Makefile.am b/test/Makefile.am index e69de29..106641d 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -0,0 +1,27 @@ +if HAVE_CHECK +test_targets = check-grail +else +test_targets = +endif + +TESTS = $(test_targets) +noinst_PROGRAMS = $(test_targets) + +check_grail_SOURCES = \ + check-mapping.c \ + check-grail.c + +check_grail_CFLAGS = \ + -Wall -Wextra \ + -I$(top_srcdir) \ + -I$(top_srcdir)/include \ + $(CHECK_CFLAGS) + +# +# Link against the (non-distributed) static lib to pick up the +# internal symbols. +# +check_grail_LDADD = \ + $(top_builddir)/src/.libs/libutouch-grail.a \ + $(CHECK_LIBS) \ + -lutouch-frame -lutouch-evemu -lmtdev -lm -- cgit v1.2.3