1# Copyright © 2018 Intel Corporation
2
3# Permission is hereby granted, free of charge, to any person obtaining a copy
4# of this software and associated documentation files (the "Software"), to deal
5# in the Software without restriction, including without limitation the rights
6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7# copies of the Software, and to permit persons to whom the Software is
8# furnished to do so, subject to the following conditions:
9
10# The above copyright notice and this permission notice shall be included in
11# all copies or substantial portions of the Software.
12
13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19# SOFTWARE.
20
21tests = [
22  'oob-test',
23  'infinite-loop',
24  'trap-crasher',
25  'fence-image-self-test',
26  'region-translate-test',
27  'fetch-test',
28  'a1-trap-test',
29  'prng-test',
30  'radial-invalid',
31  'pdf-op-test',
32  'region-test',
33  'region-fractional-test',
34  'combiner-test',
35  'scaling-crash-test',
36  'alpha-loop',
37  'scaling-helpers-test',
38  'rotate-test',
39  'alphamap',
40  'gradient-crash-test',
41  'pixel-test',
42  'matrix-test',
43  'filter-reduction-test',
44  'composite-traps-test',
45  'region-contains-test',
46  'glyph-test',
47  'solid-test',
48  'stress-test',
49  'cover-test',
50  'blitters-test',
51  'affine-test',
52  'scaling-test',
53  'composite',
54  'tolerance-test',
55  'neg-stride-test',
56]
57
58# Remove/update this once thread-test.c supports threading methods
59# other than PThreads and Windows threads
60if pthreads_found or host_machine.system() == 'windows'
61  tests += 'thread-test'
62endif
63
64progs = [
65  'lowlevel-blt-bench',
66  'radial-perf-test',
67  'check-formats',
68  'scaling-bench',
69  'affine-bench',
70]
71
72foreach t : tests
73  test(
74    t,
75    executable(
76      t,
77      [t + '.c', config_h],
78      dependencies : [idep_pixman, libtestutils_dep, dep_threads, dep_openmp, dep_png],
79    ),
80    timeout : 120,
81    is_parallel : true,
82  )
83endforeach
84
85foreach p : progs
86  executable(
87    p,
88    p + '.c',
89    dependencies : [idep_pixman, libtestutils_dep, dep_openmp],
90  )
91endforeach
92
93