mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
This change adds integration/regression tests for ibus-keyman. It re-uses the unit tests that we have for core. Also modifies one test so that the context doesn't use characters used in the keyboard. This makes it easier to setup in ibus-keyman tests.
112 lines
3.6 KiB
Makefile
112 lines
3.6 KiB
Makefile
# vim:set noet ts=4:
|
|
#
|
|
# ibus-keyman unit tests
|
|
#
|
|
# Copyright (c) 2021 SIL International
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
# any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
AUTOMAKE_OPTIONS = subdir-objects
|
|
|
|
AM_CFLAGS = \
|
|
@IBUS_CFLAGS@ \
|
|
@GTK_CFLAGS@ \
|
|
@JSON_GLIB_CFLAGS@ \
|
|
@X11_CFLAGS@ \
|
|
@KEYMAN_PROC_CFLAGS@ \
|
|
-DPKGDATADIR=\"$(pkgdatadir)\" \
|
|
$(NULL)
|
|
|
|
AM_LDFLAGS = \
|
|
@IBUS_LIBS@ \
|
|
@GTK_LIBS@ \
|
|
@X11_LIBS@ \
|
|
@JSON_GLIB_LIBS@ \
|
|
@KEYMAN_PROC_LIBS@ \
|
|
$(NULL)
|
|
|
|
libexec_PROGRAMS = ibus-keyman-tests
|
|
|
|
ibus_keyman_tests_SOURCES = \
|
|
ibusimcontext.c \
|
|
ibusimcontext.h \
|
|
testfixture.cpp \
|
|
testmodule.c \
|
|
testmodule.h \
|
|
../../../common/core/desktop/src/json.cpp \
|
|
../../../common/core/desktop/src/keyboard.cpp \
|
|
../../../common/core/desktop/src/kmx/kmx_actions.cpp \
|
|
../../../common/core/desktop/src/kmx/kmx_actions.h \
|
|
../../../common/core/desktop/src/kmx/kmx_base.h \
|
|
../../../common/core/desktop/src/kmx/kmx_capslock.cpp \
|
|
../../../common/core/desktop/src/kmx/kmx_consts.cpp \
|
|
../../../common/core/desktop/src/kmx/kmx_context.cpp \
|
|
../../../common/core/desktop/src/kmx/kmx_context.h \
|
|
../../../common/core/desktop/src/kmx/kmx_debug.cpp \
|
|
../../../common/core/desktop/src/kmx/kmx_debugger.cpp \
|
|
../../../common/core/desktop/src/kmx/kmx_debugger.h \
|
|
../../../common/core/desktop/src/kmx/kmx_environment.cpp \
|
|
../../../common/core/desktop/src/kmx/kmx_environment.h \
|
|
../../../common/core/desktop/src/kmx/kmx_file.cpp \
|
|
../../../common/core/desktop/src/kmx/kmx_file.h \
|
|
../../../common/core/desktop/src/kmx/kmx_modifiers.cpp \
|
|
../../../common/core/desktop/src/kmx/kmx_options.cpp \
|
|
../../../common/core/desktop/src/kmx/kmx_options.h \
|
|
../../../common/core/desktop/src/kmx/kmx_processevent.cpp \
|
|
../../../common/core/desktop/src/kmx/kmx_processevent.h \
|
|
../../../common/core/desktop/src/kmx/kmx_processor.cpp \
|
|
../../../common/core/desktop/src/kmx/kmx_processor.hpp \
|
|
../../../common/core/desktop/src/kmx/kmx_xstring.cpp \
|
|
../../../common/core/desktop/src/kmx/kmx_xstring.h \
|
|
../../../common/core/desktop/src/option.cpp \
|
|
../../../common/core/desktop/src/state.cpp \
|
|
../../../common/core/desktop/src/utfcodec.cpp \
|
|
../../../common/core/desktop/tests/unit/kmx/kmx_test_source.cpp \
|
|
../../../common/core/desktop/tests/unit/kmx/kmx_test_source.hpp \
|
|
$(NULL)
|
|
|
|
ibus_keyman_tests_CFLAGS = \
|
|
@IBUS_CFLAGS@ \
|
|
@GTK_CFLAGS@ \
|
|
@X11_CFLAGS@ \
|
|
@JSON_GLIB_CFLAGS@ \
|
|
@KEYMAN_PROC_CFLAGS@ \
|
|
-DPKGDATADIR=\"$(pkgdatadir)\" \
|
|
-I../../../common/core/desktop/src \
|
|
-I../../../common/core/desktop/src/kmx \
|
|
-I../../../common/core/desktop/tests/unit/kmx \
|
|
-I../src \
|
|
$(NULL)
|
|
|
|
ibus_keyman_tests_CPPFLAGS = \
|
|
@IBUS_CFLAGS@ \
|
|
@GTK_CFLAGS@ \
|
|
@X11_CFLAGS@ \
|
|
@JSON_GLIB_CFLAGS@ \
|
|
@KEYMAN_PROC_CFLAGS@ \
|
|
-DPKGDATADIR=\"$(pkgdatadir)\" \
|
|
-I../../../common/core/desktop/src \
|
|
-I../../../common/core/desktop/src/kmx \
|
|
-I../../../common/core/desktop/tests/unit/kmx \
|
|
-I../src \
|
|
$(NULL)
|
|
|
|
ibus_keyman_tests_LDFLAGS = \
|
|
@GTK_LIBS@ \
|
|
@IBUS_LIBS@ \
|
|
@X11_LIBS@ \
|
|
@JSON_GLIB_LIBS@ \
|
|
@KEYMAN_PROC_LIBS@ \
|
|
$(NULL)
|