xamarin-macios/tests/xtro-sharpie
Rolf Bjarne Kvinge ecfdea9508 [tests] Import 2016-05-26 15:06:52 +02:00
..
.gitignore [tests] Import 2016-05-26 15:06:52 +02:00
DesignatedInitializerCheck.cs [tests] Import 2016-05-26 15:06:52 +02:00
DllImportCheck.cs [tests] Import 2016-05-26 15:06:52 +02:00
EnumCheck.cs [tests] Import 2016-05-26 15:06:52 +02:00
FieldCheck.cs [tests] Import 2016-05-26 15:06:52 +02:00
Helpers.cs [tests] Import 2016-05-26 15:06:52 +02:00
Makefile [tests] Import 2016-05-26 15:06:52 +02:00
ObjCInterfaceCheck.cs [tests] Import 2016-05-26 15:06:52 +02:00
ObjCProtocolCheck.cs [tests] Import 2016-05-26 15:06:52 +02:00
Program.cs [tests] Import 2016-05-26 15:06:52 +02:00
README.md [tests] Import 2016-05-26 15:06:52 +02:00
Runner.cs [tests] Import 2016-05-26 15:06:52 +02:00
SelectorCheck.cs [tests] Import 2016-05-26 15:06:52 +02:00
SharpieEntryPoint.cs [tests] Import 2016-05-26 15:06:52 +02:00
common.ignore [tests] Import 2016-05-26 15:06:52 +02:00
common.pending [tests] Import 2016-05-26 15:06:52 +02:00
ios.ignore [tests] Import 2016-05-26 15:06:52 +02:00
ios.pending [tests] Import 2016-05-26 15:06:52 +02:00
osx.ignore [tests] Import 2016-05-26 15:06:52 +02:00
osx.pending [tests] Import 2016-05-26 15:06:52 +02:00
packages.config [tests] Import 2016-05-26 15:06:52 +02:00
tvos.ignore [tests] Import 2016-05-26 15:06:52 +02:00
tvos.pending [tests] Import 2016-05-26 15:06:52 +02:00
watchos.ignore [tests] Import 2016-05-26 15:06:52 +02:00
watchos.pending [tests] Import 2016-05-26 15:06:52 +02:00
xtro-plugin.csproj [tests] Import 2016-05-26 15:06:52 +02:00
xtro-sharpie.csproj [tests] Import 2016-05-26 15:06:52 +02:00
xtro-sharpie.sln [tests] Import 2016-05-26 15:06:52 +02:00

README.md

Extrospection Tests based on ObjectiveSharpie

Goals

  • Compare our bindings with the information available Apple's C/ObjC header files

Design

  • The runner visit the provided (managed) assembly first, then it visit the precompiled headers (pch file) for an SDK (e.g. iOS or OSX);

  • Rules can be called at any steps to gather data and or report issues. Rules are also called at the end of the visits;

  • Rules should be kept simple and the external files, e.g. known-issues, should be used to track special cases, along with comments with our decisions, i.e. why we tolarate them. That will ease code sharing across existing and new platforms;

Rules

Existing

Those should be good enough to be execute on the bots on each build.

1) classify: takes the output from either 'sharpie' or 'all' (ios.results and osx.results files) classifies them in [ios|osx|common].[ignore|pending|unclassified] files
	NOTE: 	to add an entry to the ignore and pending files, just copy the entire line from the unclassified file into them and add your own comments 
		(why we are not binding/fixing that? who is going to bind this? etc) 

Work In Progress

E.g. rules might be too noisy and require refinement, either in code or in external files.

Ideas

Anything we do not check but for which data is available.

Notes

  • To develop you need a checkout of ObjectiveSharpie

  • clang is only built for 64bits so you need a 64bits mono to execute the tool. That might change to reuse Sharpie own runtime once it's installed on every bots;

  • To be able to use XS to build/debug you need to set your runtime to a mono that was compiled with 64bits support. The currenylu shipping Mono version (4.0) does not ship with a 64bits runtime for OSX;