[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-tests
target, for two rasons:In particular, the
ParameterFixupTests.XmlDeclaration_FixedUpFromDocumentation()
testfrom
Xamarin.Android.Tools.Bytecode-Tests.dll
attempts to readAndroid documentation from
$ANDROID_SDK_PATH
to 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-tests
target which runs the Java.Interop unittests, copying their test output into the same directory that the
other
TestResult-*.xml
files are placed, so that Jenkins can pickthem up for display.
Within the
make run-ji-tests
target, export theANDROID_SDK_PATH
environment variable so that all the
Xamarin.Android.Tools.Bytecode-Tests.dll
tests can execute.Which introduces one problem: the
Xamarin.Android.Tools.Bytecode-Tests.dll
tests require that$ANDROID_SDK_PATH
contain documentation...which we're not currentlyinstalling.
Result: the
ParameterFixupTest
tests fail. :-(Fix this conundrum by instaslling
docs-24_r01.zip
within$(AndroidSdkDirectory)
, allowing the tests to execute as intended.