-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc41bf0
commit da7fcda
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Tests | ||
|
||
These tests are expected to be run on a purpose built test system. | ||
|
||
## Goals | ||
|
||
1. ✅ Functionality testing | ||
2. 💯% code coverage | ||
|
||
## Tests | ||
|
||
Please add new tests in this directory with the `.sh` extension. | ||
They will be run with `bash -e -x {}`. | ||
|
||
## Current Test System | ||
|
||
**Raspberry PI Zero W** with a **SparkFun - Pro Micro 3.3V 8MHz** connected to the USB port and via SPI. | ||
|
||
![ActionPi - ATmega32u4 DFU Tester](https://user-images.githubusercontent.com/419955/210459911-fbdf8628-7748-4977-992a-75f027ce2bb9.png) | ||
_Picture of test system_ | ||
|
||
The system will run the tests periodically and on trigger from a webhook. | ||
|
||
### Software Environment | ||
|
||
The filesystem is set to read-only, so the tests are run from a ramdisk. | ||
|
||
Available environment variables: | ||
|
||
- `$DFU` - The path to the recently built `dfu-programmer` executable. | ||
- `$AVRDUDE` - A path to avrdude to needed flags. Just add "-U flash:r:-:h" to read the flash memory as hex bytes | ||
|
||
## Minimum Test System Setup | ||
|
||
- ATmega32u4 connected to the USB port of the test system. | ||
- AVRDUDE setup to program the ATmega32u4 | ||
- A program on the path called `avrdude.sh` that adds the correct `-c`, `-B`, `-P`, and `-p` options to the `avrdude` command. Running without arguments should successfully communicate and identify the ATmega32u4. | ||
- Permissions to access usb devices as the current user. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$DFU --help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$DFU --help |