Add stdio test.
[pintos-anon] / tests / Makefile
index af04b414c667e9520a6d1943b5e32a69cd1a4105..ce215b3fd00247464df04e20264e2cd663fe99c6 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 stdio 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,18 +67,11 @@ 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)
 
 list: PROJECT = threads
-list stdlib::
+list stdlib stdio::
        $(mk-sandbox)
        cp ../src/tests/threads/$@.c $@/pintos/src/threads/test.c
        $(MAKE) -C $@/pintos/src/threads -s
@@ -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)