CI: Test execution of projects

pull/84/head
Michal Rostecki 1 year ago
parent f4b3a8cea0
commit 485dca4961

@ -51,7 +51,13 @@ esac
cargo generate -v --path "${TEMPLATE_DIR}" -n test -d program_type="${PROG_TYPE}" ${ADDITIONAL_ARGS} cargo generate -v --path "${TEMPLATE_DIR}" -n test -d program_type="${PROG_TYPE}" ${ADDITIONAL_ARGS}
pushd test pushd test
cargo xtask build-ebpf cargo xtask run &
cargo build PID=$!
if [ sleep 10 && ps -p $PID ]; then
kill -9 $PID
else
echo "Project is not running!"
exit 1
fi
popd popd
exit 0 exit 0

Loading…
Cancel
Save