[gnome-software] build: Add test suites to test() calls



commit 3a44354aacc18e1bc916d30b9741c4fce98421ad
Author: Philip Withnall <withnall endlessm com>
Date:   Wed Nov 6 10:54:18 2019 +0000

    build: Add test suites to test() calls
    
    This makes it easier to run certain sets of tests and not others.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    Helps: #825

 lib/meson.build                      | 2 +-
 plugins/core/meson.build             | 2 +-
 plugins/dpkg/meson.build             | 2 +-
 plugins/dummy/meson.build            | 2 +-
 plugins/epiphany/meson.build         | 2 +-
 plugins/fedora-langpacks/meson.build | 2 +-
 plugins/flatpak/meson.build          | 2 +-
 plugins/fwupd/meson.build            | 2 +-
 plugins/modalias/meson.build         | 2 +-
 plugins/packagekit/meson.build       | 2 +-
 plugins/repos/meson.build            | 2 +-
 plugins/shell-extensions/meson.build | 2 +-
 plugins/snap/meson.build             | 2 +-
 src/meson.build                      | 2 +-
 14 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/lib/meson.build b/lib/meson.build
index 330cd787..376beebd 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -153,5 +153,5 @@ if get_option('tests')
     ],
     c_args : cargs
   )
-  test('gs-self-test-lib', e, env: test_env, timeout : 120)
+  test('gs-self-test-lib', e, suite: ['lib'], env: test_env, timeout : 120)
 endif
diff --git a/plugins/core/meson.build b/plugins/core/meson.build
index 858ccc9a..39630d13 100644
--- a/plugins/core/meson.build
+++ b/plugins/core/meson.build
@@ -246,5 +246,5 @@ if get_option('tests')
     ],
     c_args : cargs,
   )
-  test('gs-self-test-core', e, env: test_env)
+  test('gs-self-test-core', e, suite: ['plugins', 'core'], env: test_env)
 endif
diff --git a/plugins/dpkg/meson.build b/plugins/dpkg/meson.build
index 050cdf50..ffae6369 100644
--- a/plugins/dpkg/meson.build
+++ b/plugins/dpkg/meson.build
@@ -37,5 +37,5 @@ if get_option('tests')
     ],
     c_args : cargs,
   )
-  test('gs-self-test-dpkg', e, env: test_env)
+  test('gs-self-test-dpkg', e, suite: ['plugins', 'dpkg'], env: test_env)
 endif
diff --git a/plugins/dummy/meson.build b/plugins/dummy/meson.build
index 93640df0..9235f4ef 100644
--- a/plugins/dummy/meson.build
+++ b/plugins/dummy/meson.build
@@ -37,5 +37,5 @@ if get_option('tests')
     ],
     c_args : cargs,
   )
-  test('gs-self-test-dummy', e, env: test_env)
+  test('gs-self-test-dummy', e, suite: ['plugins', 'dummy'], env: test_env)
 endif
diff --git a/plugins/epiphany/meson.build b/plugins/epiphany/meson.build
index 5fe15a96..88f515e5 100644
--- a/plugins/epiphany/meson.build
+++ b/plugins/epiphany/meson.build
@@ -48,5 +48,5 @@ if get_option('tests')
     ],
     c_args : cargs,
   )
-  test('gs-self-test-epiphany', e, env: test_env)
+  test('gs-self-test-epiphany', e, suite: ['plugins', 'epiphany'], env: test_env)
 endif
diff --git a/plugins/fedora-langpacks/meson.build b/plugins/fedora-langpacks/meson.build
index 1dcd3f78..cdc3757b 100644
--- a/plugins/fedora-langpacks/meson.build
+++ b/plugins/fedora-langpacks/meson.build
@@ -36,5 +36,5 @@ if get_option('tests')
     ],
     c_args : cargs,
   )
-  test('gs-self-test-fedora-langpacks', e, env: test_env)
+  test('gs-self-test-fedora-langpacks', e, suite: ['plugins', 'fedora-langpacks'], env: test_env)
 endif
