This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository terminology.

View the commit online.

commit 08d3a960829c8e1e4f50802ba1738dcf3ec0100f
Author: Boris Faure <[email protected]>
AuthorDate: Sat Aug 22 17:01:07 2026 +0200

    build: run the test suite from meson
---
 meson.build         |  1 +
 src/bin/meson.build |  2 +-
 tests/meson.build   | 33 +++++++++++++++++++++++++++++++++
 3 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 780e94c7..f248aba3 100644
--- a/meson.build
+++ b/meson.build
@@ -152,4 +152,5 @@ config_dir = include_directories('.')
 subdir('data')
 subdir('man')
 subdir('src/bin')
+subdir('tests')
 
diff --git a/src/bin/meson.build b/src/bin/meson.build
index f12f5d7a..53a67c3e 100644
--- a/src/bin/meson.build
+++ b/src/bin/meson.build
@@ -137,7 +137,7 @@ if fuzzing
              dependencies: terminology_dependencies)
 endif
 if tests
-  executable('tytest',
+  tytest = executable('tytest',
              tytest_sources,
              install: true,
              include_directories: config_dir,
diff --git a/tests/meson.build b/tests/meson.build
new file mode 100644
index 00000000..8c36669c
--- /dev/null
+++ b/tests/meson.build
@@ -0,0 +1,33 @@
+if tests
+  run_tests = find_program('run_tests.sh')
+
+  # Each script's output is piped through tytest and the resulting state
+  # checksum compared against tests.results.
+  test('escape-codes',
+       run_tests,
+       args: ['-v',
+              '-t', tytest.full_path(),
+              '-r', meson.current_source_dir() / 'tests.results',
+              '-d', meson.current_source_dir()],
+       depends: tytest,
+       workdir: meson.current_source_dir(),
+       timeout: 300)
+
+  # Replayed with tiny reads, so every escape sequence and every multibyte
+  # character straddles a read boundary. Results must match the run above.
+  foreach chunk : ['1', '3', '7']
+    test('escape-codes-chunk' + chunk,
+         run_tests,
+         args: ['-v',
+                '-t', tytest.full_path(),
+                '-r', meson.current_source_dir() / 'tests.results',
+                '-d', meson.current_source_dir(),
+                '--chunk=' + chunk],
+         depends: tytest,
+         workdir: meson.current_source_dir(),
+         timeout: 600)
+  endforeach
+
+  # The in-process C unit tests compiled into tytest itself.
+  test('unit', tytest, args: ['all'], timeout: 120)
+endif

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to