-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrade-lab2.sh
More file actions
59 lines (49 loc) · 779 Bytes
/
Copy pathgrade-lab2.sh
File metadata and controls
59 lines (49 loc) · 779 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh
qemuopts="-hda obj/kern/kernel.img"
. ./grade-functions.sh
$make
check () {
pts=20
echo_n "Physical page allocator: "
if grep "check_page_alloc() succeeded!" jos.out >/dev/null
then
pass
else
fail
fi
pts=20
echo_n "Page management: "
if grep "check_page() succeeded!" jos.out >/dev/null
then
pass
else
fail
fi
pts=10
echo_n "Allocate continuous pages: "
if grep "check_four_pages() succeeded!" jos.out >/dev/null
then
pass
else
fail
fi
pts=20
echo_n "Kernel page directory: "
if grep "check_kern_pgdir() succeeded!" jos.out >/dev/null
then
pass
else
fail
fi
pts=10
echo_n "Page management 2: "
if grep "check_page_installed_pgdir() succeeded!" jos.out >/dev/null
then
pass
else
fail
fi
}
run
check
showfinal