diff options
author | Benjamin Otte <otte@redhat.com> | 2013-05-21 12:50:13 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2013-05-21 13:11:10 +0200 |
commit | 7c26980f3e7c1184d1474fd9b8d2d3a406d0a349 (patch) | |
tree | 6a9167e7ab2069a8aa631068f62c36b3d344fbd4 /testsuite/css | |
parent | 12953f20b334230ab5116dd3aa626ff453bafc55 (diff) | |
download | gtk+-7c26980f3e7c1184d1474fd9b8d2d3a406d0a349.tar.gz |
tests: Install tests/css/parser
Diffstat (limited to 'testsuite/css')
-rw-r--r-- | testsuite/css/parser/Makefile.am | 32 | ||||
-rw-r--r-- | testsuite/css/parser/test-css-parser.test.in | 3 |
2 files changed, 33 insertions, 2 deletions
diff --git a/testsuite/css/parser/Makefile.am b/testsuite/css/parser/Makefile.am index 038e9013ae..25f3f7f785 100644 --- a/testsuite/css/parser/Makefile.am +++ b/testsuite/css/parser/Makefile.am @@ -1,6 +1,11 @@ include $(top_srcdir)/Makefile.decl +NULL = + +CLEANFILES = + TEST_PROGS += test-css-parser +test_in_files = test-css-parser.test.in check_PROGRAMS = $(TEST_PROGS) @@ -24,7 +29,7 @@ test_css_parser_SOURCES = \ clean-local: rm $(builddir)/*.out.css || true -EXTRA_DIST += \ +test_data = \ at-invalid-01.css \ at-invalid-01.errors \ at-invalid-01.ref.css \ @@ -340,6 +345,29 @@ EXTRA_DIST += \ value-none.css \ value-none.errors \ value-none.ref.css \ - widget-style-property.css + widget-style-property.css \ + $(NULL) + +if BUILDOPT_INSTALL_TESTS +insttestdir=$(pkglibexecdir)/installed-tests/css/parser +insttest_PROGRAMS = $(TEST_PROGS) +insttest_DATA = $(test_data) + +substitutions = \ + -e s,@pkglibexecdir\@,$(pkglibexecdir),g \ + $(NULL) + +test_files = $(test_in_files:.test.in=.test) + +$(test_files): %.test: %.test.in + $(AM_V_GEN) sed $(substitutions) $< > $@.tmp && mv $@.tmp $@ + +EXTRA_DIST += $(test_in_files) + +CLEANFILES += $(test_files) +testmetadir = $(datadir)/installed-tests/$(PACKAGE)/css/parser +testmeta_DATA = $(test_files) +endif + -include $(top_srcdir)/git.mk diff --git a/testsuite/css/parser/test-css-parser.test.in b/testsuite/css/parser/test-css-parser.test.in new file mode 100644 index 0000000000..0b3c0ed659 --- /dev/null +++ b/testsuite/css/parser/test-css-parser.test.in @@ -0,0 +1,3 @@ +[Test] +Exec=/bin/sh -c "cd @pkglibexecdir@/installed-tests/css/parser && @pkglibexecdir@/installed-tests/css/parser/test-css-parser" +Type=session |