meson: pass correct env/args to egl tests
authorEric Engestrom <eric.engestrom@imgtec.com>
Mon, 30 Oct 2017 15:42:16 +0000 (15:42 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Tue, 31 Oct 2017 17:59:44 +0000 (17:59 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/meson.build

index cc51671f9d8f24708405e694075b570957162fe5..254e7e7a1778a5abc6549dc071d5b065a2a6cb51 100644 (file)
@@ -183,6 +183,12 @@ pkg.generate(
 )
 
 if with_tests
-  test('egl-symbols-check', find_program('egl-symbols-check'))
-  test('egl-entrypoint-check', find_program('egl-entrypoint-check'))
+  test('egl-symbols-check',
+    find_program('egl-symbols-check'),
+    args : libegl
+  )
+  test('egl-entrypoint-check',
+    find_program('egl-entrypoint-check'),
+    env : [ 'srcdir=' + meson.current_source_dir() ]
+  )
 endif