• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright © 2017 Intel Corporation
2# SPDX-License-Identifier: MIT
3
4general_ir_test_files = files(
5  'builtin_variable_test.cpp',
6  'general_ir_test.cpp',
7)
8general_ir_test_files += ir_expression_operation_h
9
10if with_gles2
11  general_ir_test_files += files('test_gl_lower_mediump.cpp')
12endif
13
14test(
15  'general_ir_test',
16  executable(
17    'general_ir_test',
18    general_ir_test_files,
19    cpp_args : [cpp_msvc_compat_args],
20    gnu_symbol_visibility : 'hidden',
21    include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glsl],
22    link_with : [libglsl, libglsl_standalone, libglsl_util],
23    dependencies : [dep_clock, dep_thread, idep_gtest, idep_mesautil, idep_nir],
24  ),
25  suite : ['compiler', 'glsl'],
26  protocol : 'gtest',
27)
28
29test(
30  'sampler_types_test',
31  executable(
32    'sampler_types_test',
33    ['sampler_types_test.cpp', ir_expression_operation_h],
34    cpp_args : [cpp_msvc_compat_args],
35    gnu_symbol_visibility : 'hidden',
36    include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glsl],
37    link_with : [libglsl, libglsl_util],
38    dependencies : [dep_thread, idep_gtest, idep_mesautil, idep_compiler],
39  ),
40  suite : ['compiler', 'glsl'],
41  protocol : 'gtest',
42)
43
44test(
45  'list_iterators',
46  executable(
47    'list_iterators',
48    ['list_iterators.cpp'],
49    cpp_args : [cpp_msvc_compat_args],
50    gnu_symbol_visibility : 'hidden',
51    include_directories : [inc_include, inc_src, inc_glsl],
52    link_with : [libglsl, libglsl_util],
53    dependencies : [dep_thread, idep_gtest],
54  ),
55  suite : ['compiler', 'glsl'],
56  protocol : 'gtest',
57)
58
59# Meson can't auto-skip these on cross builds because of the python wrapper
60if meson.can_run_host_binaries()
61  test(
62    'glsl compiler warnings',
63    prog_python,
64    args : [
65      files('warnings_test.py'),
66      '--glsl-compiler', glsl_compiler,
67      '--test-directory', join_paths(
68        dir_source_root, 'src', 'compiler', 'glsl', 'tests', 'warnings'
69      ),
70    ],
71    suite : ['compiler', 'glsl'],
72    timeout: 60,
73  )
74endif
75
76if with_tools.contains('glsl')
77  if with_gles2
78    test(
79      'glsl lower-precision test',
80      prog_python,
81      args : [files('lower_precision_test.py'),
82              glsl_compiler
83            ],
84      suite : ['compiler', 'glsl'],
85      timeout: 60,
86    )
87  endif
88endif
89