summaryrefslogtreecommitdiff
path: root/test/ledblink.sh
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-11-27 18:36:44 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-11-27 18:36:44 +0100
commit553b398ca104b3d0da00505bc92a1f9c05e6b8be (patch)
treeee38ec0fbaadc9edc3f1acf914b6507ef4f39f19 /test/ledblink.sh
parentf598b0fe5e1bf314372ca72ab59520db93211697 (diff)
add a very basic test
Diffstat (limited to 'test/ledblink.sh')
-rwxr-xr-xtest/ledblink.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ledblink.sh b/test/ledblink.sh
new file mode 100755
index 0000000..522277a
--- /dev/null
+++ b/test/ledblink.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -ex
+
+bin/msp430-etv --load test/ledblink.etlog --stat | fgrep '7620 measurements in 2.01 s = 3782 Hz sample rate'
+bin/msp430-etv --load test/ledblink.etlog --stat | fgrep 'Reported energy: E = 0.0230'
+bin/msp430-etv --load test/ledblink.etlog --stat | fgrep 'Mean voltage: 3.29 V'
+bin/msp430-etv --load test/ledblink.etlog --stat | fgrep 'Mean current: 3483 µA'
+bin/msp430-etv --load test/ledblink.etlog --stat | fgrep 'Current prediction error: 688 µA'
+bin/msp430-etv --load test/ledblink.etlog --stat | fgrep 'Mean power: 11459 µW'
+bin/msp430-etv --load test/ledblink.etlog --stat | fgrep 'Total energy: 0.0230'