[libclc] 45/92: check_external_calls.sh: Print number of calls in tested file.
Andreas Boll
aboll-guest at moszumanska.debian.org
Mon Nov 6 15:11:59 UTC 2017
This is an automated email from the git hooks/post-receive script.
aboll-guest pushed a commit to branch master
in repository libclc.
commit 496216756c44a8109f211a20fcc9fbfdcc904130
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date: Sun Oct 8 20:07:56 2017 +0000
check_external_calls.sh: Print number of calls in tested file.
Reviewer: Jeroen Ketema
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@315192 91177308-0d34-0410-b5e6-96231b3b80d8
---
check_external_calls.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/check_external_calls.sh b/check_external_calls.sh
index ad1d8c2..80b595c 100755
--- a/check_external_calls.sh
+++ b/check_external_calls.sh
@@ -24,9 +24,10 @@ TMP_FILE=$(mktemp)
# Check for calls. Calls to llvm intrinsics are OK
$DIS < $FILE | grep ' call ' | grep -v '@llvm' > "$TMP_FILE"
+COUNT=$(wc -l < "$TMP_FILE")
-if [ $(wc -l < "$TMP_FILE") -ne "0" ]; then
- echo "ERROR: unresolved calls detected"
+if [ "$COUNT" -ne "0" ]; then
+ echo "ERROR: $COUNT unresolved calls detected in $FILE"
cat $TMP_FILE
ret=1
else
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git
More information about the Pkg-opencl-commits
mailing list