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

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

source ./common.sh

ID=run-unit-tests
logfile=$(log_filename $ID)

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

set -e

check_version "$LIBCAMERA" "$ID"

ninja -C $BUILDDIR test

completed $ID