Merge remote-tracking branch 'upstream/master' into binary-artifacts

This commit is contained in:
Alexander Köplinger 2019-05-28 02:01:28 +02:00
Родитель 438813fce3 1d5fe7118e
Коммит e9e7b835bd
4 изменённых файлов: 19 добавлений и 2 удалений

Просмотреть файл

@ -34,4 +34,13 @@ public partial class AppDelegate : UIApplicationDelegate
UIApplication.Main (args, null, typeof (AppDelegate)); UIApplication.Main (args, null, typeof (AppDelegate));
} }
} }
#else
public static partial class TestLoader {
static partial void AddTestAssembliesImpl (BaseTouchRunner runner)
{
runner.Add (typeof (Xamarin.BindingTests2.BindingTest).Assembly);
runner.Add (typeof (Xamarin.BindingTests.ProtocolTest).Assembly);
}
}
#endif // !__WATCHOS__ #endif // !__WATCHOS__

Просмотреть файл

@ -685,6 +685,11 @@ namespace Introspection {
return !TestRuntime.CheckXcodeVersion (8, 0); return !TestRuntime.CheckXcodeVersion (8, 0);
case "HMLocationEvent": case "HMLocationEvent":
return !TestRuntime.CheckXcodeVersion (9, 0); return !TestRuntime.CheckXcodeVersion (9, 0);
#if __WATCHOS__
case "INParameter":
// NSCopying conformance added in Xcode 10
return !TestRuntime.CheckXcodeVersion (10, 0);
#endif
} }
break; break;

Просмотреть файл

@ -371,7 +371,7 @@ namespace xharness
} }
var passed = total - errors - failed - notRun - inconclusive - ignored - skipped - invalid; var passed = total - errors - failed - notRun - inconclusive - ignored - skipped - invalid;
var resultLine = $"Tests run: {total} Passed: {passed} Inconclusive: {inconclusive} Failed: {failed + errors} Ignored: {ignored + skipped + invalid}"; var resultLine = $"Tests run: {total} Passed: {passed} Inconclusive: {inconclusive} Failed: {failed + errors} Ignored: {ignored + skipped + invalid}";
return (resultLine, errors != 0 || failed != 0); return (resultLine, total == 0 || errors != 0 || failed != 0);
} }
(string resultLine, bool failed) ParseNUnitXml (StreamReader stream, StreamWriter writer) (string resultLine, bool failed) ParseNUnitXml (StreamReader stream, StreamWriter writer)
@ -434,7 +434,7 @@ namespace xharness
string resultLine = $"Tests run: {total} Passed: {passed} Inconclusive: {inconclusive} Failed: {failed + errors} Ignored: {ignored + skipped + invalid}"; string resultLine = $"Tests run: {total} Passed: {passed} Inconclusive: {inconclusive} Failed: {failed + errors} Ignored: {ignored + skipped + invalid}";
writer.WriteLine (resultLine); writer.WriteLine (resultLine);
return (resultLine, errors != 0 || failed != 0); return (resultLine, total == 0 | errors != 0 || failed != 0);
} }
(string resultLine, bool failed, bool crashed) ParseResult (Log listener_log, bool timed_out, bool crashed) (string resultLine, bool failed, bool crashed) ParseResult (Log listener_log, bool timed_out, bool crashed)

Просмотреть файл

@ -141,6 +141,9 @@ namespace BCLTestImporter {
"monotouch_Mono.CodeContracts_test.dll", // not supported by xamarin "monotouch_Mono.CodeContracts_test.dll", // not supported by xamarin
"monotouch_Novell.Directory.Ldap_test.dll", // not supported by xamarin "monotouch_Novell.Directory.Ldap_test.dll", // not supported by xamarin
"monotouch_Mono.Profiler.Log_xunit-test.dll", // special tests that need an extra app to connect as a profiler "monotouch_Mono.Profiler.Log_xunit-test.dll", // special tests that need an extra app to connect as a profiler
"monotouch_System.ComponentModel.Composition_xunit-test.dll", // has no test classes, all test have been removed by mono
"monotouch_System.Net.Http.FunctionalTests_xunit-test.dll", // has no test classes, all test have been removed by mono
"monotouch_System.Runtime.Serialization_xunit-test.dll", // has no test classes, all test have been removed by mono
}; };
// list of assemblies that are going to be ignored, any project with an assemblies that is ignored will // list of assemblies that are going to be ignored, any project with an assemblies that is ignored will