Blame SOURCES/0035-tests-Add-gdb-setup-to-run-tests-using-gdb.patch

73b847
From 923fc9e108a352a1fa4cad98a361cf4cdc233d25 Mon Sep 17 00:00:00 2001
73b847
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
73b847
Date: Tue, 26 Nov 2019 18:45:31 +0100
73b847
Subject: [PATCH 035/181] tests: Add 'gdb' setup to run tests using gdb
73b847
73b847
When using --setup=gdb the tests will be running using gdb, however this
73b847
as per meson limitation allows only running a test when using verbose mode.
73b847
---
73b847
 tests/meson.build | 10 ++++++++++
73b847
 1 file changed, 10 insertions(+)
73b847
73b847
diff --git a/tests/meson.build b/tests/meson.build
73b847
index 7987692..1645028 100644
73b847
--- a/tests/meson.build
73b847
+++ b/tests/meson.build
73b847
@@ -44,3 +44,13 @@ if get_option('introspection')
73b847
         )
73b847
     endif
73b847
 endif
73b847
+
73b847
+gdb = find_program('gdb', required: false)
73b847
+if gdb.found()
73b847
+    add_test_setup('gdb',
73b847
+        timeout_multiplier: 1000,
73b847
+        env: [
73b847
+            'LIBFPRINT_TEST_WRAPPER=@0@ --args'.format(
73b847
+                gdb.path())
73b847
+        ])
73b847
+endif
73b847
-- 
73b847
2.24.1
73b847