Repostiory containing DAPLink source code with Reset Pin workaround for HANI_IOT board.
Upstream: https://github.com/ARMmbed/DAPLink
tools/test_loop.sh@0:01f31e923fe2, 2020-04-07 (annotated)
- Committer:
- Pawel Zarembski
- Date:
- Tue Apr 07 12:55:42 2020 +0200
- Revision:
- 0:01f31e923fe2
hani: DAPLink with reset workaround
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Pawel Zarembski |
0:01f31e923fe2 | 1 | #!/bin/sh |
Pawel Zarembski |
0:01f31e923fe2 | 2 | # Local tests looper until fail. CeDeROM 20170815 |
Pawel Zarembski |
0:01f31e923fe2 | 3 | # Runs all tests on all supported Boards/Targets on provided environment. |
Pawel Zarembski |
0:01f31e923fe2 | 4 | LOGDIR=../test/out/ |
Pawel Zarembski |
0:01f31e923fe2 | 5 | TGTDIR=../bin/target |
Pawel Zarembski |
0:01f31e923fe2 | 6 | |
Pawel Zarembski |
0:01f31e923fe2 | 7 | echo "ARE WE INSIDE VALID VIRTUALENV READY FOR TESTING?" |
Pawel Zarembski |
0:01f31e923fe2 | 8 | echo "LOGDIR: $LOGDIR" |
Pawel Zarembski |
0:01f31e923fe2 | 9 | echo "TGTDIR: $TGTDIR" |
Pawel Zarembski |
0:01f31e923fe2 | 10 | echo "Press Ctrl+C to Abort, Return to Start.." |
Pawel Zarembski |
0:01f31e923fe2 | 11 | read |
Pawel Zarembski |
0:01f31e923fe2 | 12 | |
Pawel Zarembski |
0:01f31e923fe2 | 13 | while [ 1 ]; do |
Pawel Zarembski |
0:01f31e923fe2 | 14 | TIME=`date +%s` |
Pawel Zarembski |
0:01f31e923fe2 | 15 | SAY_ITERATION="STARTING DAPLINK TEST ITERATION $TIME" |
Pawel Zarembski |
0:01f31e923fe2 | 16 | echo $SAY_ITERATION |
Pawel Zarembski |
0:01f31e923fe2 | 17 | if say "" ; then say "$SAY_ITERATION" ; fi |
Pawel Zarembski |
0:01f31e923fe2 | 18 | python ../test/run_test.py --targetdir $TGTDIR --testdl --loadbl --verbose All --logdir "$LOGDIR"/$TIME |
Pawel Zarembski |
0:01f31e923fe2 | 19 | RES=$? |
Pawel Zarembski |
0:01f31e923fe2 | 20 | if [ $RES -ne 0 ]; then |
Pawel Zarembski |
0:01f31e923fe2 | 21 | SAY_ERROR="DAPLINK TESTING ERROR, TEST $TIME FAILED MISERABLY WITH STATUS $RES, EJECTING!" |
Pawel Zarembski |
0:01f31e923fe2 | 22 | echo "$SAY_ERROR" |
Pawel Zarembski |
0:01f31e923fe2 | 23 | if say "" ; then say -v "bad news" "$SAY_ERROR" ; fi |
Pawel Zarembski |
0:01f31e923fe2 | 24 | if [ -f "$LOGDIR"/summary.txt ]; then cat "$LOGDIR"/summary.txt; fi |
Pawel Zarembski |
0:01f31e923fe2 | 25 | break |
Pawel Zarembski |
0:01f31e923fe2 | 26 | fi |
Pawel Zarembski |
0:01f31e923fe2 | 27 | done |