(test_sourcefile, btest_sourcefile): Define in terms of
$(test_lib) or $(btest_lib) only if they're overriden.
(test_response, test_makefrag): Remove redundant $(PROFILE) in name.
+ (run-test-lib, run-btest-lib): Unify. Give profile-specific name
+ for output XML file.
* rules.make (dist-default): Handle any of Makefile, makefile, or
GNUmakefile being present.
* profiles/net_2_0.make (TEST_RUNTIME): Don't define.
echo "stamp" >$@
endif
+test_assemblies :=
+
ifdef HAVE_CS_TESTS
+test_assemblies += $(test_lib)
+endif
-test-local: $(test_lib)
+ifdef HAVE_VB_TESTS
+test_assemblies += $(btest_lib)
+endif
+ifdef test_assemblies
+test-local: $(test_assemblies)
run-test-local: run-test-lib
+run-test-ondotnet-local: run-test-ondotnet-lib
run-test-lib: test-local
- $(TEST_RUNTIME) $(TEST_HARNESS) $(test_lib)
-
-run-test-ondotnet-local: run-test-ondotnet-lib
+ $(TEST_RUNTIME) $(TEST_HARNESS) /xml:TestResult-$(PROFILE).xml $(test_assemblies)
run-test-ondotnet-lib: test-local
- $(TEST_HARNESS) $(test_lib)
-endif
-
-ifdef HAVE_VB_TESTS
-
-test-local: $(btest_lib)
-
-run-test-local: run-btest-lib
-
-run-btest-lib: test-local
- $(TEST_RUNTIME) $(TEST_HARNESS) $(btest_lib)
-
-run-test-ondotnet-local: run-btest-ondotnet-lib
-
-run-btest-ondotnet-lib: test-local
- $(TEST_HARNESS) $(btest_lib)
-
+ $(TEST_HARNESS) /xml:TestResult-ondotnet-$(PROFILE).xml $(test_assemblies)
endif
DISTFILES = $(sourcefile) $(test_sourcefile) $(EXTRA_DISTFILES)