Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ew2020_weston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Walter Lozano
ew2020_weston
Commits
9615ad8b
Commit
9615ad8b
authored
Nov 11, 2019
by
Pekka Paalanen
Committed by
Daniel Stone
Jan 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: migrate internal-screenshot
Signed-off-by:
Pekka Paalanen
<
pekka.paalanen@collabora.com
>
parent
431ec067
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
tests/internal-screenshot-test.c
tests/internal-screenshot-test.c
+17
-1
tests/meson.build
tests/meson.build
+2
-1
No files found.
tests/internal-screenshot-test.c
View file @
9615ad8b
...
...
@@ -29,8 +29,24 @@
#include <stdio.h>
#include "weston-test-client-helper.h"
#include "weston-test-fixture-compositor.h"
#include "test-config.h"
char
*
server_parameters
=
"--use-pixman --width=320 --height=240"
;
static
enum
test_result_code
fixture_setup
(
struct
weston_test_harness
*
harness
)
{
struct
compositor_setup
setup
;
compositor_setup_defaults
(
&
setup
);
setup
.
renderer
=
RENDERER_PIXMAN
;
setup
.
width
=
320
;
setup
.
height
=
240
;
setup
.
shell
=
SHELL_DESKTOP
;
setup
.
config_file
=
TESTSUITE_INTERNAL_SCREENSHOT_CONFIG_PATH
;
return
weston_test_harness_execute_as_client
(
harness
,
&
setup
);
}
DECLARE_FIXTURE_SETUP
(
fixture_setup
);
static
void
draw_stuff
(
pixman_image_t
*
image
)
...
...
tests/meson.build
View file @
9615ad8b
...
...
@@ -111,6 +111,7 @@ dep_zucmain = declare_dependency(
)
tests = [
{ 'name': 'internal-screenshot', },
{ 'name': 'plugin-registry', },
{ 'name': 'roles', },
{ 'name': 'string', },
...
...
@@ -153,7 +154,6 @@ tests_weston = [
linux_explicit_synchronization_unstable_v1_protocol_c,
]
],
['internal-screenshot'],
[
'presentation',
[
...
...
@@ -257,6 +257,7 @@ test_config_h.set_quoted('WESTON_MODULE_MAP', env_modmap)
test_config_h.set_quoted('WESTON_DATA_DIR', join_paths(meson.current_source_dir(), '..', 'data'))
test_config_h.set_quoted('TESTSUITE_PLUGIN_PATH', exe_plugin_test.full_path())
test_config_h.set_quoted('TESTSUITE_IVI_CONFIG_PATH', join_paths(meson.current_build_dir(), '../ivi-shell/weston-ivi-test.ini'))
test_config_h.set_quoted('TESTSUITE_INTERNAL_SCREENSHOT_CONFIG_PATH', join_paths(meson.current_source_dir(), 'internal-screenshot.ini'))
configure_file(output: 'test-config.h', configuration: test_config_h)
foreach t : tests
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment