2015-05-02 21:21:31 +00:00
|
|
|
include $(top_srcdir)/Makefile.decl
|
|
|
|
|
|
|
|
NULL =
|
|
|
|
|
|
|
|
test_simplify = \
|
|
|
|
simplify/test1.ui simplify/test1.expected \
|
|
|
|
simplify/test2.ui simplify/test2.expected \
|
|
|
|
simplify/test3.ui simplify/test3.expected \
|
|
|
|
simplify/test4.ui simplify/test4.expected \
|
|
|
|
simplify/test5.ui simplify/test5.expected \
|
|
|
|
simplify/test6.ui simplify/test6.expected \
|
|
|
|
simplify/test7.ui simplify/test7.expected \
|
|
|
|
simplify/test8.ui simplify/test8.expected \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
2015-05-02 21:37:54 +00:00
|
|
|
$(test_simplify) \
|
2015-07-21 03:54:39 +00:00
|
|
|
test-simplify.in \
|
2016-03-05 18:41:47 +00:00
|
|
|
test-settings.in \
|
2015-05-02 21:37:54 +00:00
|
|
|
$(NULL)
|
2015-05-02 21:21:31 +00:00
|
|
|
|
|
|
|
TESTS_ENVIRONMENT = \
|
2016-03-05 18:41:47 +00:00
|
|
|
GTK_BUILDER_TOOL="$(top_builddir)/gtk/gtk-builder-tool" \
|
|
|
|
GTK_QUERY_SETTINGS="$(top_builddir)/gtk/gtk-query-settings" \
|
|
|
|
$(NULL)
|
2015-05-02 21:21:31 +00:00
|
|
|
|
|
|
|
TEST_PROGS += \
|
|
|
|
test-simplify \
|
2016-03-05 18:41:47 +00:00
|
|
|
test-settings \
|
2015-05-02 21:21:31 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2015-07-21 03:54:39 +00:00
|
|
|
test-simplify:test-simplify.in
|
|
|
|
$(AM_V_GEN) cp $< $@
|
|
|
|
|
2016-03-05 18:41:47 +00:00
|
|
|
test-settings:test-settings.in
|
|
|
|
$(AM_V_GEN) cp $< $@
|
|
|
|
|
2015-05-02 21:37:54 +00:00
|
|
|
if BUILDOPT_INSTALL_TESTS
|
|
|
|
insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)
|
|
|
|
insttest_SCRIPTS = $(TEST_PROGS)
|
|
|
|
nobase_insttest_DATA = $(test_simplify)
|
|
|
|
|
2016-03-05 18:41:47 +00:00
|
|
|
%.test: % Makefile
|
2015-05-02 21:37:54 +00:00
|
|
|
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
|
|
|
|
echo 'Type=session' >> $@.tmp; \
|
2016-01-30 15:29:06 +00:00
|
|
|
echo 'Output=TAP' >> $@.tmp; \
|
2016-03-07 15:50:43 +00:00
|
|
|
echo 'Exec=env G_ENABLE_DIAGNOSTIC=0 TEST_DATA_DIR="$(insttestdir)/simplify" $(insttestdir)/$<' >> $@.tmp; \
|
2015-05-02 21:37:54 +00:00
|
|
|
mv $@.tmp $@)
|
|
|
|
|
|
|
|
test_files = $(TEST_PROGS:=.test)
|
|
|
|
|
|
|
|
DISTCLEANFILES = \
|
2016-03-05 18:41:47 +00:00
|
|
|
$(TEST_PROGS) \
|
2015-05-02 21:37:54 +00:00
|
|
|
$(test_files) \
|
|
|
|
$(NULL)
|
|
|
|
|
2016-03-07 12:28:56 +00:00
|
|
|
testmetadir = $(datadir)/installed-tests/$(PACKAGE)
|
2015-05-02 21:37:54 +00:00
|
|
|
testmeta_DATA = $(test_files)
|
|
|
|
endif
|
|
|
|
|
2015-05-02 21:21:31 +00:00
|
|
|
-include $(top_srcdir)/git.mk
|