meson.build revision 338bf337
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', 33338bf337Smrg 'combiner-test', 34338bf337Smrg 'scaling-crash-test', 35338bf337Smrg 'alpha-loop', 36338bf337Smrg 'scaling-helpers-test', 37338bf337Smrg 'thread-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', 55338bf337Smrg] 56338bf337Smrg 57338bf337Smrgprogs = [ 58338bf337Smrg 'lowlevel-blt-bench', 59338bf337Smrg 'radial-perf-test', 60338bf337Smrg 'check-formats', 61338bf337Smrg 'scaling-bench', 62338bf337Smrg 'affine-bench', 63338bf337Smrg] 64338bf337Smrg 65338bf337Smrglibtestutils = static_library( 66338bf337Smrg 'testutils', 67338bf337Smrg ['utils.c', 'utils-prng.c', config_h], 68338bf337Smrg dependencies : [dep_openmp, dep_m, dep_png, idep_pixman], 69338bf337Smrg) 70338bf337Smrg 71338bf337Smrgforeach t : tests 72338bf337Smrg test( 73338bf337Smrg t, 74338bf337Smrg executable( 75338bf337Smrg t, 76338bf337Smrg [t + '.c', config_h], 77338bf337Smrg link_with : libtestutils, 78338bf337Smrg dependencies : [dep_threads, dep_openmp, idep_pixman], 79338bf337Smrg ), 80338bf337Smrg timeout : 120, 81338bf337Smrg is_parallel : true, 82338bf337Smrg ) 83338bf337Smrgendforeach 84338bf337Smrg 85338bf337Smrgforeach p : progs 86338bf337Smrg executable( 87338bf337Smrg p, 88338bf337Smrg p + '.c', 89338bf337Smrg link_with : libtestutils, 90338bf337Smrg dependencies : [dep_openmp, idep_pixman], 91338bf337Smrg ) 92338bf337Smrgendforeach 93