arm: add async tests

This commit is contained in:
2022-06-19 09:41:17 +02:00
parent b9a9c2be7b
commit 15488550c0
5 changed files with 363 additions and 4 deletions

18
arm/test.py Normal file
View File

@@ -0,0 +1,18 @@
import serial
s = serial.Serial('tty', 115200, timeout=6)
length = 1
log = open('test.log', 'wb')
while True:
print(f'Writing {length} bytes')
s.write(b'b' * length);
data = s.read(length)
log.write(data)
if not data:
break
length += 1
print(f'Read back 0 bytes')