aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/klaar/Make.tests
blob: 66b097a7bd2e586627c079256414fceefad9c3cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- makefile -*-

tests/%.output: FSDISK = 2
tests/%.output: PUTFILES = $(filter-out os.dsk, $^)

tests/klaar_TESTS = $(addprefix tests/klaar/,read-bad-buf low-mem \
exec-corrupt)

tests/klaar_PROGS = $(tests/klaar_TESTS) $(addprefix \
tests/klaar/,child-simple)

tests/klaar/read-bad-buf_SRC = tests/klaar/read-bad-buf.c tests/main.c
tests/klaar/low-mem_SRC = tests/klaar/low-mem.c tests/main.c
tests/klaar/exec-corrupt_SRC += tests/klaar/exec-corrupt.c tests/main.c

tests/klaar/child-simple_SRC = tests/klaar/child-simple.c

$(foreach prog,$(tests/klaar_PROGS),$(eval $(prog)_SRC += tests/lib.c))

tests/klaar/read-bad-buf_PUTFILES += tests/klaar/sample.txt
tests/klaar/low-mem_PUTFILES += tests/klaar/child-simple
tests/klaar/exec-corrupt_PUTFILES += tests/klaar/corrupt-elf

tests/klaar/low-mem.output: KERNELFLAGS = -tcl=3