File: Makefile.am

package info (click to toggle)
ibus-typing-booster 2.10.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 87,788 kB
  • sloc: xml: 799,041; python: 22,939; sh: 3,519; makefile: 342
file content (86 lines) | stat: -rw-r--r-- 2,161 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# vim:set noet ts=4
#
# ibus-typing-booster - A completion input method for IBus
#
# Copyright (c) 2016 Mike FABIAN <mfabian@redhat.com>
#
# 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 3 of the License, 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, see <http://www.gnu.org/licenses/>

TESTS = \
	test_0_gtk.py \
	test_compose_sequences.py \
	test_emoji_candidates.py \
	test_emoji_similar.py \
	test_emoji_unicode_version.py \
	test_hunspell_suggest.py \
	test_itb.py \
	test_itb_util.py \
	test_keyvals_to_keycodes.py \
	test_m17n_db_info.py \
	test_m17n_translit.py \
	$(NULL)

check_SCRIPTS = run_tests

LOG_COMPILER = $(builddir)/run_tests

TESTS_ENVIRONMENT = \
	IBUS_TYPING_BOOSTER_LOCATION=../

test_meta_in = meta.test.in
test_metas =

if ENABLE_INSTALLED_TESTS
test_metas += $(patsubst %.py, %.test, $(TESTS))
test_source_DATA = $(test_metas)
test_sourcedir = $(datadir)/installed-tests/ibus-typing-booster
test_exec_SCRIPTS = \
	$(TESTS) \
	gtkcases.py \
	mock_engine.py \
	run_tests \
	$(NULL)
test_execdir = $(libexecdir)/installed-tests/ibus-typing-booster

$(test_metas): $(test_meta_in)
	@TEST_EXEC=`echo $@ | sed -e 's&\.test&\.py&'`; \
	sed -e "s&@TEST_EXECDIR@&$(test_execdir)&g" \
	    -e "s&@TEST_EXEC@&$$TEST_EXEC&g" $< > $@.tmp; \
	mv $@.tmp $@; \
	$(NULL)
endif

run_tests: run_tests.in
	sed -e 's&@PYTHON_BIN@&$(PYTHON)&g' \
	    -e 's&@PKGDATADIR@&$(pkgdatadir)&g' \
	    -e 's&@SRCDIR@&$(srcdir)&g' $< > $@
	chmod +x $@

EXTRA_DIST = \
	$(test_meta_in) \
	__init__.py \
	gtkcases.py \
	mock_engine.py \
	run_tests.in \
	$(TESTS) \
	$(NULL)

CLEANFILES = \
	$(test_metas) \
	run_tests \
	$(NULL)

MAINTAINERCLEANFILES = \
	Makefile.in \
	$(NULL)