installed-tests: declare that the output is in TAP format
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 26 Feb 2015 17:53:46 +0000 (17:53 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 16 Apr 2015 12:06:16 +0000 (13:06 +0100)
For the ones written using GLib, the output is in TAP format if we
say --tap. For the one not written using GLib, the output is in TAP
and the command-line is ignored.

Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89846

test/Makefile.am

index f384859..3cf1d74 100644 (file)
@@ -473,12 +473,14 @@ $(installable_test_meta): %.test: %$(EXEEXT) Makefile
        $(AM_V_GEN) ( \
                echo '[Test]'; \
                echo 'Type=session'; \
-               echo 'Exec=env DBUS_TEST_HOME=$$(pwd)/home.tmp $(testexecdir)/$*'; \
+               echo 'Output=TAP'; \
+               echo 'Exec=env DBUS_TEST_HOME=$$(pwd)/home.tmp $(testexecdir)/$* --tap'; \
        ) > $@.tmp && mv $@.tmp $@
 
 $(installable_test_meta_with_config): %_with_config.test: %$(EXEEXT) Makefile
        $(AM_V_GEN) ( \
                echo '[Test]'; \
                echo 'Type=session'; \
-               echo 'Exec=env DBUS_TEST_HOME=$$(pwd)/home.tmp DBUS_TEST_DATA=$(testexecdir)/data $(testexecdir)/$*'; \
+               echo 'Output=TAP'; \
+               echo 'Exec=env DBUS_TEST_HOME=$$(pwd)/home.tmp DBUS_TEST_DATA=$(testexecdir)/data $(testexecdir)/$* --tap'; \
        ) > $@.tmp && mv $@.tmp $@