Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[microTVM] Check the output of microNPU demos in CI #15667

Merged
merged 2 commits into from
Sep 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 20 additions & 2 deletions tests/scripts/task_demo_microtvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ set -euxo pipefail

source tests/scripts/setup-pytest-env.sh

cleanup()
{
rm -f out.log
}
trap cleanup 0

pushd apps/microtvm/cmsisnn
timeout 5m ./run_demo.sh
lhutton1 marked this conversation as resolved.
Show resolved Hide resolved
popd
Expand All @@ -34,6 +40,18 @@ FVP_PATH="/opt/arm/FVP_Corstone_SSE-300_Ethos-U55"
CMAKE_PATH="/opt/arm/cmake/bin/cmake"
FREERTOS_PATH="/opt/freertos/FreeRTOSv202112.00"

timeout 5m ./run_demo.sh --fvp_path $FVP_PATH --cmake_path $CMAKE_PATH
timeout 5m ./run_demo.sh --fvp_path $FVP_PATH --cmake_path $CMAKE_PATH --freertos_path $FREERTOS_PATH
timeout 5m ./run_demo.sh --fvp_path $FVP_PATH --cmake_path $CMAKE_PATH > out.log
lhutton1 marked this conversation as resolved.
Show resolved Hide resolved
cat out.log
if ! grep -q "The image has been classified as 'tabby'" out.log; then
echo "The demo returned the wrong result"
exit 1
fi

timeout 5m ./run_demo.sh --fvp_path $FVP_PATH --cmake_path $CMAKE_PATH --freertos_path $FREERTOS_PATH > out.log
cat out.log
if ! grep -q "The image has been classified as 'tabby'" out.log; then
echo "The demo returned the wrong result"
exit 1
fi

popd