This commit is contained in:
2024-12-22 05:22:46 +03:00
commit 1992e632d3
232 changed files with 20394 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#!/bin/sh
DEV="-d /dev/ttyUSB0 -b 115200"
CMD="M1 p7,0,0 t M1 07 R "
PASS="Test passed"
MAX_RUN_S=10
LOG="$0.log"
grabserial $DEV -c 'reset ' -q "M1:" -e 10
sleep 2
grabserial $DEV -c "$CMD" -q "$PASS" -e $MAX_RUN_S -o $LOG
echo
if [ `gawk -f judge_pcnt_sync.awk $LOG | grep -c PASS` -ne 1 ]
then
grabserial $DEV -c 'r ' -q StepperDemo -e 1
echo
echo FAIL $0 pulse counter mismatch
exit 1
fi
if [ `grep -c "$PASS" $LOG` -eq 1 ]
then
echo PASS
else
grabserial $DEV -c 'r ' -q StepperDemo -e 1
echo
echo "FAIL $0 result pattern: $PASS"
exit 1
fi