summaryrefslogtreecommitdiff
path: root/54-run-scan-build.sh
blob: 8b9b7be138dc4ce1e49999ccb028ab3b4e976637 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

# SPDX-License-Identifier: GPL-2.0-or-later
#

source ./common.sh

logfile=$(log_filename $ID)

LIBCAMERA=${1:-$(srcdir libcamera)}
BUILDDIR=${2:-$(builddir unit-tests)}

check_version "$LIBCAMERA" "$ID"

# Run the unit-tests
ninja -C $BUILDDIR scan-build > $logfile
pass_fail $? "Run clang static analyser (scan-build)"

completed $ID