* TestRunner.cs (Main): Exit with non-zero on regressions.
I had BINFMT_MISC that supported executing mono binaries.
No wonder it worked for me.
svn path=/trunk/mcs/; revision=41931
* Makefile (test-local): Depend on TestRunner-$(PROFILE).cs.
(run-mcs-tests): Clean up. Use profile specific test runner.
+ Disable TestRunner on net_2_0 profile.
* TestRunner.cs (ProcessTester): Redirect stdout too.
(Tester.Log, Tester.LogLine): New. Replacements for Console.Write
and Console.WriteLine that also log to files.
(Tester.Main): Add new command line argument for log file name.
Use the name of the compiler to select tests rather than "1".
+ Exit with non-zero on regressions.
2005-03-16 Marek Safar <marek.safar@seznam.cz>
TEST_PATTERN = 'cs*.cs'
endif
-# ifeq (net_2_0, $(PROFILE))
-# run-mcs-tests:
-# -rm -f gmcs.log
-# @./do-tests.pl gmcs '$(CSCOMPILE)' "cs*.cs"
-# -rm -f generics.log
-# @./do-tests.pl generics '$(GENERICS_COMPILE)' "gcs*.cs"
-# else
+ifeq (net_2_0, $(PROFILE))
+run-mcs-tests:
+ -rm -f gmcs.log
+ @./do-tests.pl gmcs '$(CSCOMPILE)' "cs*.cs"
+ -rm -f generics.log
+ @./do-tests.pl generics '$(GENERICS_COMPILE)' "gcs*.cs"
+else
run-mcs-tests: TestRunner-$(PROFILE).exe
$(with_mono_path) $(RUNTIME) TestRunner-$(PROFILE).exe $(COMPILER_NAME) $(COMPILER) known-issues-$(COMPILER_NAME) $(COMPILER_NAME).log
-#endif
+endif
clean-local:
rm -f *.exe *.dll *.log *.mdb dummy.xml *.junk
log_file.Close ();
- return 0;
+ return regression.Count == 0 ? 0 : 1;
}
static void ReadWrongErrors (string file)