[tests] Run the Java.Interop unit tests #565
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We'd like to run the Java.Interop unit tests as part of the
xamarin-android
make run-all-teststarget, for two rasons:In particular, the
ParameterFixupTests.XmlDeclaration_FixedUpFromDocumentation()testfrom
Xamarin.Android.Tools.Bytecode-Tests.dllattempts to readAndroid documentation from
$ANDROID_SDK_PATHto test parameter namefixups.
However, Java.Interop doesn't install -- and thus can't readily
require -- an Android SDK, meaning this test is never executed as part
of the Java.Interop Jenkins process.
That test can be readily executed in xamarin-android, as it does
install an Android SDK, and thus its presence can be assumed.
Add a new
make run-ji-teststarget which runs the Java.Interop unittests, copying their test output into the same directory that the
other
TestResult-*.xmlfiles are placed, so that Jenkins can pickthem up for display.
Within the
make run-ji-teststarget, export theANDROID_SDK_PATHenvironment variable so that all the
Xamarin.Android.Tools.Bytecode-Tests.dlltests can execute.Which introduces one problem: the
Xamarin.Android.Tools.Bytecode-Tests.dlltests require that$ANDROID_SDK_PATHcontain documentation...which we're not currentlyinstalling.
Result: the
ParameterFixupTesttests fail. :-(Fix this conundrum by instaslling
docs-24_r01.zipwithin$(AndroidSdkDirectory), allowing the tests to execute as intended.