diff options
author | Sagar Ghuge <[email protected]> | 2019-03-22 19:13:54 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2019-05-07 14:33:48 -0700 |
commit | 4e828bb48abf12d43c2b4a373b4b2125c90ea152 (patch) | |
tree | 71d021ec2939a0d9dcdb78a35ff3419ecfb8f78c /src/intel/tools/meson.build | |
parent | 1fb5ce0a11ccb8a0f8d41d0499f8a16b1dfef379 (diff) |
intel/tools: Add unit tests for assembler
v1: Pass executable object from meson to test(Dylan Baker)
v2: Ignore generated output files from git status(Matt Turner)
Signed-off-by: Sagar Ghuge <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/intel/tools/meson.build')
-rw-r--r-- | src/intel/tools/meson.build | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/intel/tools/meson.build b/src/intel/tools/meson.build index 8ed98f891e9..4aa09d99cee 100644 --- a/src/intel/tools/meson.build +++ b/src/intel/tools/meson.build @@ -154,3 +154,21 @@ i965_asm = executable( c_args : [c_vis_args, no_override_init_args], install : true ) + +asm_testcases = [ + ['brw', 'tests/gen4'], + ['g4x', 'tests/gen4.5'], + ['ilk', 'tests/gen5'], + ['snb', 'tests/gen6'], + ['ivb', 'tests/gen7'], + ['hsw', 'tests/gen7.5'], + ['bdw', 'tests/gen8'], + ['skl', 'tests/gen9'], +] + +test_runner = find_program('tests/run-test.sh') +foreach testcase : asm_testcases + test('i965_asm : ' + testcase[1], test_runner, + args : [i965_asm, testcase[1], testcase[0]], + env : ['srcdir=' + meson.current_source_dir()]) +endforeach |