summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/gstreamer/gstreamer1.0/0002-tests-add-support-for-install-the-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-multimedia/gstreamer/gstreamer1.0/0002-tests-add-support-for-install-the-tests.patch')
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0/0002-tests-add-support-for-install-the-tests.patch56
1 files changed, 27 insertions, 29 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0/0002-tests-add-support-for-install-the-tests.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0/0002-tests-add-support-for-install-the-tests.patch
index d18c19c397..568e38cbf1 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0/0002-tests-add-support-for-install-the-tests.patch
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0/0002-tests-add-support-for-install-the-tests.patch
@@ -1,7 +1,7 @@
1From 62f5bb7bfc2498219df7280e73480d8ed2378ce5 Mon Sep 17 00:00:00 2001 1From 08b1aaff972a7f6349373fc1ad4cc23081adb52c Mon Sep 17 00:00:00 2001
2From: Jose Quaresma <quaresma.jose@gmail.com> 2From: Jose Quaresma <quaresma.jose@gmail.com>
3Date: Sun, 11 Apr 2021 19:48:13 +0100 3Date: Sun, 11 Apr 2021 19:48:13 +0100
4Subject: [PATCH 2/4] tests: add support for install the tests 4Subject: [PATCH] tests: add support for install the tests
5 5
6This will provide to run the tests using the gnome-desktop-testing [1] 6This will provide to run the tests using the gnome-desktop-testing [1]
7 7
@@ -10,19 +10,20 @@ This will provide to run the tests using the gnome-desktop-testing [1]
10Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/789] 10Upstream-Status: Submitted [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/789]
11 11
12Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> 12Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
13
13--- 14---
14 subprojects/gstreamer/meson.build | 4 ++++ 15 meson.build | 4 ++++
15 subprojects/gstreamer/meson_options.txt | 1 + 16 meson_options.txt | 1 +
16 subprojects/gstreamer/tests/check/meson.build | 22 ++++++++++++++++++- 17 tests/check/meson.build | 22 +++++++++++++++++++++-
17 .../gstreamer/tests/check/template.test.in | 3 +++ 18 tests/check/template.test.in | 3 +++
18 4 files changed, 29 insertions(+), 1 deletion(-) 19 4 files changed, 29 insertions(+), 1 deletion(-)
19 create mode 100644 subprojects/gstreamer/tests/check/template.test.in 20 create mode 100644 tests/check/template.test.in
20 21
21diff --git a/subprojects/gstreamer/meson.build b/subprojects/gstreamer/meson.build 22diff --git a/meson.build b/meson.build
22index d20fe0040f..b595d8f990 100644 23index f9f591d..3906fb3 100644
23--- a/subprojects/gstreamer/meson.build 24--- a/meson.build
24+++ b/subprojects/gstreamer/meson.build 25+++ b/meson.build
25@@ -562,6 +562,10 @@ if bashcomp_dep.found() 26@@ -606,6 +606,10 @@ if bashcomp_dep.found()
26 endif 27 endif
27 endif 28 endif
28 29
@@ -33,10 +34,10 @@ index d20fe0040f..b595d8f990 100644
33 plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0') 34 plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
34 35
35 pkgconfig = import('pkgconfig') 36 pkgconfig = import('pkgconfig')
36diff --git a/subprojects/gstreamer/meson_options.txt b/subprojects/gstreamer/meson_options.txt 37diff --git a/meson_options.txt b/meson_options.txt
37index 7363bdb7a1..a34ba37dad 100644 38index 7363bdb..a34ba37 100644
38--- a/subprojects/gstreamer/meson_options.txt 39--- a/meson_options.txt
39+++ b/subprojects/gstreamer/meson_options.txt 40+++ b/meson_options.txt
40@@ -15,6 +15,7 @@ option('poisoning', type : 'boolean', value : false, description : 'Enable poiso 41@@ -15,6 +15,7 @@ option('poisoning', type : 'boolean', value : false, description : 'Enable poiso
41 option('memory-alignment', type: 'combo', 42 option('memory-alignment', type: 'combo',
42 choices : ['1', '2', '4', '8', '16', '32', '64', '128', '256', '512', '1024', '2048', '4096', '8192', 'malloc', 'pagesize'], 43 choices : ['1', '2', '4', '8', '16', '32', '64', '128', '256', '512', '1024', '2048', '4096', '8192', 'malloc', 'pagesize'],
@@ -45,10 +46,10 @@ index 7363bdb7a1..a34ba37dad 100644
45 46
46 # Feature options 47 # Feature options
47 option('check', type : 'feature', value : 'auto', description : 'Build unit test libraries') 48 option('check', type : 'feature', value : 'auto', description : 'Build unit test libraries')
48diff --git a/subprojects/gstreamer/tests/check/meson.build b/subprojects/gstreamer/tests/check/meson.build 49diff --git a/tests/check/meson.build b/tests/check/meson.build
49index 506606684d..00a138a568 100644 50index 16caac7..f2d400f 100644
50--- a/subprojects/gstreamer/tests/check/meson.build 51--- a/tests/check/meson.build
51+++ b/subprojects/gstreamer/tests/check/meson.build 52+++ b/tests/check/meson.build
52@@ -124,10 +124,16 @@ test_defines = [ 53@@ -124,10 +124,16 @@ test_defines = [
53 '-UG_DISABLE_ASSERT', 54 '-UG_DISABLE_ASSERT',
54 '-UG_DISABLE_CAST_CHECKS', 55 '-UG_DISABLE_CAST_CHECKS',
@@ -67,16 +68,16 @@ index 506606684d..00a138a568 100644
67 # sanity checking 68 # sanity checking
68 if get_option('check').disabled() 69 if get_option('check').disabled()
69 if get_option('tests').enabled() 70 if get_option('tests').enabled()
70@@ -151,6 +157,8 @@ foreach t : core_tests 71@@ -150,6 +156,8 @@ foreach t : core_tests
71 include_directories : [configinc], 72 include_directories : [configinc],
72 link_with : link_with_libs, 73 link_with : link_with_libs,
73 dependencies : test_deps + glib_deps + gst_deps, 74 dependencies : gst_deps + test_deps,
74+ install_dir: installed_tests_execdir, 75+ install_dir: installed_tests_execdir,
75+ install: installed_tests_enabled, 76+ install: installed_tests_enabled,
76 ) 77 )
77 78
78 env = environment() 79 env = environment()
79@@ -162,6 +170,18 @@ foreach t : core_tests 80@@ -161,6 +169,18 @@ foreach t : core_tests
80 env.set('GST_PLUGIN_SCANNER_1_0', gst_scanner_dir + '/gst-plugin-scanner') 81 env.set('GST_PLUGIN_SCANNER_1_0', gst_scanner_dir + '/gst-plugin-scanner')
81 env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer') 82 env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer')
82 83
@@ -95,15 +96,12 @@ index 506606684d..00a138a568 100644
95 test(test_name, exe, env: env, timeout : 3 * 60) 96 test(test_name, exe, env: env, timeout : 3 * 60)
96 endif 97 endif
97 endforeach 98 endforeach
98diff --git a/subprojects/gstreamer/tests/check/template.test.in b/subprojects/gstreamer/tests/check/template.test.in 99diff --git a/tests/check/template.test.in b/tests/check/template.test.in
99new file mode 100644 100new file mode 100644
100index 0000000000..f701627f87 101index 0000000..f701627
101--- /dev/null 102--- /dev/null
102+++ b/subprojects/gstreamer/tests/check/template.test.in 103+++ b/tests/check/template.test.in
103@@ -0,0 +1,3 @@ 104@@ -0,0 +1,3 @@
104+[Test] 105+[Test]
105+Type=session 106+Type=session
106+Exec=@installed_tests_dir@/@program@ 107+Exec=@installed_tests_dir@/@program@
107--
1082.33.1
109