--- Makefile	2012-07-27 00:26:18.404538502 +0200
+++ myMakefile	2012-07-27 00:26:05.770224500 +0200
@@ -704,6 +704,21 @@
 test-tcl: ${TCLTEST_EXE}
 	$(SHELL_ENV) ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl $(TESTFLAGS)
 
+all.tres:
+	touch $@
+
+%.tres: ../tests/%.test
+	$(SHELL_ENV) ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl -f $(subst ../tests/,,$^) $(TESTFLAGS) > $@ 2> $@.err
+
+
+ALL_TESTS = $(subst ../tests/,,$(wildcard ../tests/*.test))
+
+ALL_TRES = $(subst .test,.tres,$(ALL_TESTS))
+
+test-tcl-parallel: ${TCLTEST_EXE} $(ALL_TRES)
+	grep '^all.tcl' $(ALL_TRES) > parallel.res
+
+
 gdb-test: ${TCLTEST_EXE}
 	@echo "set env LD_LIBRARY_PATH=`pwd`:$${LD_LIBRARY_PATH}" > gdb.run
 	@echo "set env TCL_LIBRARY=${TCL_BUILDTIME_LIBRARY}" >> gdb.run
