-
Notifications
You must be signed in to change notification settings - Fork 6
/
test_hv6_syscalls0.sh
46 lines (44 loc) · 4.98 KB
/
test_hv6_syscalls0.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
function doSomething()
{
local retTmp=$(mktemp)
local lock="/tmp/do.lock"
touch $lock
(
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_map_pml4"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_map_page_desc"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_map_proc"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_map_dev"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_map_file"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_alloc_pdpt"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_alloc_pd"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_alloc_pt"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_alloc_frame"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_copy_frame"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_protect_frame"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_free_pdpt"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_free_pd"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_free_pt"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_free_frame"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_reclaim_page"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_clone_proc"
docker run -t amadeuschan/osproject_with_hv6 /bin/sh -c "git clone https://github.com/oscourse-tsinghua/OS2018spring-projects-g10.git; cd OS2018spring-projects-g10/hv6; make > /dev/null; make hv6-verify -- -v --failfast HV6.test_sys_set_proc_name"
echo $? > $retTmp
rm -f $lock;
)&
while [ -f $lock ]; do
sleep 0.1
printf "Please wait... %s \r" $f
let "t=10#$(date +%N) / 100000000 % 4"
case $t in
0) f="/";;
1) f="-";;
2) f="\\";;
3) f="|";;
esac
done
echo
local retcode=$(cat $retTmp)
rm -f $retTmp
return $retcode
}
doSomething