100a23bdaSmrg# Copyright © 2017-2018 Intel Corporation
200a23bdaSmrg
300a23bdaSmrg# Permission is hereby granted, free of charge, to any person obtaining a copy
400a23bdaSmrg# of this software and associated documentation files (the "Software"), to deal
500a23bdaSmrg# in the Software without restriction, including without limitation the rights
600a23bdaSmrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
700a23bdaSmrg# copies of the Software, and to permit persons to whom the Software is
800a23bdaSmrg# furnished to do so, subject to the following conditions:
900a23bdaSmrg
1000a23bdaSmrg# The above copyright notice and this permission notice shall be included in
1100a23bdaSmrg# all copies or substantial portions of the Software.
1200a23bdaSmrg
1300a23bdaSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1400a23bdaSmrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1500a23bdaSmrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1600a23bdaSmrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1700a23bdaSmrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1800a23bdaSmrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1900a23bdaSmrg# SOFTWARE.
2000a23bdaSmrg
2100a23bdaSmrgif dep_cunit.found()
2200a23bdaSmrg  amdgpu_test = executable(
2300a23bdaSmrg    'amdgpu_test',
2400a23bdaSmrg    files(
2500a23bdaSmrg      'amdgpu_test.c', 'basic_tests.c', 'bo_tests.c', 'cs_tests.c',
2600a23bdaSmrg      'vce_tests.c', 'uvd_enc_tests.c', 'vcn_tests.c', 'deadlock_tests.c',
2741687f09Smrg      'vm_tests.c', 'ras_tests.c', 'syncobj_tests.c', 'security_tests.c',
28b0ab5608Smrg      'hotunplug_tests.c', 'jpeg_tests.c', 'cp_dma_tests.c', 'shader_test_util.c'
2900a23bdaSmrg    ),
309bd392adSmrg    dependencies : [dep_cunit, dep_threads, dep_atomic_ops],
3100a23bdaSmrg    include_directories : [inc_root, inc_drm, include_directories('../../amdgpu')],
3200a23bdaSmrg    link_with : [libdrm, libdrm_amdgpu],
3300a23bdaSmrg    install : with_install_tests,
3400a23bdaSmrg  )
3500a23bdaSmrgendif
3649ef06a4Smrg
3749ef06a4Smrgamdgpu_stress = executable(
3849ef06a4Smrg  'amdgpu_stress',
3949ef06a4Smrg  files(
4049ef06a4Smrg    'amdgpu_stress.c'
4149ef06a4Smrg  ),
4249ef06a4Smrg  dependencies : [dep_threads, dep_atomic_ops],
4349ef06a4Smrg  include_directories : [inc_root, inc_drm, include_directories('../../amdgpu')],
4449ef06a4Smrg  link_with : [libdrm, libdrm_amdgpu],
4549ef06a4Smrg  install : with_install_tests,
4649ef06a4Smrg)
47