tu: add exported symbols check
authorEric Engestrom <eric.engestrom@intel.com>
Fri, 29 Mar 2019 17:15:45 +0000 (17:15 +0000)
committerEric Engestrom <eric@engestrom.ch>
Wed, 10 Jul 2019 11:27:51 +0000 (11:27 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/freedreno/vulkan/meson.build

index a25193a814739d05cfbb4cda1161003ab5a19942..d2234d8a7822d4c30b284c3a3182e0aa747901ac 100644 (file)
@@ -116,6 +116,19 @@ libvulkan_freedreno = shared_library(
   install : true,
 )
 
+if with_tests and prog_nm.found()
+  test(
+    'tu symbols check',
+    symbols_check,
+    args : [
+      '--lib', libvulkan_freedreno,
+      '--symbols-file', vulkan_icd_symbols,
+      '--nm', prog_nm.path(),
+    ],
+    suite : ['freedreno'],
+  )
+endif
+
 freedreno_icd = custom_target(
   'freedreno_icd',
   input : 'tu_icd.py',