summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2015-03-31 20:27:15 +0530
committerNaresh Kamboju <naresh.kamboju@linaro.org>2015-03-31 20:27:15 +0530
commitb786c8e28833fb85022651ab30e785b64322c914 (patch)
tree3993a59afe72d178da25c167431e94f2f99b24a4
parentfc95c9f46af3cad7f6e44d88e52b1c8a486ceb8f (diff)
coresight: test results fixHEADmaster
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-xcommon/scripts/coresight-test.sh43
-rwxr-xr-xcommon/scripts/coresight-test1.sh35
-rw-r--r--openembedded/coresight-test-new.yaml16
3 files changed, 21 insertions, 73 deletions
diff --git a/common/scripts/coresight-test.sh b/common/scripts/coresight-test.sh
index 318b812..eabf6e8 100755
--- a/common/scripts/coresight-test.sh
+++ b/common/scripts/coresight-test.sh
@@ -9,27 +9,26 @@ ls $CORESIGHT_PATH
echo -e "SOURCE\t\tSINK\t\tRESULT"
echo -e "------\t\t----\t\t------"
for SOURCE in `ls $CORESIGHT_PATH | egrep "etm|ptm"` ; do
- for SINK in `ls $CORESIGHT_PATH | egrep "etb|tpiu"` ; do
-
- echo 1 > $CORESIGHT_PATH/$SINK/enable_sink
-
- wrt_ptr1=`cat $CORESIGHT_PATH/$SINK/status | grep wrt | awk '{print $NF}'`
- echo 1 > $CORESIGHT_PATH/$SOURCE/enable_source
- sleep 1
- echo 0 > $CORESIGHT_PATH/$SOURCE/enable_source
- wrt_ptr2=`cat $CORESIGHT_PATH/$SINK/status | grep wrt | awk '{print $NF}'`
-
- echo 0 > $CORESIGHT_PATH/$SINK/enable_sink
-
- if [ $wrt_ptr1 == $wrt_ptr2 ];
- then
- RES="FAIL"
- else
- RES="SUCCESS"
- fi
-
- echo -e "$SOURCE\t$SINK\t$RES"
- done
- echo
+ for SINK in `ls $CORESIGHT_PATH | grep etb` ; do
+
+ echo 1 > $CORESIGHT_PATH/$SINK/enable_sink
+
+ wrt_ptr1=`cat $CORESIGHT_PATH/$SINK/status | grep wrt | awk '{print $NF}'`
+ echo 1 > $CORESIGHT_PATH/$SOURCE/enable_source
+ sleep 1
+ echo 0 > $CORESIGHT_PATH/$SOURCE/enable_source
+ wrt_ptr2=`cat $CORESIGHT_PATH/$SINK/status | grep wrt | awk '{print $NF}'`
+ echo 0 > $CORESIGHT_PATH/$SINK/enable_sink
+
+ if [ $wrt_ptr1 == $wrt_ptr2 ]; then
+ RES="fail"
+ else
+ RES="pass"
+ fi
+
+ echo -e "$SOURCE\t$SINK\t$RES"
+ lava-test-case $SOURCE-$SINK --result $RES
+ done
+ echo
done
diff --git a/common/scripts/coresight-test1.sh b/common/scripts/coresight-test1.sh
deleted file mode 100755
index 0f98023..0000000
--- a/common/scripts/coresight-test1.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-# Script to test coresight
-
-CORESIGHT_PATH="/sys/bus/coresight/devices"
-
-echo "ls $CORESIGHT_PATH"
-ls $CORESIGHT_PATH
-
-echo -e "SOURCE\t\tSINK\t\tRESULT"
-echo -e "------\t\t----\t\t------"
-for SOURCE in `ls $CORESIGHT_PATH | egrep "etm|ptm"` ; do
- for SINK in `ls $CORESIGHT_PATH | grep etb` ; do
-
- echo 1 > $CORESIGHT_PATH/$SINK/enable_sink
-
- wrt_ptr1=`cat $CORESIGHT_PATH/$SINK/status | grep wrt | awk '{print $NF}'`
- echo 1 > $CORESIGHT_PATH/$SOURCE/enable_source
- sleep 1
- echo 0 > $CORESIGHT_PATH/$SOURCE/enable_source
- wrt_ptr2=`cat $CORESIGHT_PATH/$SINK/status | grep wrt | awk '{print $NF}'`
-
- echo 0 > $CORESIGHT_PATH/$SINK/enable_sink
-
- if [ $wrt_ptr1 == $wrt_ptr2 ];
- then
- RES="FAIL"
- else
- RES="SUCCESS"
- fi
-
- echo -e "$SOURCE\t$SINK\t$RES"
- done
- echo
-done
-
diff --git a/openembedded/coresight-test-new.yaml b/openembedded/coresight-test-new.yaml
deleted file mode 100644
index b570a1e..0000000
--- a/openembedded/coresight-test-new.yaml
+++ /dev/null
@@ -1,16 +0,0 @@
-metadata:
- format: Lava-Test Test Definition 1.0
- name: coresight-test
- description: "To check wether coresight source to sink writes are working"
- maintainer:
- - vijay.dandiga@linaro.org
- os:
- - openembedded
- scope:
- - functional
- devices:
- - tc2
-
-run:
- steps:
- - "common/scripts/coresight-test1.sh"