diff --git a/plugins/flatpak/meson.build b/plugins/flatpak/meson.build
index 23178b7d..5714b291 100644
--- a/plugins/flatpak/meson.build
+++ b/plugins/flatpak/meson.build
@@ -65,5 +65,5 @@ if get_option('tests')
     ],
     c_args : cargs,
   )
-  test('gs-self-test-flatpak', e, env: test_env, timeout : 120)
+  test('gs-self-test-flatpak', e, suite: ['plugins', 'flatpak'], env: test_env, timeout : 120)
 endif
diff --git a/plugins/fwupd/meson.build b/plugins/fwupd/meson.build
index 965a5e27..7c89add3 100644
--- a/plugins/fwupd/meson.build
+++ b/plugins/fwupd/meson.build
@@ -56,5 +56,5 @@ if get_option('tests')
     ],
     c_args : cargs,
   )
-  test('gs-self-test-fwupd', e, env: test_env)
+  test('gs-self-test-fwupd', e, suite: ['plugins', 'fwupd'], env: test_env)
 endif
diff --git a/plugins/modalias/meson.build b/plugins/modalias/meson.build
index fd6c8906..22cac6d2 100644
--- a/plugins/modalias/meson.build
+++ b/plugins/modalias/meson.build
@@ -38,5 +38,5 @@ if get_option('tests')
     ],
     c_args : cargs,
   )
-  test('gs-self-test-modalias', e, env: test_env)
+  test('gs-self-test-modalias', e, suite: ['plugins', 'modalias'], env: test_env)
 endif
diff --git a/plugins/packagekit/meson.build b/plugins/packagekit/meson.build
index a295b1b1..05ae4d4d 100644
--- a/plugins/packagekit/meson.build
+++ b/plugins/packagekit/meson.build
@@ -245,5 +245,5 @@ if get_option('tests')
     ],
     c_args : cargs,
   )
-  test('gs-self-test-packagekit', e, env: test_env)
+  test('gs-self-test-packagekit', e, suite: ['plugins', 'packagekit'], env: test_env)
 endif
diff --git a/plugins/repos/meson.build b/plugins/repos/meson.build
index 356ad0ef..201b137b 100644
--- a/plugins/repos/meson.build
+++ b/plugins/repos/meson.build
@@ -37,5 +37,5 @@ if get_option('tests')
     ],
     c_args : cargs,
   )
-  test('gs-self-test-repos', e, env: test_env)
+  test('gs-self-test-repos', e, suite: ['plugins', 'repos'], env: test_env)
 endif
diff --git a/plugins/shell-extensions/meson.build b/plugins/shell-extensions/meson.build
index ee571e56..3a008f7b 100644
--- a/plugins/shell-extensions/meson.build
+++ b/plugins/shell-extensions/meson.build
@@ -43,5 +43,5 @@ if get_option('tests')
     ],
     c_args : cargs,
   )
-  test('gs-self-test-shell-extensions', e, env: test_env)
+  test('gs-self-test-shell-extensions', e, suite: ['plugins', 'shell-extensions'], env: test_env)
 endif
diff --git a/plugins/snap/meson.build b/plugins/snap/meson.build
index ccaff96c..6afe62cd 100644
--- a/plugins/snap/meson.build
+++ b/plugins/snap/meson.build
@@ -50,5 +50,5 @@ if get_option('tests')
     ],
     c_args : cargs,
   )
-  test('gs-self-test-snap', e, env: test_env)
+  test('gs-self-test-snap', e, suite: ['plugins', 'snap'], env: test_env)
 endif
diff --git a/src/meson.build b/src/meson.build
index 965112dd..98a49a44 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -311,5 +311,5 @@ if get_option('tests')
     ],
     c_args : cargs
   )
-  test('gs-self-test-src', e, env: test_env)
+  test('gs-self-test-src', e, suite: ['plugins', 'src'], env: test_env)
 endif


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