Clean up test code

Separate/consolidate board initialization code, and a few functions
that are shared across tests. Update the Makefile accordingly.

Resolves #18
This commit is contained in:
2020-06-06 16:50:00 -07:00
parent 573504547c
commit 0ee9d39e81
19 changed files with 327 additions and 420 deletions

View File

@@ -8,8 +8,8 @@ variables:
- make -C ./firmware/
artifacts:
paths:
- "firmware/Test/*.elf"
- "firmware/Test/*.bin"
- "firmware/Test/Apps/*.elf"
- "firmware/Test/Apps/*.bin"
- "firmware/Application/*.elf"
- "firmware/Application/*.bin"
@@ -32,7 +32,7 @@ test-watch:
- privileged
image: registry.gitlab.maxregan.me/max/timely-reference/test-exec
script:
- test/src/tr_test/test.py --junitxml=test-report.xml
- test/src/tr_test/test.py -v --durations=0 --junitxml=test-report.xml
artifacts:
reports:
junit: test-report.xml