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 'combiner-test', 34 'scaling-crash-test', 35 'alpha-loop', 36 'scaling-helpers-test', 37 'rotate-test', 38 'alphamap', 39 'gradient-crash-test', 40 'pixel-test', 41 'matrix-test', 42 'filter-reduction-test', 43 'composite-traps-test', 44 'region-contains-test', 45 'glyph-test', 46 'solid-test', 47 'stress-test', 48 'cover-test', 49 'blitters-test', 50 'affine-test', 51 'scaling-test', 52 'composite', 53 'tolerance-test', 54] 55 56# Remove/update this once thread-test.c supports threading methods 57# other than PThreads and Windows threads 58if pthreads_found or host_machine.system() == 'windows' 59 tests += 'thread-test' 60endif 61 62progs = [ 63 'lowlevel-blt-bench', 64 'radial-perf-test', 65 'check-formats', 66 'scaling-bench', 67 'affine-bench', 68] 69 70libtestutils = static_library( 71 'testutils', 72 ['utils.c', 'utils-prng.c', config_h], 73 dependencies : [dep_openmp, dep_m, dep_png, idep_pixman], 74) 75 76foreach t : tests 77 test( 78 t, 79 executable( 80 t, 81 [t + '.c', config_h], 82 link_with : libtestutils, 83 dependencies : [dep_threads, dep_openmp, idep_pixman], 84 ), 85 timeout : 120, 86 is_parallel : true, 87 ) 88endforeach 89 90foreach p : progs 91 executable( 92 p, 93 p + '.c', 94 link_with : libtestutils, 95 dependencies : [dep_openmp, idep_pixman], 96 ) 97endforeach 98