[pacman-dev] [PATCH] ensure tests are parsed as TAP since they are, in fact, TAP

Eli Schwartz eschwartz at archlinux.org
Mon Apr 5 21:36:06 UTC 2021


Signed-off-by: Eli Schwartz <eschwartz at archlinux.org>
---

After this change, meson's test harness reports:

334/335 vercmptest                                                 OK               0.15s   92 subtests passed
335/335 makepkg-template_test.sh                                   OK               0.83s   36 subtests passed

The 'XX subtests passed' is new to this change.

 test/scripts/meson.build | 1 +
 test/util/meson.build    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/test/scripts/meson.build b/test/scripts/meson.build
index 6d13ad1ee..8e921ffad 100644
--- a/test/scripts/meson.build
+++ b/test/scripts/meson.build
@@ -6,6 +6,7 @@ tests = [
 foreach tst : tests
   test(tst,
        BASH,
+       protocol : 'tap',
        env : TEST_ENV,
        args : [
          join_paths(meson.current_source_dir(), tst),
diff --git a/test/util/meson.build b/test/util/meson.build
index 07b29e5c4..b4046298f 100644
--- a/test/util/meson.build
+++ b/test/util/meson.build
@@ -1,6 +1,7 @@
 test('vercmptest',
      BASH,
      env : TEST_ENV,
+     protocol : 'tap',
      args : [
        join_paths(meson.current_source_dir(), 'vercmptest.sh')
      ])
-- 
2.31.1


More information about the pacman-dev mailing list