[gtk/matthiasc/for-master: 6/8] Rename test to transition




commit 449212551f2c92c38f85dbc6e2ee59b95bca4ef6
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 3 14:32:50 2021 -0500

    Rename test to transition
    
    Thats what it is about, so name it clearly.
    
    Add missing installed tests too.

 testsuite/css/data.test.in                       |  4 ++++
 testsuite/css/meson.build                        | 20 ++++++++++++++++++--
 testsuite/css/{test-css-value.c => transition.c} |  0
 testsuite/css/transition.test.in                 |  4 ++++
 4 files changed, 26 insertions(+), 2 deletions(-)
---
diff --git a/testsuite/css/data.test.in b/testsuite/css/data.test.in
new file mode 100644
index 0000000000..11e0e3950d
--- /dev/null
+++ b/testsuite/css/data.test.in
@@ -0,0 +1,4 @@
+[Test]
+Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 GTK_A11Y=test @libexecdir@/installed-tests/gtk-4.0/css/data --tap 
-k"
+Type=session
+Output=TAP
diff --git a/testsuite/css/meson.build b/testsuite/css/meson.build
index cd35ced891..def05adcaa 100644
--- a/testsuite/css/meson.build
+++ b/testsuite/css/meson.build
@@ -45,14 +45,14 @@ test('data', test_data,
   suite: 'css',
 )
 
-test_parser = executable('test-css-value', 'test-css-value.c',
+transition = executable('transition', 'transition.c',
   c_args: common_cflags,
   dependencies: libgtk_static_dep,
   install: get_option('install-tests'),
   install_dir: testexecdir,
 )
 
-test('css value', test_parser,
+test('transition', transition,
      args: [ '--tap', '-k' ],
      protocol: 'tap',
      env: csstest_env,
@@ -67,6 +67,22 @@ if get_option('install-tests')
     configuration: conf,
     install_dir: testdatadir,
   )
+
+  conf = configuration_data()
+  conf.set('libexecdir', gtk_libexecdir)
+  configure_file(input: 'data.test.in',
+    output: 'data.test',
+    configuration: conf,
+    install_dir: testdatadir,
+  )
+
+  conf = configuration_data()
+  conf.set('libexecdir', gtk_libexecdir)
+  configure_file(input: 'transition.test.in',
+    output: 'transition.test',
+    configuration: conf,
+    install_dir: testdatadir,
+  )
 endif
 
 if false and get_option ('profiler')
diff --git a/testsuite/css/test-css-value.c b/testsuite/css/transition.c
similarity index 100%
rename from testsuite/css/test-css-value.c
rename to testsuite/css/transition.c
diff --git a/testsuite/css/transition.test.in b/testsuite/css/transition.test.in
new file mode 100644
index 0000000000..d90acdfa4d
--- /dev/null
+++ b/testsuite/css/transition.test.in
@@ -0,0 +1,4 @@
+[Test]
+Exec=/bin/sh -c "env G_ENABLE_DIAGNOSTIC=0 GTK_A11Y=test @libexecdir@/installed-tests/gtk-4.0/css/transition 
--tap -k"
+Type=session
+Output=TAP


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