]>
Commit | Line | Data |
---|---|---|
129acd4c SG |
1 | #!/bin/sh |
2 | ||
3 | # Test for U-Boot cli including command repeat | |
4 | ||
5 | BASE="$(dirname $0)" | |
6 | . $BASE/common.sh | |
7 | ||
8 | run_test() { | |
9 | ./${OUTPUT_DIR}/u-boot <<END | |
10 | setenv ctrlc_ignore y | |
11 | md 0 | |
12 | ||
13 | reset | |
14 | END | |
15 | } | |
16 | check_results() { | |
17 | echo "Check results" | |
18 | ||
19 | grep -q 00000100 ${tmp} || fail "Command did not repeat" | |
20 | } | |
21 | ||
22 | echo "Test CLI repeat" | |
23 | echo | |
24 | tmp="$(tempfile)" | |
25 | build_uboot | |
26 | run_test >${tmp} | |
27 | check_results ${tmp} | |
28 | rm ${tmp} | |
29 | echo "Test passed" |