summaryrefslogtreecommitdiff
path: root/ubuntu/scripts
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2014-11-25 20:31:30 -0800
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-12-02 08:50:46 +0000
commitb7ba0a2e455bd5c233b6c2205ed5ec0c7b9d4136 (patch)
tree7ed01f5fc6e3e1fb97c9838cc15000ca86f8fc19 /ubuntu/scripts
parent9509d817c11e51ea01140ecce105cb573cadd58b (diff)
Ubuntu: add sendme test definition
Send a signal from driver to user and measure time intervals. Change-Id: Id58281786d436d770fe1ebc5cef4ce03346af1fc
Diffstat (limited to 'ubuntu/scripts')
-rwxr-xr-xubuntu/scripts/sendme-parser.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/ubuntu/scripts/sendme-parser.sh b/ubuntu/scripts/sendme-parser.sh
new file mode 100755
index 0000000..1d98a0e
--- /dev/null
+++ b/ubuntu/scripts/sendme-parser.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+log=$1
+tail -n 2 ${log} | while read l;
+do
+ TC="`echo ${l} | awk -F: '{print $1}'`"
+ R="`echo ${l} | awk -F: '{print $2}'`"
+ IFS=','
+ for c in ${R}
+ do
+ c=`echo $c|sed "s/^[ ]*//"`
+ t="`echo $c|awk '{print $1}'`"
+ v="`echo $c|awk '{print $2}'`"
+ echo "${TC}_${t}: ${v} usec pass"
+ done
+ unset IFS
+done
+