summaryrefslogtreecommitdiff
path: root/tests/compositions/Makefile.am
blob: 57bada554500769ee3b288e2feb6c430610cc91a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74

# The setup is as follows:
#  * Each test comes with one <name>.xml GEGL XML and one reference
#    output file in 'reference' called <name>.<ext>, where <ext> is a
#    supported output file type.
#  * The test is run by processing the GEGL XML into an output file in
#    'output', named <name>.<ext>, and then compared with the file in
#    'reference'. If these files are equal, the test is a 'pass'.


SUBDIRS=data

EXTRA_DIST=$(wildcard $(srcdir)/*.xml) $(wildcard $(srcdir)/reference/*) run-compositions.py

# List of tests. The .sh suffix allows us to use $(wildcard $(srcdir)/*.xml) in
# EXTRA_DISTS
TESTS = \
  affine-with-negative.xml        \
  alien-map.xml                   \
  checkerboard.xml                \
  clones.xml                      \
  colors.xml                      \
  color-to-alpha.xml              \
  composite-transform.xml         \
  contrast-curve.xml              \
  edge-laplace.xml                \
  edge-sobel.xml                  \
  fattal02.xml                    \
  gamma.xml                       \
  hdr-color.xml                   \
  image-compare.xml               \
  mantiuk06.xml                   \
  pixelize.xml                    \
  posterize.xml                   \
  red-eye-removal.xml             \
  reflect.xml                     \
  reflect2.xml                    \
  reinhard05.xml                  \
  rgb-params.xml                  \
  rotate.xml                      \
  simple-scale.xml                \
  softglow.xml                    \
  stretch-contrast.xml            \
  transform.xml                   \
  weighted-blend.xml              \
  rectangles.xml

  #run-matting-global.xml.sh
  #run-matting-global-big.xml.sh

NO_OPENCL_TESTS = \
  rgbe-load.xml                 \
  rgbe-save.xml                 \
  pnm-raw-load.xml              \
  pnm-ascii-load.xml

# Conditional tests
if HAVE_JASPER
NO_OPENCL_TESTS += jp2-load.xml
endif
if HAVE_UMFPACK
TESTS += matting-levin.xml
endif

check-TESTS: $(TESTS)
	$(PYTHON) $(srcdir)/run-compositions.py \
	  --build-dir=$(top_builddir) --src-dir=$(top_srcdir) --xml-dir=$(srcdir) \
	  $(TESTS)
	$(PYTHON) $(srcdir)/run-compositions.py --without-opencl \
	  --build-dir=$(top_builddir) --src-dir=$(top_srcdir) --xml-dir=$(srcdir) \
	  $(NO_OPENCL_TESTS)

clean-local:
	rm -f output/*