1 TESTS = threads p1 userprog p2 vm p3 filesys p4
3 PATH := $(shell pwd)/../src/utils:$(PATH)
6 @echo "This Makefile has only \`check' targets."
9 $(MAKE) -C .. distclean
10 for d in $(TESTS); do $(MAKE) $$d || exit 1; done
11 @echo All tests passed.
19 rm -rf $@ && mkdir $@ && cp -R ../src $@/src
20 cd $@/src && $(MAKE) clean $(SUBMAKEFLAGS)
24 cd $@/src/$(PROJECT) && make check
27 define run-tests-grade
28 cd $@/src/$(PROJECT) && make check && make grade
32 cd $@/src/$(PROJECT) && make
48 $(run-tests) TESTS=tests/threads/alarm-single
59 $(apply-patch) < ../solutions/p1.patch
63 p2: PROJECT = userprog
66 $(apply-patch) < ../solutions/p2.patch
73 $(apply-patch) < ../solutions/p3.patch
80 $(apply-patch) < ../solutions/p4.patch