summaryrefslogtreecommitdiff
path: root/53-generate-coverage-reports.sh
blob: 33aeb0126d33a0c2d49cee9a5658a6baeb07ce6b (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 coverage-html > $logfile
pass_fail $? "Generate test coverage report"

completed $ID