[libcamera-devel] test: v4l2_compat: Skip vimc as a test candidate
diff mbox series

Message ID 20210914010413.925842-1-paul.elder@ideasonboard.com
State Accepted
Headers show
Series
  • [libcamera-devel] test: v4l2_compat: Skip vimc as a test candidate
Related show

Commit Message

Paul Elder Sept. 14, 2021, 1:04 a.m. UTC
As the vimc scaler prevents us from passing v4l2-compliance, skip it
until the fix has been merged. Instead of removing it from the
supported_pipelines list, add an extra check, since we will have the
same construct later when we check for the kernel version.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
---
 test/v4l2_compat/v4l2_compat_test.py | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Laurent Pinchart Sept. 14, 2021, 1:31 a.m. UTC | #1
Hi Paul,

Thank you for the patch.

On Tue, Sep 14, 2021 at 10:04:13AM +0900, Paul Elder wrote:
> As the vimc scaler prevents us from passing v4l2-compliance, skip it
> until the fix has been merged. Instead of removing it from the
> supported_pipelines list, add an extra check, since we will have the
> same construct later when we check for the kernel version.
> 
> Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
> ---
>  test/v4l2_compat/v4l2_compat_test.py | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/test/v4l2_compat/v4l2_compat_test.py b/test/v4l2_compat/v4l2_compat_test.py
> index ae892ced..6d304b6c 100755
> --- a/test/v4l2_compat/v4l2_compat_test.py
> +++ b/test/v4l2_compat/v4l2_compat_test.py
> @@ -134,6 +134,10 @@ def main(argv):
>          if driver not in supported_pipelines:
>              continue
>  
> +        # TODO: Add kernel version check
> +        if driver == "vimc":
> +            continue
> +
>          if not args.all and driver in drivers_tested:
>              continue
>
Paul Elder Sept. 14, 2021, 4:33 a.m. UTC | #2
On Tue, Sep 14, 2021 at 04:31:29AM +0300, Laurent Pinchart wrote:
> Hi Paul,
> 
> Thank you for the patch.

...and? :p


Paul

> 
> On Tue, Sep 14, 2021 at 10:04:13AM +0900, Paul Elder wrote:
> > As the vimc scaler prevents us from passing v4l2-compliance, skip it
> > until the fix has been merged. Instead of removing it from the
> > supported_pipelines list, add an extra check, since we will have the
> > same construct later when we check for the kernel version.
> > 
> > Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
> > ---
> >  test/v4l2_compat/v4l2_compat_test.py | 4 ++++
> >  1 file changed, 4 insertions(+)
> > 
> > diff --git a/test/v4l2_compat/v4l2_compat_test.py b/test/v4l2_compat/v4l2_compat_test.py
> > index ae892ced..6d304b6c 100755
> > --- a/test/v4l2_compat/v4l2_compat_test.py
> > +++ b/test/v4l2_compat/v4l2_compat_test.py
> > @@ -134,6 +134,10 @@ def main(argv):
> >          if driver not in supported_pipelines:
> >              continue
> >  
> > +        # TODO: Add kernel version check
> > +        if driver == "vimc":
> > +            continue
> > +
> >          if not args.all and driver in drivers_tested:
> >              continue
> >
Laurent Pinchart Sept. 14, 2021, 4:56 a.m. UTC | #3
On Tue, Sep 14, 2021 at 01:33:50PM +0900, paul.elder@ideasonboard.com wrote:
> On Tue, Sep 14, 2021 at 04:31:29AM +0300, Laurent Pinchart wrote:
> > Hi Paul,
> > 
> > Thank you for the patch.
> 
> ...and? :p

What ? I wanted to thank you, did you expect more ? So greedy... ;-)

OK, if you insist,

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> > On Tue, Sep 14, 2021 at 10:04:13AM +0900, Paul Elder wrote:
> > > As the vimc scaler prevents us from passing v4l2-compliance, skip it
> > > until the fix has been merged. Instead of removing it from the
> > > supported_pipelines list, add an extra check, since we will have the
> > > same construct later when we check for the kernel version.
> > > 
> > > Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
> > > ---
> > >  test/v4l2_compat/v4l2_compat_test.py | 4 ++++
> > >  1 file changed, 4 insertions(+)
> > > 
> > > diff --git a/test/v4l2_compat/v4l2_compat_test.py b/test/v4l2_compat/v4l2_compat_test.py
> > > index ae892ced..6d304b6c 100755
> > > --- a/test/v4l2_compat/v4l2_compat_test.py
> > > +++ b/test/v4l2_compat/v4l2_compat_test.py
> > > @@ -134,6 +134,10 @@ def main(argv):
> > >          if driver not in supported_pipelines:
> > >              continue
> > >  
> > > +        # TODO: Add kernel version check
> > > +        if driver == "vimc":
> > > +            continue
> > > +
> > >          if not args.all and driver in drivers_tested:
> > >              continue
> > >
Kieran Bingham Sept. 21, 2021, 8:15 a.m. UTC | #4
Hi Paul,

On 14/09/2021 02:04, Paul Elder wrote:
> As the vimc scaler prevents us from passing v4l2-compliance, skip it
> until the fix has been merged. Instead of removing it from the
> supported_pipelines list, add an extra check, since we will have the
> same construct later when we check for the kernel version.
> 
> Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
> ---
>  test/v4l2_compat/v4l2_compat_test.py | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/test/v4l2_compat/v4l2_compat_test.py b/test/v4l2_compat/v4l2_compat_test.py
> index ae892ced..6d304b6c 100755
> --- a/test/v4l2_compat/v4l2_compat_test.py
> +++ b/test/v4l2_compat/v4l2_compat_test.py
> @@ -134,6 +134,10 @@ def main(argv):
>          if driver not in supported_pipelines:
>              continue
>  
> +        # TODO: Add kernel version check

Add a kernel version check when ... vimc supports scaling ?

Either way,

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> +        if driver == "vimc":
> +            continue
> +
>          if not args.all and driver in drivers_tested:
>              continue
>  
>

Patch
diff mbox series

diff --git a/test/v4l2_compat/v4l2_compat_test.py b/test/v4l2_compat/v4l2_compat_test.py
index ae892ced..6d304b6c 100755
--- a/test/v4l2_compat/v4l2_compat_test.py
+++ b/test/v4l2_compat/v4l2_compat_test.py
@@ -134,6 +134,10 @@  def main(argv):
         if driver not in supported_pipelines:
             continue
 
+        # TODO: Add kernel version check
+        if driver == "vimc":
+            continue
+
         if not args.all and driver in drivers_tested:
             continue