aboutsummaryrefslogtreecommitdiff
path: root/manual/se/tc26.yaml
blob: 936cc0731a285bbd08a8c5c5faee19e91933e20e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
metadata:
    name: TC26
    format: "Manual Test Definition 1.0"
    description: "TC26: NAND MTD Read/Write"
    maintainer:
        - ryan.harkin@linaro.org
    os:
        - openembedded
    scope:
        - functional
    devices:
        - lces2
        - soca9
    environment:
        - manual-test

run:
    steps:
        - "#soca9: ok"
        - "PART=0"
        - "#lces2: ok"
        - "PART=1"
        - "sumfile=~/tc26.md5"
        - "rm ${sumfile}*"
        - " "
        - "./test-mtd-write.sh ${PART} 512  | tail -1 | cut -d \" \" -f 1 | tee ${sumfile}"
        - "# note checksum output"
        - "reboot"
        - " "
        - "#soca9:"
        - "PART=0"
        - "#lces2:"
        - "PART=1"
        - " "
        - " "
        - "sumfile=~/tc26.md5"
        - "./test-mtd-read.sh ${PART}  | tail -1 | cut -d \" \" -f 1 | tee ${sumfile}.read"
        - "# verify checksum matches one from the write test"
        - " "
        - "cat ${sumfile}*"
        - "cmp ${sumfile}*"
        - "if [ $? -eq 0 ]; then  echo pass; else echo fail; fi"

    expected:
        - "Test echos pass"