summaryrefslogtreecommitdiff
path: root/ao-bringup/turnon_chaoskey
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-08-02 16:30:15 -0700
committerKeith Packard <keithp@keithp.com>2016-08-02 17:05:42 -0700
commitc4926a69d6e72a035197b3d617c62893a7ea1861 (patch)
tree048e675ea6d18f6c0be25eab5892e3cb4ba474ff /ao-bringup/turnon_chaoskey
parentd52cb9dac725206ba7b2d26818c84f134d5bf183 (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-xao-bringup/turnon_chaoskey8
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 $?