From 6498d613d15bcb203b38ea65ea9f58027f332af7 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 16 Aug 2021 21:56:55 +0200 Subject: [PATCH] add a new test to import the libclang --- debian/qualify-clang.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index c9e5642b..7d6e07b8 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -1333,6 +1333,15 @@ if grep "LLVM IR bitcode" foo.log; then echo "Should be elf" exit -2 fi +echo " +from ctypes import * +libclang="/usr/lib/llvm-$VERSION/lib/libclang-$VERSION.so.1" +lib = CDLL(libclang) +fun = lib.clang_getAddressSpace +print(fun) +" > foo.py +python3 foo.py|grep _FuncPtr +rm foo.py echo "Testing cmake build ..."