Skip to content

Commit c40f550

Browse files
committed
add all test file templates
1 parent 4f7895e commit c40f550

File tree

5 files changed

+60
-1
lines changed

5 files changed

+60
-1
lines changed

Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,12 @@ UPROGS=\
184184
_getParentIDtest\
185185
_getChildrenTest\
186186
_getSyscallCounterTest\
187+
_getCBTtest\
188+
_getTurnAroundTimeTest\
189+
_getWaitingTimeTest\
187190
_roundRobinTest\
191+
_prioritySchedTest\
192+
188193

189194

190195
fs.img: mkfs README $(UPROGS)
@@ -255,7 +260,9 @@ qemu-nox-gdb: fs.img xv6.img .gdbinit
255260
EXTRA=\
256261
mkfs.c ulib.c user.h cat.c echo.c forktest.c grep.c kill.c\
257262
ln.c ls.c mkdir.c rm.c stressfs.c usertests.c wc.c zombie.c\
258-
getParentIDtest.c getChildrenTest.c getSyscallCounterTest.c roundRobinTest.c\
263+
getParentIDtest.c getChildrenTest.c getSyscallCounterTest.c\
264+
getCBTtest.c getTurnAroundTimeTest.c getWaitingTimeTest.c\
265+
roundRobinTest.c prioritySchedTest.c\
259266
printf.c umalloc.c\
260267
README dot-bochsrc *.pl toc.* runoff runoff1 runoff.list\
261268
.gdbinit.tmpl gdbutil\

getCBTtest.c

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include "types.h"
2+
#include "stat.h"
3+
#include "user.h"
4+
5+
int main()
6+
{
7+
printf(1, "This is getCBTtest template!");
8+
9+
while (wait() != -1)
10+
;
11+
12+
exit();
13+
}

getTurnAroundTimeTest.c

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include "types.h"
2+
#include "stat.h"
3+
#include "user.h"
4+
5+
int main()
6+
{
7+
printf(1, "This is getTurnAroundTimeTest template!");
8+
9+
while (wait() != -1)
10+
;
11+
12+
exit();
13+
}

getWaitingTimeTest.c

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include "types.h"
2+
#include "stat.h"
3+
#include "user.h"
4+
5+
int main()
6+
{
7+
printf(1, "This is getWaitingTimeTest template!");
8+
9+
while (wait() != -1)
10+
;
11+
12+
exit();
13+
}

prioritySchedTest.c

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include "types.h"
2+
#include "stat.h"
3+
#include "user.h"
4+
5+
int main()
6+
{
7+
printf(1, "This is prioritySchedTest template!");
8+
9+
while (wait() != -1)
10+
;
11+
12+
exit();
13+
}

0 commit comments

Comments
 (0)