William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 1 | From d6ceb5a44b28e0e50ede22b84984d8516897de4b Mon Sep 17 00:00:00 2001 |
| 2 | From: Jussi Kukkonen <jussi.kukkonen@intel.com> |
| 3 | Date: Mon, 27 Apr 2015 20:12:33 +0300 |
| 4 | Subject: [PATCH] Run installed tests with tap output |
| 5 | |
| 6 | Configure output from installed-tests to be TAP compliant such that |
| 7 | gnome-desktop-testing-runner properly interprets the results. |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | Signed-off-by: Tim Orling <TicoTimo@gmail.com> |
| 12 | |
| 13 | --- |
| 14 | build-aux/autotools/glib-tap.mk | 3 ++- |
| 15 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/build-aux/autotools/glib-tap.mk b/build-aux/autotools/glib-tap.mk |
| 18 | index a4f0dad..51cfa31 100644 |
| 19 | --- a/build-aux/autotools/glib-tap.mk |
| 20 | +++ b/build-aux/autotools/glib-tap.mk |
| 21 | @@ -127,7 +127,8 @@ installed_test_meta_DATA = $(installed_testcases:=.test) |
| 22 | %.test: %$(EXEEXT) Makefile |
| 23 | $(AM_V_GEN) (echo '[Test]' > $@.tmp; \ |
| 24 | echo 'Type=session' >> $@.tmp; \ |
| 25 | - echo 'Exec=env G_ENABLE_DIAGNOSTIC=0 CLUTTER_ENABLE_DIAGNOSTIC=0 $(installed_testdir)/$<' >> $@.tmp; \ |
| 26 | + echo 'Exec=env G_ENABLE_DIAGNOSTIC=0 CLUTTER_ENABLE_DIAGNOSTIC=0 $(installed_testdir)/$< --tap' >> $@.tmp; \ |
| 27 | + echo 'Output=TAP' >> $@.tmp; \ |
| 28 | mv $@.tmp $@) |
| 29 | |
| 30 | CLEANFILES += $(installed_test_meta_DATA) |