$(eval $(prog)_SRC += tests/main.c))
$(foreach prog,$(tests/filesys/extended_TESTS), \
$(eval $(prog)_PUTFILES += tests/filesys/extended/tar))
-$(foreach test,$(tests/filesys/extended_TESTS), \
- $(eval $(test).output: FSDISK = tmp.dsk))
+# The version of GNU make 3.80 on vine barfs if this is split at
+# the last comma.
+$(foreach test,$(tests/filesys/extended_TESTS),$(eval $(test).output: FSDISK = tmp.dsk))
tests/filesys/extended/dir-mk-tree_SRC += tests/filesys/extended/mk-tree.c
tests/filesys/extended/dir-rm-tree_SRC += tests/filesys/extended/mk-tree.c
GETTIMEOUT = 60
-GETCMD = pintos -v -T $(GETTIMEOUT)
+GETCMD = pintos -v -k -T $(GETTIMEOUT)
GETCMD += $(PINTOSOPTS)
GETCMD += $(SIMULATOR)
GETCMD += --fs-disk=$(FSDISK)
GETCMD += -- -q
GETCMD += $(KERNELFLAGS)
GETCMD += run 'tar fs.tar /'
-GETCMD += 2>> $(TEST).get-errors
-GETCMD += $(if $(VERBOSE),|tee -a,>>) $(TEST).get-output
+GETCMD += < /dev/null
+GETCMD += 2> $(TEST).get-errors $(if $(VERBOSE),|tee,>) $(TEST).get-output
tests/filesys/extended/%.output: os.dsk
rm -f tmp.dsk
$(TESTCMD)
$(GETCMD)
rm -f tmp.dsk
+
+TARS = $(addsuffix .tar,$(tests/filesys/extended_TESTS))
+GET_OUTPUTS = $(addsuffix .get-output,$(tests/filesys/extended_TESTS))
+GET_ERRORS = $(addsuffix .get-errors,$(tests/filesys/extended_TESTS))
+
+clean::
+ rm -f $(TARS) $(GET_OUTPUTS) $(GET_ERRORS)