diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-06-29 00:21:31 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-07-07 11:02:50 +0100 |
commit | d0a4e15ceb53742a6f4e44b8ca39b87e501b3f22 (patch) | |
tree | cc00f4ff86ab7896d98cc3d5501ab6c2b9a49787 | |
parent | bba25f447fe7aa748e9713bb218af597b0a900a0 (diff) |
ci: Run unit tests
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rwxr-xr-x | 50-unit-tests.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/50-unit-tests.sh b/50-unit-tests.sh new file mode 100755 index 0000000..2fc5427 --- /dev/null +++ b/50-unit-tests.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# SPDX-License-Identifier: GPL-2.0-or-later +# + +source ./common.sh + +ID=unit-tests +logfile=$(log_filename $ID) + +LIBCAMERA=${1:-$(pwd)/libcamera} +BUILDDIR=${2:-$(builddir coverity)} + +set -e + +check_version "$LIBCAMERA" "$ID" + +ninja -C $BUILDDIR test + +completed $ID |