radv: add exported symbols check
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 11 Oct 2018 14:19:04 +0000 (15:19 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Sun, 13 Oct 2019 16:40:54 +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/amd/vulkan/meson.build

index 4243f66055ffd691f23288a258b497f4d6cff12f..93523b0e88edce09d47731e43f30abbe14886ba7 100644 (file)
@@ -166,6 +166,19 @@ libvulkan_radeon = shared_library(
   install : true,
 )
 
+if with_tests and prog_nm.found()
+  test(
+    'radv symbols check',
+    symbols_check,
+    args : [
+      '--lib', libvulkan_radeon,
+      '--symbols-file', vulkan_icd_symbols,
+      '--nm', prog_nm.path(),
+    ],
+    suite : ['amd'],
+  )
+endif
+
 radeon_icd = custom_target(
   'radeon_icd',
   input : 'radv_icd.py',