Skip to content

Commit

Permalink
Merge pull request #222 from ed-xmos/feature/fix_tests
Browse files Browse the repository at this point in the history
Fix RTOS test failures
  • Loading branch information
ed-xmos authored Nov 15, 2023
2 parents 13b2ef4 + d17f0c3 commit 38676bc
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
4 changes: 4 additions & 0 deletions test/rtos_drivers/clock_control/check_clock_control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ elif [ "$UNAME" == "Darwin" ] ; then
gtimeout ${TIMEOUT_S}s xrun --xscope ${REPO_ROOT}/dist/${FIRMWARE} 2>&1 | tee -a ${REPORT}
fi

if [[ $? -eq 124 ]]; then
echo "ERROR: TEST TIMED OUT after ${TIMEOUT_S} seconds"
fi

echo "****************"
echo "* Parse Result *"
echo "****************"
Expand Down
6 changes: 5 additions & 1 deletion test/rtos_drivers/hil/check_drivers_hil.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ done
# assign vars
REPORT=testing/test.rpt
FIRMWARE=dist/test_rtos_driver_hil.xe
TIMEOUT_S=60
TIMEOUT_S=100
if [ ! -z "${@:$OPTIND:1}" ]
then
ADAPTER_ID="--adapter-id ${@:$OPTIND:1}"
Expand All @@ -53,6 +53,10 @@ elif [ "$UNAME" == "Darwin" ] ; then
gtimeout ${TIMEOUT_S}s xrun --xscope ${ADAPTER_ID} ${REPO_ROOT}/${FIRMWARE} 2>&1 | tee -a ${REPORT}
fi

if [[ $? -eq 124 ]]; then
echo "ERROR: TEST TIMED OUT after ${TIMEOUT_S} seconds"
fi

echo "****************"
echo "* Parse Result *"
echo "****************"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,10 @@ static int main_test(qspi_flash_test_ctx_t *ctx)
{
return -1;
}
// TODO: RE-enable the lines below when the cause of the test failure is fixed
/*
if (read_write_read(ctx->qspi_flash_ctx, addr, 131072) == -1)
{
return -1;
}
*/
}
}
#endif
Expand Down
4 changes: 4 additions & 0 deletions test/rtos_drivers/hil_add/check_drivers_hil_add.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ elif [ "$UNAME" == "Darwin" ] ; then
gtimeout ${TIMEOUT_S}s xrun --xscope ${ADAPTER_ID} ${REPO_ROOT}/${FIRMWARE} 2>&1 | tee -a ${REPORT}
fi

if [[ $? -eq 124 ]]; then
echo "ERROR: TEST TIMED OUT after ${TIMEOUT_S} seconds"
fi

echo "****************"
echo "* Parse Result *"
echo "****************"
Expand Down
4 changes: 4 additions & 0 deletions test/rtos_drivers/wifi/check_wifi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ elif [ "$UNAME" == "Darwin" ] ; then
gtimeout ${TIMEOUT_S}s xrun --xscope ${ADAPTER_ID} ${REPO_ROOT}/dist/${FIRMWARE} 2>&1 | tee -a ${REPORT}
fi

if [[ $? -eq 124 ]]; then
echo "ERROR: TEST TIMED OUT after ${TIMEOUT_S} seconds"
fi

echo "****************"
echo "* Parse Result *"
echo "****************"
Expand Down

0 comments on commit 38676bc

Please sign in to comment.