From 5069406f364ec47bbfd52bd11e896176134a8e2f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 20 Jun 2005 20:31:32 +0000 Subject: [PATCH] Revise. --- tests/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 38751cd..b5ff710 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -21,6 +21,10 @@ cd $@/src && $(MAKE) clean $(SUBMAKEFLAGS) endef define run-tests +cd $@/src/$(PROJECT) && make check +endef + +define run-tests-grade cd $@/src/$(PROJECT) && make check && make grade endef @@ -53,26 +57,26 @@ p1: PROJECT = threads p1:: $(mk-sandbox) $(apply-patch) < ../solutions/p1.patch - $(run-tests) + $(run-tests-grade) $(clean) p2: PROJECT = userprog p2:: $(mk-sandbox) $(apply-patch) < ../solutions/p2.patch - $(run-tests) + $(run-tests-grade) $(clean) p3: PROJECT = vm p3:: $(mk-sandbox) $(apply-patch) < ../solutions/p3.patch - $(run-tests) + $(run-tests-grade) $(clean) p4: PROJECT = filesys p4:: $(mk-sandbox) $(apply-patch) < ../solutions/p4.patch - $(run-tests) + $(run-tests-grade) $(clean) -- 2.30.2