Re: [Intel-gfx] [PATCH 2/7] lib/drmtest: Add drmtest_subtest_block macro

2013-08-12 Thread Daniel Vetter
On Mon, Aug 12, 2013 at 12:20:24PM +0200, Daniel Vetter wrote: > On Mon, Aug 12, 2013 at 11:26:49AM +0200, Daniel Vetter wrote: > > On Mon, Aug 12, 2013 at 10:15:06AM +0100, Chris Wilson wrote: > > > On Mon, Aug 12, 2013 at 11:09:56AM +0200, Daniel Vetter wrote: > > > > Doesn't do more than an if (

Re: [Intel-gfx] [PATCH 2/7] lib/drmtest: Add drmtest_subtest_block macro

2013-08-12 Thread Daniel Vetter
On Mon, Aug 12, 2013 at 11:26:49AM +0200, Daniel Vetter wrote: > On Mon, Aug 12, 2013 at 10:15:06AM +0100, Chris Wilson wrote: > > On Mon, Aug 12, 2013 at 11:09:56AM +0200, Daniel Vetter wrote: > > > Doesn't do more than an if (drmtest_run_test(name)) right now, but > > > as soon as we get a bit of

Re: [Intel-gfx] [PATCH 2/7] lib/drmtest: Add drmtest_subtest_block macro

2013-08-12 Thread Daniel Vetter
On Mon, Aug 12, 2013 at 10:15:06AM +0100, Chris Wilson wrote: > On Mon, Aug 12, 2013 at 11:09:56AM +0200, Daniel Vetter wrote: > > Doesn't do more than an if (drmtest_run_test(name)) right now, but > > as soon as we get a bit of infrastructure to handle test failures and > > skipping, this will get

Re: [Intel-gfx] [PATCH 2/7] lib/drmtest: Add drmtest_subtest_block macro

2013-08-12 Thread Chris Wilson
On Mon, Aug 12, 2013 at 11:09:56AM +0200, Daniel Vetter wrote: > Doesn't do more than an if (drmtest_run_test(name)) right now, but > as soon as we get a bit of infrastructure to handle test failures and > skipping, this will get more interesting. Just use drm_subtest("name") { } drm_subtest_bloc

[Intel-gfx] [PATCH 2/7] lib/drmtest: Add drmtest_subtest_block macro

2013-08-12 Thread Daniel Vetter
Doesn't do more than an if (drmtest_run_test(name)) right now, but as soon as we get a bit of infrastructure to handle test failures and skipping, this will get more interesting. Signed-off-by: Daniel Vetter --- lib/drmtest.h | 1 + tests/gem_basic.c