radv: add exported symbols check
[mesa.git] / 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',