[gimp] desktop: make validate-desktop a unit test.



commit 1a3efe09f8a34300f36c7ab3aaaa5dbaf792922a
Author: Jehan <jehan girinstud io>
Date:   Fri Jun 18 20:52:02 2021 +0200

    desktop: make validate-desktop a unit test.
    
    Instead of a target, let's make it a test. Also I realize it already
    existed as desktop_file test. But it's simpler to run it directly (no
    need of an external script).
    
    Note: I still leave the test-desktop.sh script as it is used for the
    autotools test.

 desktop/meson.build | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/desktop/meson.build b/desktop/meson.build
index 2b34ad7d59..c278f57cae 100644
--- a/desktop/meson.build
+++ b/desktop/meson.build
@@ -91,8 +91,10 @@ metainfofile = custom_target(metainfofilename,
 )
 
 if desktop_validate.found()
-  run_target('validate-desktop',
-    command: [ desktop_validate, desktopfile ],
+  test('validate-desktop',
+    desktop_validate,
+    args: [ desktopfile ],
+    suite: 'desktop',
   )
 endif
 
@@ -114,12 +116,4 @@ if appstream_util.found()
     ],
     suite: 'desktop',
   )
-
-  test('desktop_file',
-    find_program('test-desktop.sh'),
-    env: [
-      'GIMP_TESTING_ABS_TOP_BUILDDIR=' + meson.build_root(),
-    ],
-    suite: 'desktop',
-  )
 endif


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