Skip to content

Commit ed25dc4

Browse files
committed
ch3-with loongarch
1 parent 5e7c01c commit ed25dc4

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/doc-and-test.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,27 @@ jobs:
4949
qemu-system-x86_64 --version
5050
5151
- name: Run usertests in RISC-V
52-
run: cd os && make run TEST=1
52+
run: cd os && make run
5353
timeout-minutes: 10
5454

5555
- name: Run usertests in AArch64
56-
run: cd os && make run TEST=1 ARCH=aarch64
56+
run: cd os && make run ARCH=aarch64
5757
timeout-minutes: 10
5858

5959
- name: Run usertests in x86_64
60-
run: cd os && make run TEST=1 ARCH=x86_64
60+
run: cd os && make run ARCH=x86_64
6161
timeout-minutes: 10
6262

63-
# - name: Run usertests in LoongArch64
64-
# run: |
65-
# trap 'exit 0' SIGTERM
66-
# cd os && make run TEST=1 ARCH=loongarch64
67-
# timeout-minutes: 2
68-
63+
- name: Run usertests in loongarch64
64+
run: |
65+
cd os
66+
(make run ARCH=loongarch64 & echo $! > pidfile) | while IFS= read -r line
67+
do
68+
echo "$line"
69+
if echo "$line" | grep -q "DONE"
70+
then
71+
kill $(cat pidfile)
72+
wait $(cat pidfile)
73+
exit 0
74+
fi
75+
done

0 commit comments

Comments
 (0)