-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtest.sh
More file actions
34 lines (27 loc) · 828 Bytes
/
test.sh
File metadata and controls
34 lines (27 loc) · 828 Bytes
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
33
34
set -ex
function applyPreset {
deno run -A config/config.ts --clean --auto --load config/presets/$1.kernel.json config/kernel.json
deno run -A config/config.ts --clean --auto --load config/presets/$1.libc.json config/libc.json
deno run -A config/config.ts --clean --auto --mode makefile --load config/presets/$1.build.json config/build.json
}
function screenshot {
make run_vnc &>/dev/null & disown
sleep 45
vncsnapshot localhost:1 $1
killall qemu-system-i386
}
function testProfile {
make clean -i
applyPreset $1
make iso
cp cdrom.iso test_out/$1.iso
screenshot test_out/$1.jpg
}
mkdir test_out -p
testProfile default
testProfile full_screen_terminal
testProfile network
testProfile network_full_screen_terminal
testProfile smp
testProfile smp_full_screen_terminal
testProfile gui