Fix RTC synchronization after sleep, add many more tests

There were two issues with the tests

1. Incorrect print formats causing incorrect output.

2. The RTC driver was not waiting for the shadow registers to be
updated after sleeping, their reset values to be read.
This commit is contained in:
2020-04-22 09:09:31 -07:00
parent 2fa4a5e658
commit f455ce9113
20 changed files with 700 additions and 94 deletions

25
test/Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM ubuntu:20.04
RUN apt-get update && \
apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl \
sigrok-cli \
python3 \
python3-pip \
libncurses5 \
&& \
rm -rf /var/lib/apt/lists/*
RUN cd /tmp && \
curl 'https://www.segger.com/downloads/jlink/JLink_Linux_x86_64.deb' \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data 'accept_license_agreement=accepted&submit=Download+software' \
--output JLink_Linux_x86_64.deb && \
dpkg -i ./JLink_Linux_x86_64.deb && \
rm ./JLink_Linux_x86_64.deb
RUN pip3 install \
pytest \
pylink-square \
pyserial \