-
Notifications
You must be signed in to change notification settings - Fork 0
/
do.sh
executable file
·51 lines (47 loc) · 2.07 KB
/
do.sh
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# #!/bin/bash
# tests=(
# priority-change #pass
# priority-donate-one #pass
# priority-donate-multiple #pass
# priority-donate-multiple2 #pass
# priority-donate-nest #pass
# priority-donate-lower #pass
# priority-donate-chain #pass
# priority-fifo #pass
# priority-preempt #pass
# priority-sema #pass
# priority-condvar #pass
# priority-donate-sema #pass
# )
# workspace_root=$(pwd)
# log_dir="$workspace_root/log"
# if [ ! -d "$log_dir" ]; then
# mkdir -p "$log_dir"
# fi
# cd threads
# make clean >/dev/null 2>&1
# make >/dev/null 2>&1
# cd build
# for test in ${tests[@]}; do
# pintos -- -q run $test > "$log_dir/$test.log"
# echo written output in "$log_dir/$test.log"
# done
cd vm
make clean
make -j $(nproc --all)
cd build
# pintos-mkdisk filesys.dsk 10
# pintos --gdb --fs-disk=10 -p tests/userprog/args-single:args-single -- -q -f run 'args-single onearg'
# pintos --fs-disk filesys.dsk -p tests/userprog/args-single:args-single -- -f run 'args-single onearg'
# pintos --fs-disk filesys.dsk -p tests/userprog/fork-once:fork-once --gdb -- -f run 'fork-once'
# pintos --fs-disk=10 -p tests/userprog/read-normal:read-normal -p ../../tests/userprog/sample.txt:sample.txt -- -q -f run read-normal
# pintos --fs-disk=10 -p tests/userprog/close-normal:close-normal -p ../../tests/userprog/sample.txt:sample.txt --gdb -- -q -f run 'close-normal'
# pintos --gdb -v -k --fs-disk=10 -p tests/userprog/exec-once:exec-once -p tests/userprog/child-simple:child-simple -- -q -f run exec-once
# pintos --gdb -v -k --fs-disk=10 -p tests/userprog/exec-missing:exec-missing -- -q -f run exec-missing
# pintos --gdb -v -k --fs-disk=10 -p tests/userprog/read-zero:read-zero -p ../../tests/userprog/sample-text:sample-text -- -q -f run read-zero
# pintos $1 -v -k --fs-disk=10 -p tests/userprog/args-none:args-none --swap-disk=4 -- -q -f run args-none
#
#
### COW
#
pintos $1 -v -k -m 20 --fs-disk=10 -p tests/vm/cow/cow-simple:cow-simple -p ../../tests/vm/large.txt:sample.txt --swap-disk=4 -- -q -f run cow-simple