mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 06:50:05 +01:00
Add the framework for a test suite
Just the scaffolding, no actual tests just yet Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
7d51d769a6
commit
0049641116
4 changed files with 22 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -26,3 +26,5 @@ src/libinput-version.h
|
|||
doc/libinput.doxygen
|
||||
doc/html
|
||||
tags
|
||||
test/test-*
|
||||
test-driver
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
SUBDIRS = src doc
|
||||
SUBDIRS = src doc test
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
||||
|
|
|
|||
10
configure.ac
10
configure.ac
|
|
@ -59,10 +59,18 @@ else
|
|||
fi
|
||||
AM_CONDITIONAL([HAVE_DOXYGEN], [test "x$have_doxygen" = "xyes"])
|
||||
|
||||
AC_ARG_ENABLE(tests,
|
||||
AS_HELP_STRING([--enable-tests], [Build the tests (default=yes)]),
|
||||
[build_tests="$enableval"],
|
||||
[build_tests="yes"])
|
||||
|
||||
AM_CONDITIONAL(BUILD_TESTS, [test "x$build_tests" = "xyes"])
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
doc/Makefile
|
||||
doc/libinput.doxygen
|
||||
src/Makefile
|
||||
src/libinput.pc
|
||||
src/libinput-version.h])
|
||||
src/libinput-version.h
|
||||
test/Makefile])
|
||||
AC_OUTPUT
|
||||
|
|
|
|||
10
test/Makefile.am
Normal file
10
test/Makefile.am
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
if BUILD_TESTS
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src
|
||||
|
||||
run_tests =
|
||||
build_tests =
|
||||
|
||||
noinst_PROGRAMS = $(build_tests) $(run_tests)
|
||||
TESTS = $(run_tests)
|
||||
|
||||
endif
|
||||
Loading…
Add table
Reference in a new issue