From 36a4128892b91cde4eb22853746f1496634761e1 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 4 Jul 2023 14:42:25 +0200 Subject: [PATCH] check more symlink --- debian/qualify-clang.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index 11eda2be..a4a49384 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -477,8 +477,19 @@ if ! ldd o 2>&1|grep -q libclang-cpp; then fi ./o > /dev/null -# Check that the symlink is correct -ls -al /usr/lib/llvm-$VERSION/lib/libclang-cpp.so.$VERSION > /dev/null +check_symlink() { + P="/usr/lib/llvm-$VERSION/lib/$1" + if test ! -e $P; then + echo "invalid symlink $P" + ls -al $P + exit 1 + fi +} + +check_symlink "libclang-cpp.so.$VERSION" +check_symlink "libclang-$VERSION.so" +check_symlink "libclang.so" + echo "Testing code coverage ..."