On Wed, Jan 6, 2016 at 1:30 PM, Emil Velikov
wrote:
> On 5 January 2016 at 19:46, wrote:
> > From: Dylan Baker
> >
> > Pull these out into helper functions, this change will be used in a
> > following patch to add a
On Wed, Jan 6, 2016 at 4:12 PM, Frank Henigman
wrote:
> On Wed, Jan 6, 2016 at 6:43 PM, Dylan Baker
> wrote:
> > Okay, I have some comments:
> >
> > When I run wflinfo -p gbm -a gl -f json | jsontidy (a small python
> script I
> > have that
Hi Frank,
It looks like your series is going to achieve the same result (for my use)
as mine did, but yours is probably better. With that in mind I'll be
withdrawing mine in favour of yours.
Dylan
On Wed, Jan 6, 2016 at 11:56 AM, Frank Henigman
wrote:
> This patch set
Okay, I have some comments:
When I run wflinfo -p gbm -a gl -f json | jsontidy (a small python script I
have that formats JSON to be human readable)
I get this:
{
"generic": {
"waffle": {
"api": "WAFFLE_CONTEXT_OPENGL",
"platform": "WAFFLE_PLATFORM_GBM"
Implement the platform hook of waffle_display_info_json() so it can
pick up x11_egl-specific information. So far only egl information is
provided, nothing specific to x11.
Signed-off-by: Frank Henigman
---
src/waffle/xegl/xegl_platform.c | 1 +
1 file changed, 1
Implement the platform hook of waffle_display_info_json() so it can
pick up gbm-specific information. So far only egl information is
provided, nothing specific to gbm.
Signed-off-by: Frank Henigman
---
src/waffle/gbm/wgbm_platform.c | 1 +
1 file changed, 1 insertion(+)
Facilitates api-specific code in core functions, like the forthcoming
wflinfo-like function.
Signed-off-by: Frank Henigman
---
src/waffle/core/wcore_context.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/waffle/core/wcore_context.h
Duplicate wflinfo functionality in the API, with the difference that the
information is returned in JSON form.
The function has a parameter for including platform-specific information,
but it is ignored for now.
Signed-off-by: Frank Henigman
---
include/waffle/waffle.h
For core functions that need to know the current context, like the
forthcoming wflinfo-like function.
Signed-off-by: Frank Henigman
---
src/waffle/api/waffle_gl_misc.c | 11 +++
src/waffle/core/wcore_display.c | 1 +
src/waffle/core/wcore_display.h | 2 ++
3
From: Emil Velikov
This will allow us to selectively run the tests we want, and even run
the sets in parallel.
Fixes #33: https://github.com/waffle-gl/waffle/issues/33
Signed-off-by: Emil Velikov
---
tests/functional/CMakeLists.txt |
... and use it to minimise the duplication across the file.
Signed-off-by: Emil Velikov
---
tests/functional/gl_basic_test.c | 168 ---
1 file changed, 52 insertions(+), 116 deletions(-)
diff --git a/tests/functional/gl_basic_test.c
Signed-off-by: Emil Velikov
---
tests/functional/gl_basic_test.c | 141 ---
1 file changed, 56 insertions(+), 85 deletions(-)
diff --git a/tests/functional/gl_basic_test.c b/tests/functional/gl_basic_test.c
index 55d078d..03c4a0b
Signed-off-by: Emil Velikov
---
tests/functional/gl_basic_test.c | 27 ---
1 file changed, 16 insertions(+), 11 deletions(-)
diff --git a/tests/functional/gl_basic_test.c b/tests/functional/gl_basic_test.c
index c95ae39..55d078d 100644
---
Signed-off-by: Emil Velikov
---
tests/functional/gl_basic_test.c | 192 +++
1 file changed, 73 insertions(+), 119 deletions(-)
diff --git a/tests/functional/gl_basic_test.c b/tests/functional/gl_basic_test.c
index 03c4a0b..a14ce32
Signed-off-by: Emil Velikov
---
tests/functional/gl_basic_test.c | 93
1 file changed, 36 insertions(+), 57 deletions(-)
diff --git a/tests/functional/gl_basic_test.c b/tests/functional/gl_basic_test.c
index f753276..10b9c71
Hi all,
Recently I had the chance to finish a lenghty series started some months
ago. Namely - rework gl_basic_tests and kick waffle_test out the door.
It starts with a couple of symbol fixes (maint material afaict), caught
while experimenting with Travis-CI.
Patch 3 adds a trivial --platform
From: Emil Velikov
With this patch in place, all the existing tests are fully converted to
cmocka.
With this in place, one can get a 'clean bill of health' according to
valgrind. The odd remaining memory leak(s) are likely due to the driver.
Fixes #35:
From: Emil Velikov
Signed-off-by: Emil Velikov
---
tests/functional/gl_basic_test.c | 66
1 file changed, 6 insertions(+), 60 deletions(-)
diff --git a/tests/functional/gl_basic_test.c
From: Emil Velikov
There is no need to (potentially) call the function twice in a roll, as
there are no waffle calls inbetween that can trigger a change.
Use a switch (as opposed to if-else 'spaghetti'), which has the
benefit of slightly improved readability.
While
From: Emil Velikov
Signed-off-by: Emil Velikov
---
tests/functional/gl_basic_test.c | 67 +++-
1 file changed, 5 insertions(+), 62 deletions(-)
diff --git a/tests/functional/gl_basic_test.c
Signed-off-by: Emil Velikov
---
src/waffle/core/wcore_config_attrs_unittest.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/waffle/core/wcore_config_attrs_unittest.c
b/src/waffle/core/wcore_config_attrs_unittest.c
index e6a2af0..14eec01
No longer used/needed.
Signed-off-by: Emil Velikov
---
.gitignore | 1 -
include/waffle_test/priv/wt_runner.h | 46
include/waffle_test/priv/wt_test.h | 52 -
include/waffle_test/waffle_test.h| 76 -
Signed-off-by: Emil Velikov
---
tests/functional/gl_basic_test.c | 34 --
1 file changed, 16 insertions(+), 18 deletions(-)
diff --git a/tests/functional/gl_basic_test.c b/tests/functional/gl_basic_test.c
index 5e6b518..d151d44 100644
XXX: should we squash this with the previous commit ?
Signed-off-by: Emil Velikov
---
cmake/Modules/WaffleCMocka.cmake | 15 ++-
cmake/Modules/WaffleDefineCompilerFlags.cmake | 2 +-
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git
Use cmocka macros and rework gl_basic_{init,fini}, by keeping
track of the state and tearing things down as needed.
Nuke the (no longer to be used) run_testsuite().
Signed-off-by: Emil Velikov
---
tests/functional/CMakeLists.txt | 2 +-
... and use it to minimise the duplication across the file.
Add the equivalent CGL test while we're here :)
Signed-off-by: Emil Velikov
---
tests/functional/gl_basic_test.c | 31 ++-
1 file changed, 18 insertions(+), 13 deletions(-)
diff
Signed-off-by: Emil Velikov
---
third_party/cmocka/src/cmocka.c | 4
1 file changed, 4 insertions(+)
diff --git a/third_party/cmocka/src/cmocka.c b/third_party/cmocka/src/cmocka.c
index fc83b57..2a63f82 100644
--- a/third_party/cmocka/src/cmocka.c
+++
Signed-off-by: Emil Velikov
---
src/waffle/core/wcore_attrib_list_unittest.c | 40 +--
src/waffle/core/wcore_config_attrs_unittest.c | 18
src/waffle/core/wcore_error_unittest.c| 26 -
3 files changed, 45
On 5 January 2016 at 19:46, wrote:
> From: Dylan Baker
>
> This is groundwork for adding a json interface to wflinfo.
>
> v2: - remove extra return statement (Frank)
> - rename flags to context_flags (Chad)
> ---
> src/utils/wflinfo.c | 33
29 matches
Mail list logo