summaryrefslogtreecommitdiffstats
path: root/dung-3.4.25-m2/scifab
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2016-06-14 11:51:43 +0200
committerStephane Desneux <stephane.desneux@iot.bzh>2016-06-14 11:51:51 +0200
commite2472c7b1d061aef8bb05a4d7940fd8159c4a329 (patch)
treed02452b65c994c373f88199028f53020722d9815 /dung-3.4.25-m2/scifab
parent87cdfd4626c0cb47fc22f328867e49d6268df85c (diff)
add dung-3.4.25-m2, required by some JTA Functional.* testsblowfish_2.0.12.0.1
collection of shell scripts Used in multiple tests: * Functional.arch_timer/arch_timer.sh * Functional.scifab/scifab.sh * Functional.cmt/cmt.sh * Functional.sdhi_0/sdhi_0.sh Change-Id: I268c426071890554518e8b4927620fe6df587c34 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'dung-3.4.25-m2/scifab')
-rwxr-xr-xdung-3.4.25-m2/scifab/dmesg-sh-sci.0.sh81
-rwxr-xr-xdung-3.4.25-m2/scifab/proc-interrupts.sh13
2 files changed, 94 insertions, 0 deletions
diff --git a/dung-3.4.25-m2/scifab/dmesg-sh-sci.0.sh b/dung-3.4.25-m2/scifab/dmesg-sh-sci.0.sh
new file mode 100755
index 0000000..7ad083a
--- /dev/null
+++ b/dung-3.4.25-m2/scifab/dmesg-sh-sci.0.sh
@@ -0,0 +1,81 @@
+#!/bin/sh
+
+set -e
+#set -x
+
+echo "sh-sci dmesg feature test"
+
+
+OK=0
+NG=0
+
+test_one ()
+{
+ if $(dirname $0)/../common/dmesg-quiet.sh "$@"; then
+ OK=$(($OK + 1))
+ else
+ NG=$(($NG + 1))
+ echo "Could not find $SW" >&2
+ fi
+}
+
+test_one \
+"sh-sci.0: ttySC0 at MMIO 0xe6c40000 (irq = 176) is a scifa"
+
+test_one \
+"sh-sci.1: ttySC1 at MMIO 0xe6c50000 (irq = 177) is a scifa"
+
+test_one \
+"sh-sci.2: ttySC2 at MMIO 0xe6c20000 (irq = 180) is a scifb"
+
+test_one \
+"sh-sci.3: ttySC3 at MMIO 0xe6c30000 (irq = 181) is a scifb"
+
+test_one \
+"sh-sci.4: ttySC4 at MMIO 0xe6ce0000 (irq = 182) is a scifb"
+
+test_one \
+"sh-sci.5: ttySC5 at MMIO 0xe6c60000 (irq = 183) is a scifa"
+
+test_one \
+"sh-sci.6: ttySC6 at MMIO 0xe6e60000 (irq = 184) is a scif"
+
+test_one \
+"sh-sci.7: ttySC7 at MMIO 0xe6e68000 (irq = 185) is a scif"
+
+test_one \
+"sh-sci.8: ttySC8 at MMIO 0xe62c0000 (irq = 186) is a hscif"
+
+test_one \
+"sh-sci.9: ttySC9 at MMIO 0xe62c8000 (irq = 187) is a hscif"
+
+test_one \
+"sh-sci.10: ttySC10 at MMIO 0xe6e56000 (irq = 196) is a scif"
+
+test_one \
+"sh-sci.11: ttySC11 at MMIO 0xe6ea8000 (irq = 55) is a scif"
+
+test_one \
+"sh-sci.12: ttySC12 at MMIO 0xe6ee0000 (irq = 56) is a scif"
+
+test_one \
+"sh-sci.13: ttySC13 at MMIO 0xe6ee8000 (irq = 57) is a scif"
+
+test_one \
+"sh-sci.14: ttySC14 at MMIO 0xe6c70000 (irq = 61) is a scifa"
+
+test_one \
+"sh-sci.15: ttySC15 at MMIO 0xe6c78000 (irq = 62) is a scifa"
+
+test_one \
+"sh-sci.16: ttySC16 at MMIO 0xe6c80000 (irq = 63) is a scifa"
+
+test_one \
+"sh-sci.17: ttySC17 at MMIO 0xe62d0000 (irq = 53) is a hscif"
+
+echo "Passed:$OK Failed:$NG"
+
+if [ "$NG" -ne 0 ]; then
+ exit 1
+fi
+
diff --git a/dung-3.4.25-m2/scifab/proc-interrupts.sh b/dung-3.4.25-m2/scifab/proc-interrupts.sh
new file mode 100755
index 0000000..8fd4c43
--- /dev/null
+++ b/dung-3.4.25-m2/scifab/proc-interrupts.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+#set -x
+
+echo "sh-sci /proc/interrupts presence test"
+
+if $(dirname $0)/../common/proc-interrupts.sh \
+ "^ *:184 *.* *sh-sci.6:mux$"; then
+ echo "Test passed"
+else
+ echo "Test has not passed"
+fi