File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ pkill -9 semu
4
+
5
+ expect << DONE
6
+ set timeout 120
7
+ spawn make check
8
+ expect "buildroot login:" { send "root\n" } timeout { exit 1 }
9
+ expect "# " { send "uname -a\n" } timeout { exit 2 }
10
+ expect "riscv32 GNU/Linux" { send "\x01"; send "x" } timeout { exit 3 }
11
+ DONE
12
+
13
+ ret=$?
14
+ pkill -9 semu
15
+ echo
16
+
17
+ MESSAGES=(" OK!" \
18
+ " Fail to boot" \
19
+ " Fail to login" \
20
+ " Fail to run commands" \
21
+ )
22
+
23
+ echo " ${MESSAGES[$ret]} "
24
+ exit ${ret}
Original file line number Diff line number Diff line change 10
10
- name : install-dependencies
11
11
run : |
12
12
sudo apt-get install build-essential device-tree-compiler
13
+ sudo apt-get install expect
13
14
- name : default build
14
15
run : make
15
16
shell : bash
17
+ - name : automated test
18
+ run : .ci/autorun.sh
19
+ shell : bash
16
20
17
21
coding_style :
18
22
runs-on : ubuntu-22.04
21
25
- name : coding convention
22
26
run : |
23
27
sudo apt-get install -q -y clang-format-12
24
- sh .ci/check-format.sh
28
+ .ci/check-format.sh
25
29
shell : bash
You can’t perform that action at this time.
0 commit comments