Move problem 1-2 (join) into project 2 as the "wait" system call.
[pintos-anon] / tests / Makefile
index 4771be08e0f344a8032012da3f3e568e6185372a..2450e563b6d2cc0ee24f206dfcb5d4dee0a35dfe 100644 (file)
@@ -1,9 +1,9 @@
-TESTS = threads p1-1 p1-2 p1-3 list stdlib userprog p2 vm filesys
+TESTS = threads p1-1 p1-2 list stdlib userprog p2 vm filesys
 
 PATH := $(shell pwd)/../src/utils:$(PATH)
 
 all:
-       @echo "This Makefile has only `check' targets."
+       @echo "This Makefile has only \`check' targets."
 
 check:
        $(MAKE) -C .. distclean
@@ -67,13 +67,6 @@ p1-2: PROJECT = threads
 p1-2::
        $(mk-sandbox)
        $(apply-patch) ../solutions/p1-2.patch
-       $(run-tests) -d join.*
-       $(clean)
-
-p1-3: PROJECT = threads
-p1-3::
-       $(mk-sandbox)
-       $(apply-patch) ../solutions/p1-3.patch
        $(run-tests) -d priority.*
        $(clean)
 
@@ -90,8 +83,7 @@ userprog: PROJECT = userprog
 userprog::
        $(prep-grading)
        $(mk-sandbox)
-       $(apply-patch) ../solutions/p1-2.patch
-       echo '#define THREAD_JOIN_IMPLEMENTED 1' > $@/pintos/src/constants.h
+       $(apply-patch) ../solutions/p2-null.patch
        $(run-tests) null
        $(clean)