diff options
| author | Keith Packard <keithp@keithp.com> | 2016-08-02 16:30:15 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2016-08-02 17:05:42 -0700 |
| commit | c4926a69d6e72a035197b3d617c62893a7ea1861 (patch) | |
| tree | 048e675ea6d18f6c0be25eab5892e3cb4ba474ff /ao-bringup/turnon_chaoskey | |
| parent | d52cb9dac725206ba7b2d26818c84f134d5bf183 (diff) | |
ao-bringup: Test chaoskey using dieharder
This uses a subset of the dieharder tests which run in reasonable time
and don't appear to emit false negatives on a regular basis.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-bringup/turnon_chaoskey')
| -rwxr-xr-x | ao-bringup/turnon_chaoskey | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ao-bringup/turnon_chaoskey b/ao-bringup/turnon_chaoskey index 8c20ebaa..50460008 100755 --- a/ao-bringup/turnon_chaoskey +++ b/ao-bringup/turnon_chaoskey @@ -30,4 +30,12 @@ sleep 2 $USBLOAD --serial=1 ../src/chaoskey-v$VERSION/chaoskey-v$VERSION*.ihx || exit 1 +sleep 1 + +serial=`dmesg | grep 'on chaoskey' | tail -1 | sed 's/.*chaoskey \([0-9a-f][0-9a-f]*\) on chaoskey.*/\1/'` + +echo 'Testing ChaosKey' $serial + +./test-chaoskey $serial + exit $? |
