[gtk+] tests: Install tests/css/parser
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Install tests/css/parser
- Date: Tue, 21 May 2013 11:11:35 +0000 (UTC)
commit 7c26980f3e7c1184d1474fd9b8d2d3a406d0a349
Author: Benjamin Otte <otte redhat com>
Date: Tue May 21 12:50:13 2013 +0200
tests: Install tests/css/parser
testsuite/css/parser/Makefile.am | 32 ++++++++++++++++++++++++-
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 038e901..25f3f7f 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 0000000..0b3c0ed
--- /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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]