From 57fe04982a31aba1a1f4ec1ee033def31abeadc9 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Thu, 29 Jul 2021 10:35:29 +0100 Subject: ci: simple-cam: Run the binary Test that the binary can successfully run and capture with a good exit status. Signed-off-by: Kieran Bingham --- 60-simple-cam.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/60-simple-cam.sh b/60-simple-cam.sh index 80e3440..1c057a9 100755 --- a/60-simple-cam.sh +++ b/60-simple-cam.sh @@ -50,11 +50,21 @@ function build() { return $ret } +function run() { + BUILDDIR="$(builddir $ID)" + + LD_LIBRARY_PATH=$LIBCAMERA_BUILD/src/libcamera:$LIBCAMERA_BUILD/src/libcamera/base \ + $BUILDDIR/simple-cam +} + logfile=$(log_filename $ID) update_sources > $logfile build >> $logfile -pass_fail $? "simple-cam:" +pass_fail $? "build simple-cam:" + +run >> $logfile +pass_fail $? "run simple-cam:" completed $ID -- cgit v1.2.1