X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2FMakefile;h=efea7a5078db3e7da0cb6621a588f4f0ed9b313f;hb=aec5ab9564274109b081fe803bc69259497a335d;hp=b084e95bae2e72ef954c763a4ae968701472f100;hpb=b70589c7e69919f9a411f02f512bd0c6e483d1a4;p=pintos-anon diff --git a/tests/Makefile b/tests/Makefile index b084e95..efea7a5 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,5 +1,10 @@ TESTS = threads p1-1 p1-2 p1-3 list stdlib userprog p2 vm filesys +PATH := $(shell pwd)/../src/utils:$(PATH) + +all: + @echo "This Makefile has only \`check' targets." + check: $(MAKE) -C .. distclean for d in $(TESTS); do $(MAKE) $$d || exit 1; done @@ -78,7 +83,7 @@ list stdlib:: cp ../src/tests/threads/$@.c $@/pintos/src/threads/test.c $(MAKE) -C $@/pintos/src/threads -s -(cd $@/pintos/src/threads/build && pintos -v run -q) | tee $@/output - grep -q '$@: PASS' $@/output && ! grep -q 'FAIL' $@/output + grep -q '$@: PASS' $@/output $(clean) userprog: PROJECT = userprog @@ -86,7 +91,6 @@ userprog:: $(prep-grading) $(mk-sandbox) $(apply-patch) ../solutions/p1-2.patch - echo '#define THREAD_JOIN_IMPLEMENTED 1' > $@/pintos/src/constants.h $(run-tests) null $(clean)