RSS/Atom feed Twitter
Site is read-only, email is disabled

Testing

This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Testing Henrik Akesson 13 Mar 15:38
  Testing Øyvind Kolås 13 Mar 16:12
   Testing Martin Nordholts 13 Mar 17:38
    Testing Martin Nordholts 21 Mar 12:30
Henrik Akesson
2009-03-13 15:38:20 UTC (almost 16 years ago)

Testing

I'd like to set up some regression tests before doing any changes to the code.

You agree on using the glib test framework?

I'll do it by applying some operations on an input image file and comparing the resulting output image file with a reference. However, I suppose that this is not platform independent. There would be slight differences in the precision of the calculations, resulting in slightly different pixel values and files that are not at all comparable.

Any ideas/suggestions?

Henrik

Øyvind Kolås
2009-03-13 16:12:43 UTC (almost 16 years ago)

Testing

On Fri, Mar 13, 2009 at 2:38 PM, Henrik Akesson wrote:

I'd like to set up some regression tests before doing any changes to the code.

You agree on using the glib test framework?

I'll do it by applying some operations on an input image file and comparing the resulting output image file with a reference. However, I suppose that this is not platform independent. There would be slight differences in the precision of the calculations, resulting in slightly different pixel values and files that are not at all comparable.

Any ideas/suggestions?

The gallery in docs/ could be extended to also store reference images. I've been using this setup to look for rendering and performance regressions (it used to even be built and have a browsable multi-architecture continous build and testing at Open Source Development Labs but that effort was shut down with some of OSDLs cut-backs in Engineering operations).

There is a set of regression tests for GeglBuffer in tests/buffer which outputs grayscale images as unicode and uses unified diffs to detects differences, I think Martin Nordholts has mentioned that he wants to port these tests to use glib test framework.

/Øyvind K.

Martin Nordholts
2009-03-13 17:38:49 UTC (almost 16 years ago)

Testing

Øyvind Kolås wrote:

On Fri, Mar 13, 2009 at 2:38 PM, Henrik Akesson wrote:

I'd like to set up some regression tests before doing any changes to the code.

Any ideas/suggestions?

There is a set of regression tests for GeglBuffer in tests/buffer which outputs grayscale images as unicode and uses unified diffs to detects differences, I think Martin Nordholts has mentioned that he wants to port these tests to use glib test framework.

I am also in the process of writing regression tests and refactoring code. I use the simple TESTS feature in automake, check out the tests sub directory that has one test already.

Regarding porting the GeglBuffer tests to something I'm not sure I will do that in the near future. As long as they can be run I'm satisfied.

- Martin

Martin Nordholts
2009-03-21 12:30:39 UTC (almost 16 years ago)

Testing

Martin Nordholts wrote:

Øyvind Kolås wrote:

There is a set of regression tests for GeglBuffer in tests/buffer which outputs grayscale images as unicode and uses unified diffs to detects differences, I think Martin Nordholts has mentioned that he wants to port these tests to use glib test framework.

Regarding porting the GeglBuffer tests to something I'm not sure I will do that in the near future. As long as they can be run I'm satisfied.

- Martin

I just ported the buffer tests to automake

- Martin

2009-03-21 Martin Nordholts

Port buffer tests to automake which has a couple of benefits. First of all they are run and results reported during a normal make check, and second of all the tests are run against the build and not against a possibly non-existant installation based on hardcoded prefixes.

* configure.ac * tests/Makefile.am
* tests/buffer/Makefile.am
* tests/buffer/buffer-tests-results.sh