On 2016-11-22 16:43:50 +0100, Diego Biurrun wrote:
> On Mon, Nov 21, 2016 at 12:31:24AM +0100, Janne Grunau wrote:
> > --- a/configure
> > +++ b/configure
> > @@ -348,9 +348,8 @@ Developer options (useful when working on Libav itself):
> > - --ignore-tests=TESTS whitespace-separated list (without "fate-"
> > prefix
> > - in the name) of tests not to run as part of the
> > - fate target
> > + --ignore-tests=TESTS comma-separated list (without "fate-" prefix
> > + in the name) of tests which result is ignored
>
> whose result
>
> Why comma-separated instead of whitespace-separated?
to be more in line with the other lists configure consumes and I find
whitespace separated lists as configure parameters midly annoying
> > @@ -5217,6 +5216,7 @@ for type in decoder encoder hwaccel parser
> > demuxer muxer protocol filter bsf ind
> >
> > if test -n "$ignore_tests"; then
> > + ignore_tests=$(echo $ignore_tests | tr ',' ' ')
>
> You manually whitespace-separate the list of tests here ..
>
> > --- a/tests/Makefile
> > +++ b/tests/Makefile
> > @@ -143,11 +143,17 @@ endif
> >
> > -fate: $(filter-out $(addprefix fate-,$(IGNORE_TESTS)),$(FATE))
> > +define FATE_IGNORE
> > +fate-$(1): REPORT=ignore
> > +endef
> > +
> > +$(foreach I,$(IGNORE_TESTS),$(eval $(call FATE_IGNORE,$(I))))
>
> $(FATE_IGNORE): REPORT=ignore
$(addprefix fate-...)
but yes I get your idea and still much better than my 'I don't want to
change into make mindset' solution
> > --- a/tests/fate-run.sh
> > +++ b/tests/fate-run.sh
> > @@ -212,13 +213,16 @@ if test -e "$ref" || test $cmp = "oneline" ; then
> > esac
> > cmperr=$?
> > test $err = 0 && err=$cmperr
> > - test $err = 0 || cat $cmpfile
> > + case $report_type in
> > + ignore) test $err = 0 || echo "ignoring fate-${test}" && err=0 ;;
> > + *) test $err = 0 || cat $cmpfile ;;
> > + esac
>
> Do you plan to add more cases here? Otherwise a simple if-check seems
> simpler. Not a big deal of course...
I had initially the idea to add a know broken report type to turn tests
yellow if they run successfully. I'm not sure if that's has advantages
though.
So I can change it to an if-check for now.
Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel