Commit 044c1d0b authored by Debarshi Ray's avatar Debarshi Ray

tests: Test the Pipeline

!80
parent 7ea81c25
Pipeline #40892 passed with stage
in 12 minutes and 50 seconds
......@@ -5,9 +5,29 @@ TESTS_ENVIRONMENT += \
$(NULL)
dist_test_data = \
photos-test-pipeline-edited-00.xml \
photos-test-pipeline-not-edited-00.xml \
$(NULL)
test_programs = \
photos-test-pipeline \
$(NULL)
photos_test_pipeline_CPPFLAGS = \
$(GDK_PIXBUF_CFLAGS) \
$(GEGL_CFLAGS) \
$(GIO_CFLAGS) \
$(GLIB_CFLAGS) \
-I$(top_builddir)/src \
-I$(top_srcdir)/src \
$(NULL)
photos_test_pipeline_LDADD = \
$(GDK_PIXBUF_LIBS) \
$(GEGL_LIBS) \
$(GIO_LIBS) \
$(GLIB_LIBS) \
$(top_builddir)/src/libgnome-photos.la \
$(NULL)
AM_CFLAGS = \
......
......@@ -12,9 +12,14 @@ test_env.set('MALLOC_CHECK_', '2')
test_env.set('MALLOC_PERTURB_', '@0@'.format(random_number % 256))
tests = {
'photos-test-pipeline': {
'dependencies': [gdk_pixbuf_dep, gegl_dep, gio_dep, gio_unix_dep, glib_dep, libgnome_photos_dep]
},
}
test_data = [
'photos-test-pipeline-edited-00.xml',
'photos-test-pipeline-not-edited-00.xml',
]
foreach test_name, extra_args: tests
......
<?xml version='1.0' encoding='UTF-8'?>
<gegl>
<node operation='gegl:brightness-contrast'>
<params>
<param name='contrast'>2</param>
<param name='brightness'>0</param>
</params>
</node>
<node operation='gegl:exposure'>
<params>
<param name='black-level'>0.1</param>
<param name='exposure'>3</param>
</params>
</node>
<node operation='gegl:unsharp-mask'>
<params>
<param name='std-dev'>3</param>
<param name='scale'>10</param>
<param name='threshold'>0</param>
</params>
</node>
<node operation='photos:magic-filter'>
<params>
<param name='preset'>1947</param>
</params>
</node>
<node operation='photos:saturation'>
<params>
<param name='scale'>2</param>
</params>
</node>
<node operation='gegl:shadows-highlights'>
<params>
<param name='shadows'>100</param>
<param name='highlights'>-100</param>
<param name='whitepoint'>0</param>
<param name='radius'>100</param>
<param name='compress'>50</param>
<param name='shadows-ccorrect'>100</param>
<param name='highlights-ccorrect'>50</param>
</params>
</node>
<node operation='gegl:noise-reduction'>
<params>
<param name='iterations'>16</param>
</params>
</node>
<node operation='gegl:crop'>
<params>
<param name='x'>120.52800000000001</param>
<param name='y'>185.77600000000004</param>
<param name='width'>199.584</param>
<param name='height'>308.44799999999998</param>
<param name='reset-origin'>false</param>
</params>
</node>
</gegl>
<?xml version='1.0' encoding='UTF-8'?>
<gegl>
</gegl>
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment