Re: [Intel-gfx] [PATCH i-g-t 2/3] tests/drv_module_reload_basic: Convert sh script to C version.

2016-10-24 Thread Chris Wilson
On Mon, Oct 24, 2016 at 09:05:28PM +0300, Marius Vlad wrote: > On Thu, Oct 20, 2016 at 08:52:23PM +0100, Chris Wilson wrote: > > On Thu, Oct 20, 2016 at 10:36:48PM +0300, Marius Vlad wrote: > > > +static const char *tests[] = { > > > + "gem_alive", "gem_exec_store" > > > +}; > > > > gem_alive is j

Re: [Intel-gfx] [PATCH i-g-t 2/3] tests/drv_module_reload_basic: Convert sh script to C version.

2016-10-24 Thread Marius Vlad
On Fri, Oct 21, 2016 at 12:39:22PM +0300, Petri Latvala wrote: > > > On 10/20/2016 10:36 PM, Marius Vlad wrote: > > Signed-off-by: Marius Vlad > > --- > > tests/Makefile.sources | 2 +- > > tests/drv_module_reload_basic | 97 --- > > tests/drv_module_reload_

Re: [Intel-gfx] [PATCH i-g-t 2/3] tests/drv_module_reload_basic: Convert sh script to C version.

2016-10-24 Thread Marius Vlad
On Thu, Oct 20, 2016 at 08:52:23PM +0100, Chris Wilson wrote: > On Thu, Oct 20, 2016 at 10:36:48PM +0300, Marius Vlad wrote: > > +static const char *tests[] = { > > + "gem_alive", "gem_exec_store" > > +}; > > gem_alive is just a single ioctl query, simpler and move obvious to do > it inline. The

Re: [Intel-gfx] [PATCH i-g-t 2/3] tests/drv_module_reload_basic: Convert sh script to C version.

2016-10-21 Thread Petri Latvala
On 10/20/2016 10:36 PM, Marius Vlad wrote: Signed-off-by: Marius Vlad --- tests/Makefile.sources | 2 +- tests/drv_module_reload_basic | 97 --- tests/drv_module_reload_basic.c | 166 3 files changed, 167 insertion

Re: [Intel-gfx] [PATCH i-g-t 2/3] tests/drv_module_reload_basic: Convert sh script to C version.

2016-10-20 Thread Chris Wilson
On Thu, Oct 20, 2016 at 10:36:48PM +0300, Marius Vlad wrote: > +static const char *tests[] = { > + "gem_alive", "gem_exec_store" > +}; gem_alive is just a single ioctl query, simpler and move obvious to do it inline. Then remove tests/gem_alive.c, but it may live on as tools/gem_alive.c (or be

[Intel-gfx] [PATCH i-g-t 2/3] tests/drv_module_reload_basic: Convert sh script to C version.

2016-10-20 Thread Marius Vlad
Signed-off-by: Marius Vlad --- tests/Makefile.sources | 2 +- tests/drv_module_reload_basic | 97 --- tests/drv_module_reload_basic.c | 166 3 files changed, 167 insertions(+), 98 deletions(-) delete mode 100755 tests/drv