mirror of
https://github.com/rcore-os/rCore.git
synced 2024-11-21 15:46:17 +04:00
Fix riscv32 testing
This commit is contained in:
parent
7331404fc7
commit
f1971c489a
@ -273,7 +273,7 @@ justrunui: build
|
||||
-device virtio-mouse-device
|
||||
|
||||
justruntest: build
|
||||
@qemu-system-$(arch) $(qemu_opts) --append $(init) -serial file:../tests/stdout -monitor null
|
||||
@qemu-system-$(arch) $(filter-out -serial mon:stdio, $(qemu_opts)) --append $(init) -serial file:../tests/stdout -monitor null
|
||||
|
||||
debug: $(kernel) $(kernel_img)
|
||||
@qemu-system-$(arch) $(qemu_opts) -s -S &
|
||||
|
@ -45,9 +45,9 @@ pub fn add_user_shell() {
|
||||
let inode = ROOT_INODE.lookup(&cmdline).unwrap();
|
||||
processor().manager().add(Thread::new_user(
|
||||
&inode,
|
||||
&cmdline,
|
||||
cmdline.split(' ').map(|s| s.into()).collect(),
|
||||
Vec::new(),
|
||||
Vec::new(),
|
||||
));
|
||||
}
|
||||
|
||||
|
1
tests/.gitignore
vendored
1
tests/.gitignore
vendored
@ -1 +1,2 @@
|
||||
stdout
|
||||
stdout.new
|
||||
|
@ -1,3 +1,3 @@
|
||||
Hello Rust uCore!
|
||||
I am process 0.
|
||||
hello pass.
|
||||
Hello Rust uCore!
|
||||
I am process 0.
|
||||
hello pass.
|
||||
|
@ -13,7 +13,9 @@ do
|
||||
|
||||
wait $pid
|
||||
|
||||
diff -I 'bbl loader' -I 'Hello RISCV! in hart' -u ${f%.cmd}.out stdout || { echo 'testing failed for' $f; exit 1; }
|
||||
awk 'NR > 25 { print }' < stdout > stdout.new
|
||||
|
||||
diff -u ${f%.cmd}.out stdout.new || { echo 'testing failed for' $f; exit 1; }
|
||||
|
||||
echo testing $f pass
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user