1338bf337Smrg# Copyright © 2018 Intel Corporation 2338bf337Smrg 3338bf337Smrg# Permission is hereby granted, free of charge, to any person obtaining a copy 4338bf337Smrg# of this software and associated documentation files (the "Software"), to deal 5338bf337Smrg# in the Software without restriction, including without limitation the rights 6338bf337Smrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7338bf337Smrg# copies of the Software, and to permit persons to whom the Software is 8338bf337Smrg# furnished to do so, subject to the following conditions: 9338bf337Smrg 10338bf337Smrg# The above copyright notice and this permission notice shall be included in 11338bf337Smrg# all copies or substantial portions of the Software. 12338bf337Smrg 13338bf337Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14338bf337Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15338bf337Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16338bf337Smrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17338bf337Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18338bf337Smrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19338bf337Smrg# SOFTWARE. 20338bf337Smrg 21338bf337Smrgtests = [ 22338bf337Smrg 'oob-test', 23338bf337Smrg 'infinite-loop', 24338bf337Smrg 'trap-crasher', 25338bf337Smrg 'fence-image-self-test', 26338bf337Smrg 'region-translate-test', 27338bf337Smrg 'fetch-test', 28338bf337Smrg 'a1-trap-test', 29338bf337Smrg 'prng-test', 30338bf337Smrg 'radial-invalid', 31338bf337Smrg 'pdf-op-test', 32338bf337Smrg 'region-test', 3314b11b2bSmrg 'region-fractional-test', 34338bf337Smrg 'combiner-test', 35338bf337Smrg 'scaling-crash-test', 36338bf337Smrg 'alpha-loop', 37338bf337Smrg 'scaling-helpers-test', 38338bf337Smrg 'rotate-test', 39338bf337Smrg 'alphamap', 40338bf337Smrg 'gradient-crash-test', 41338bf337Smrg 'pixel-test', 42338bf337Smrg 'matrix-test', 43338bf337Smrg 'filter-reduction-test', 44338bf337Smrg 'composite-traps-test', 45338bf337Smrg 'region-contains-test', 46338bf337Smrg 'glyph-test', 47338bf337Smrg 'solid-test', 48338bf337Smrg 'stress-test', 49338bf337Smrg 'cover-test', 50338bf337Smrg 'blitters-test', 51338bf337Smrg 'affine-test', 52338bf337Smrg 'scaling-test', 53338bf337Smrg 'composite', 54338bf337Smrg 'tolerance-test', 5514b11b2bSmrg 'neg-stride-test', 56338bf337Smrg] 57338bf337Smrg 5814b11b2bSmrg# Remove/update this once thread-test.c supports threading methods 5914b11b2bSmrg# other than PThreads and Windows threads 6014b11b2bSmrgif pthreads_found or host_machine.system() == 'windows' 6114b11b2bSmrg tests += 'thread-test' 6214b11b2bSmrgendif 6314b11b2bSmrg 64338bf337Smrgprogs = [ 65338bf337Smrg 'lowlevel-blt-bench', 66338bf337Smrg 'radial-perf-test', 67338bf337Smrg 'check-formats', 68338bf337Smrg 'scaling-bench', 69338bf337Smrg 'affine-bench', 70338bf337Smrg] 71338bf337Smrg 72338bf337Smrgforeach t : tests 73338bf337Smrg test( 74338bf337Smrg t, 75338bf337Smrg executable( 76338bf337Smrg t, 77338bf337Smrg [t + '.c', config_h], 7814b11b2bSmrg dependencies : [idep_pixman, libtestutils_dep, dep_threads, dep_openmp, dep_png], 79338bf337Smrg ), 80338bf337Smrg timeout : 120, 81338bf337Smrg is_parallel : true, 82338bf337Smrg ) 83338bf337Smrgendforeach 84338bf337Smrg 85338bf337Smrgforeach p : progs 86338bf337Smrg executable( 87338bf337Smrg p, 88338bf337Smrg p + '.c', 8914b11b2bSmrg dependencies : [idep_pixman, libtestutils_dep, dep_openmp], 90338bf337Smrg ) 91338bf337Smrgendforeach 9214b11b2bSmrg 93