summaryrefslogtreecommitdiff
path: root/55-include-what-you-use.sh
blob: 31154b0a2e9a3c562be832b028affe1fb20ff299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

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

source ./common.sh

logfile=$(log_filename $ID)

BUILDDIR=${1:-$(builddir unit-tests)}
LIBCAMERA=$BUILDDIR/source/

check_version "$LIBCAMERA" "$ID"

iwyu_tool \
	-p "$BUILDDIR" \
	-o iwyu \
	-j$(nproc) > $BUILDDIR/iwyu.report.log

echo "See $BUILDDIR/iwyu.report.log for details" > $logfile

pass_fail $? "Include-what-you-use"

completed $ID