diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-14 14:38:12 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-03-14 14:38:12 +0100 |
| commit | 7f8b2231df2666213050096448442f887cd57d00 (patch) | |
| tree | aca9d5129a9f50a4c350598f3a29ec45698d4088 /src/tests | |
| parent | 626bfb69bd9376d30cb2bfe4b35167ddb86852e7 (diff) | |
| download | pintos-7f8b2231df2666213050096448442f887cd57d00.tar.gz | |
update makefiles for lab 6
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/userprog/Make.tests | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/src/tests/userprog/Make.tests b/src/tests/userprog/Make.tests index c762af3..427f538 100644 --- a/src/tests/userprog/Make.tests +++ b/src/tests/userprog/Make.tests @@ -8,16 +8,18 @@ args-single args-multiple args-many args-dbl-space sc-bad-sp \ sc-bad-arg sc-boundary sc-boundary-2 halt exit create-normal \ create-empty create-null create-bad-ptr create-long create-exists \ create-bound open-normal open-missing open-boundary open-empty \ -open-null open-bad-ptr open-twice close-normal close-stdin \ -close-stdout close-bad-fd read-bad-ptr read-boundary \ +open-null open-bad-ptr open-twice close-normal close-twice close-stdin \ +close-stdout close-bad-fd read-normal read-bad-ptr read-boundary \ read-zero read-stdout read-bad-fd write-normal write-bad-ptr \ write-boundary write-zero write-stdin write-bad-fd exec-once exec-arg \ exec-multiple exec-missing exec-bad-ptr wait-simple wait-twice \ -wait-killed wait-bad-pid multi-recurse \ -) +wait-killed wait-bad-pid multi-recurse multi-child-fd) + + tests/userprog_PROGS = $(tests/userprog_TESTS) $(addprefix \ -tests/userprog/,child-simple child-args child-bad child-close child-rox) +tests/userprog/,child-simple child-args child-bad child-close) + tests/userprog/args-none_SRC = tests/userprog/args.c tests/userprog/args-single_SRC = tests/userprog/args.c @@ -26,12 +28,7 @@ tests/userprog/args-many_SRC = tests/userprog/args.c tests/userprog/args-dbl-space_SRC = tests/userprog/args.c tests/userprog/sc-bad-sp_SRC = tests/userprog/sc-bad-sp.c tests/main.c tests/userprog/sc-bad-arg_SRC = tests/userprog/sc-bad-arg.c tests/main.c -tests/userprog/bad-read_SRC = tests/userprog/bad-read.c tests/main.c -tests/userprog/bad-write_SRC = tests/userprog/bad-write.c tests/main.c -tests/userprog/bad-jump_SRC = tests/userprog/bad-jump.c tests/main.c -tests/userprog/bad-read2_SRC = tests/userprog/bad-read2.c tests/main.c -tests/userprog/bad-write2_SRC = tests/userprog/bad-write2.c tests/main.c -tests/userprog/bad-jump2_SRC = tests/userprog/bad-jump2.c tests/main.c + tests/userprog/sc-boundary_SRC = tests/userprog/sc-boundary.c \ tests/userprog/boundary.c tests/main.c tests/userprog/sc-boundary-2_SRC = tests/userprog/sc-boundary-2.c \ @@ -86,16 +83,13 @@ tests/userprog/wait-bad-pid_SRC = tests/userprog/wait-bad-pid.c tests/main.c tests/userprog/multi-recurse_SRC = tests/userprog/multi-recurse.c tests/userprog/multi-child-fd_SRC = tests/userprog/multi-child-fd.c \ tests/main.c -tests/userprog/rox-simple_SRC = tests/userprog/rox-simple.c tests/main.c -tests/userprog/rox-child_SRC = tests/userprog/rox-child.c tests/main.c -tests/userprog/rox-multichild_SRC = tests/userprog/rox-multichild.c \ -tests/main.c + tests/userprog/child-simple_SRC = tests/userprog/child-simple.c tests/userprog/child-args_SRC = tests/userprog/args.c tests/userprog/child-bad_SRC = tests/userprog/child-bad.c tests/main.c tests/userprog/child-close_SRC = tests/userprog/child-close.c -tests/userprog/child-rox_SRC = tests/userprog/child-rox.c + $(foreach prog,$(tests/userprog_PROGS),$(eval $(prog)_SRC += tests/lib.c)) @@ -128,5 +122,3 @@ tests/userprog/wait-twice_PUTFILES += tests/userprog/child-simple tests/userprog/exec-arg_PUTFILES += tests/userprog/child-args tests/userprog/multi-child-fd_PUTFILES += tests/userprog/child-close tests/userprog/wait-killed_PUTFILES += tests/userprog/child-bad -tests/userprog/rox-child_PUTFILES += tests/userprog/child-rox -tests/userprog/rox-multichild_PUTFILES += tests/userprog/child-rox |
