RustForge

rust-kernel

Rustbelt: a hobby x86_64 kernel written in Rust

rust-kernel / disk / scripts / selftest.sh
683 bytes ยท raw
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
# Rustbelt shell self-test: `cargo run --features headless` runs this with
# `sh /mnt/disk0/scripts/selftest.sh` (B:/scripts/selftest.sh) and scripts/run-headless.sh checks the output.
ver
drives
pwd
cd B:
ls
ls -l notes
type B:/readme.txt
cat b:notes/todo.txt | grep -i EXT | wc -l
dir bin | wc -l
echo first line > A:/tmp/out.txt
echo second line >> /tmp/out.txt
cat < /tmp/out.txt
md /tmp/work
copy B:/notes/todo.txt /tmp/work
touch /tmp/work/empty.txt
ls -l A:/tmp/work
del /tmp/work/todo.txt /tmp/work/empty.txt /tmp/work
grep "B:" readme.txt
alias ll="ls -l"
ll A:/tmp
run --trace cat B:/notes/todo.txt
start sleep 1
jobs
wait
run evil
nosuchprogram
cd Q:
cd A:/tmp
pwd
exit 0