Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
Comment thread
lhutton1 marked this conversation as resolved.
Outdated
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
Comment thread
lhutton1 marked this conversation as resolved.
Outdated
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