make loop counter volatile to prevent gcc4.1 from optimizing away entire loop body
[pintos-anon] / tests / Makefile
index 5d53e286b71c3e49a657e19350003631d8dfba8f..f8cd3579f69aad5289f9d69fa9ec96e3076c0f29 100644 (file)
@@ -1,4 +1,4 @@
-TESTS = threads p1 userprog p2 vm p3 filesys p4 
+TESTS = examples threads p1 userprog p2 vm p3 filesys p4
 
 PATH := $(shell pwd)/../src/utils:$(PATH)
 
@@ -19,7 +19,7 @@ cd $@/src && $(MAKE) -s clean
 endef
 
 define run-tests
-cd $@/src/$(PROJECT) && $(MAKE) check PINTOSOPTS=$(PINTOSOPTS)
+cd $@/src/$(PROJECT) && time $(MAKE) check
 endef
 
 define grade-tests
@@ -52,13 +52,12 @@ threads::
        $(compile)
        $(run-tests) TESTS=tests/threads/alarm-single
        $(clean)
-userprog vm filesys::
+examples userprog vm filesys::
        $(mk-sandbox)
        $(compile)
        $(clean)
 
 # Tests for the reference solutions.
-p2 p3 p4: PINTOSOPTS = --qemu
 p1 p2 p3 p4::
        $(mk-sandbox)
        $(apply-patch)