anv: add exported symbols check
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 11 Oct 2018 14:19:13 +0000 (15:19 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Sun, 13 Oct 2019 16:40:47 +0000 (17:40 +0100)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/intel/vulkan/meson.build

index 86325beabea57259f51579e8894e3468bb1b599c..e8db8f44de0c141b29e1304c3cf72dac89e88853 100644 (file)
@@ -204,6 +204,19 @@ libvulkan_intel = shared_library(
   install : true,
 )
 
+if with_tests and prog_nm.found()
+  test(
+    'anv symbols check',
+    symbols_check,
+    args : [
+      '--lib', libvulkan_intel,
+      '--symbols-file', vulkan_icd_symbols,
+      '--nm', prog_nm.path(),
+    ],
+    suite : ['intel'],
+  )
+endif
+
 if with_tests
   libvulkan_intel_test = static_library(
     'vulkan_intel_test',