Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / tests / vm / Make.tests
1 # -*- makefile -*-
2
3 PINTOSFLAGS += --swap-disk=4
4
5 tests/vm_TESTS = $(addprefix tests/vm/,pt-grow-stack pt-grow-pusha      \
6 pt-grow-bad pt-big-stk-obj pt-bad-addr pt-bad-read pt-write-code        \
7 pt-write-code2 page-linear page-parallel page-merge-seq page-merge-par  \
8 page-shuffle mmap-read mmap-close mmap-unmap mmap-overlap mmap-twice    \
9 mmap-write mmap-exit mmap-shuffle mmap-bad-fd mmap-clean mmap-inherit   \
10 mmap-misalign mmap-null mmap-over-code mmap-over-data mmap-over-stk     \
11 mmap-remove mmap-zero)
12
13 tests/vm_PROGS = $(tests/vm_TESTS) $(addprefix tests/vm/,child-linear   \
14 child-sort child-mm-wrt child-inherit)
15
16 tests/vm/pt-grow-stack_SRC = tests/vm/pt-grow-stack.c tests/arc4.c      \
17 tests/cksum.c tests/lib.c tests/main.c
18 tests/vm/pt-grow-pusha_SRC = tests/vm/pt-grow-pusha.c tests/lib.c       \
19 tests/main.c
20 tests/vm/pt-grow-bad_SRC = tests/vm/pt-grow-bad.c tests/lib.c tests/main.c
21 tests/vm/pt-big-stk-obj_SRC = tests/vm/pt-big-stk-obj.c tests/arc4.c    \
22 tests/cksum.c tests/lib.c tests/main.c
23 tests/vm/pt-bad-addr_SRC = tests/vm/pt-bad-addr.c tests/lib.c tests/main.c
24 tests/vm/pt-bad-read_SRC = tests/vm/pt-bad-read.c tests/lib.c tests/main.c
25 tests/vm/pt-write-code_SRC = tests/vm/pt-write-code.c tests/lib.c tests/main.c
26 tests/vm/pt-write-code2_SRC = tests/vm/pt-write-code-2.c tests/lib.c tests/main.c
27 tests/vm/page-linear_SRC = tests/vm/page-linear.c tests/arc4.c  \
28 tests/lib.c tests/main.c
29 tests/vm/page-parallel_SRC = tests/vm/page-parallel.c tests/lib.c tests/main.c
30 tests/vm/page-merge-seq_SRC = tests/vm/page-merge-seq.c tests/arc4.c    \
31 tests/lib.c tests/main.c
32 tests/vm/page-merge-par_SRC = tests/vm/page-merge-par.c tests/arc4.c    \
33 tests/lib.c tests/main.c
34 tests/vm/page-shuffle_SRC = tests/vm/page-shuffle.c tests/arc4.c        \
35 tests/cksum.c tests/lib.c tests/main.c
36 tests/vm/mmap-read_SRC = tests/vm/mmap-read.c tests/lib.c tests/main.c
37 tests/vm/mmap-close_SRC = tests/vm/mmap-close.c tests/lib.c tests/main.c
38 tests/vm/mmap-unmap_SRC = tests/vm/mmap-unmap.c tests/lib.c tests/main.c
39 tests/vm/mmap-overlap_SRC = tests/vm/mmap-overlap.c tests/lib.c tests/main.c
40 tests/vm/mmap-twice_SRC = tests/vm/mmap-twice.c tests/lib.c tests/main.c
41 tests/vm/mmap-write_SRC = tests/vm/mmap-write.c tests/lib.c tests/main.c
42 tests/vm/mmap-exit_SRC = tests/vm/mmap-exit.c tests/lib.c tests/main.c
43 tests/vm/mmap-shuffle_SRC = tests/vm/mmap-shuffle.c tests/arc4.c        \
44 tests/cksum.c tests/lib.c tests/main.c
45 tests/vm/mmap-bad-fd_SRC = tests/vm/mmap-bad-fd.c tests/lib.c tests/main.c
46 tests/vm/mmap-clean_SRC = tests/vm/mmap-clean.c tests/lib.c tests/main.c
47 tests/vm/mmap-inherit_SRC = tests/vm/mmap-inherit.c tests/lib.c tests/main.c
48 tests/vm/mmap-misalign_SRC = tests/vm/mmap-misalign.c tests/lib.c       \
49 tests/main.c
50 tests/vm/mmap-null_SRC = tests/vm/mmap-null.c tests/lib.c tests/main.c
51 tests/vm/mmap-over-code_SRC = tests/vm/mmap-over-code.c tests/lib.c     \
52 tests/main.c
53 tests/vm/mmap-over-data_SRC = tests/vm/mmap-over-data.c tests/lib.c     \
54 tests/main.c
55 tests/vm/mmap-over-stk_SRC = tests/vm/mmap-over-stk.c tests/lib.c tests/main.c
56 tests/vm/mmap-remove_SRC = tests/vm/mmap-remove.c tests/lib.c tests/main.c
57 tests/vm/mmap-zero_SRC = tests/vm/mmap-zero.c tests/lib.c tests/main.c
58
59 tests/vm/child-linear_SRC = tests/vm/child-linear.c tests/arc4.c tests/lib.c
60 tests/vm/child-sort_SRC = tests/vm/child-sort.c tests/lib.c
61 tests/vm/child-mm-wrt_SRC = tests/vm/child-mm-wrt.c tests/lib.c tests/main.c
62 tests/vm/child-inherit_SRC = tests/vm/child-inherit.c tests/lib.c tests/main.c
63
64 tests/vm/pt-bad-read_PUTFILES = tests/vm/sample.txt
65 tests/vm/pt-write-code2_PUTFILES = tests/vm/sample.txt
66 tests/vm/mmap-close_PUTFILES = tests/vm/sample.txt
67 tests/vm/mmap-read_PUTFILES = tests/vm/sample.txt
68 tests/vm/mmap-unmap_PUTFILES = tests/vm/sample.txt
69 tests/vm/mmap-twice_PUTFILES = tests/vm/sample.txt
70 tests/vm/mmap-overlap_PUTFILES = tests/vm/zeros
71 tests/vm/mmap-exit_PUTFILES = tests/vm/child-mm-wrt
72 tests/vm/page-parallel_PUTFILES = tests/vm/child-linear
73 tests/vm/page-merge-seq_PUTFILES = tests/vm/child-sort
74 tests/vm/page-merge-par_PUTFILES = tests/vm/child-sort
75 tests/vm/mmap-clean_PUTFILES = tests/vm/sample.txt
76 tests/vm/mmap-inherit_PUTFILES = tests/vm/sample.txt tests/vm/child-inherit
77 tests/vm/mmap-misalign_PUTFILES = tests/vm/sample.txt
78 tests/vm/mmap-null_PUTFILES = tests/vm/sample.txt
79 tests/vm/mmap-over-code_PUTFILES = tests/vm/sample.txt
80 tests/vm/mmap-over-data_PUTFILES = tests/vm/sample.txt
81 tests/vm/mmap-over-stk_PUTFILES = tests/vm/sample.txt
82 tests/vm/mmap-remove_PUTFILES = tests/vm/sample.txt
83
84 tests/vm/zeros:
85         dd if=/dev/zero of=$@ bs=1024 count=6
86
87
88
89