From 1a6ec19234e98531b24f36773ccde900a780cbbf Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 19 May 2024 10:06:37 +0200 Subject: [PATCH] qualify-clang.sh : check for the output --- debian/qualify-clang.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index 85702754..c2b3a57c 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -1059,7 +1059,16 @@ clang++-$VERSION -std=c++20 \ # The output should be # Hello modular world # Hello compat modular world -./a.out +./a.out > foo.log + +if ! grep -q -E "Hello modular world" foo.log 2>&1; then + echo "c++ modules didn't work" + exit 1 +fi +if ! grep -q -E "Hello compat modular world" foo.log 2>&1; then + echo "c++ modules didn't work" + exit 1 +fi if test ! -f /usr/lib/llvm-$VERSION/include/cxxabi.h; then echo "Install libc++abi-$VERSION-dev";