From 485dca49616be9eb9fd2836f9cae65a83e5ecfa0 Mon Sep 17 00:00:00 2001 From: Michal Rostecki Date: Wed, 3 May 2023 12:36:43 +0100 Subject: [PATCH] CI: Test execution of projects --- test.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test.sh b/test.sh index bc270b0..e5e8b51 100755 --- a/test.sh +++ b/test.sh @@ -51,7 +51,13 @@ esac cargo generate -v --path "${TEMPLATE_DIR}" -n test -d program_type="${PROG_TYPE}" ${ADDITIONAL_ARGS} pushd test -cargo xtask build-ebpf -cargo build +cargo xtask run & +PID=$! +if [ sleep 10 && ps -p $PID ]; then + kill -9 $PID +else + echo "Project is not running!" + exit 1 +fi popd exit 0