[gtk+] redo the gdk installed tests



commit 090832c6fa3207c8cf21f2ba00ff299cae6b7a12
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Oct 18 09:52:48 2017 +0800

    redo the gdk installed tests

 testsuite/gdk/gdk.test.in |    4 ++++
 testsuite/gdk/meson.build |   18 +++++++-----------
 2 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/testsuite/gdk/gdk.test.in b/testsuite/gdk/gdk.test.in
new file mode 100644
index 0000000..709cb6a
--- /dev/null
+++ b/testsuite/gdk/gdk.test.in
@@ -0,0 +1,4 @@
+[Test]
+Exec=@testexecdir@/@test@ --tap -k --verbose
+Type=session
+Output=TAP
diff --git a/testsuite/gdk/meson.build b/testsuite/gdk/meson.build
index 0694b42..84b503d 100644
--- a/testsuite/gdk/meson.build
+++ b/testsuite/gdk/meson.build
@@ -23,18 +23,14 @@ foreach t : tests
        env: installed_test_env,
        suite: 'gdk')
 
-endforeach
-
-if get_option('install-tests')
-  test_cdata = configuration_data()
-  test_cdata.set('libexecdir', gtk_libexecdir)
-
-  foreach t : tests
-    configure_file(input: '@0  test in'.format(t),
+  if get_option('install-tests')
+    test_cdata = configuration_data()
+    test_cdata.set('testexecdir', testexecdir)
+    test_cdata.set('test', t)
+    configure_file(input: 'gdk.test.in',
                    output: '@0@.test'.format(t),
                    configuration: test_cdata,
                    install: true,
                    install_dir: testdatadir)
-  endforeach
-
-endif
+  endif
+endforeach


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]