[Aidl-Tests] Add some unit tests and infrastructure for XAT.Aidl. #5756
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.
Context: #5726
We have someone willing to contribute fixes for
Xamarin.Android.Tools.Aidl.dll
(yay!). However, we no longer haveany expertise with AIDL available on the team, and there are no unit
tests for this area. This makes us very reluctant to make changes
which could potentially break the currently working aspects of AIDL.
Add a new
tests/Xamarin.Android.Tools.Aidl-Tests
unit test projectand seed it with a few examples from our repo and a few large examples
from other OSS repos.
Note: this does not mean that the behavior tested by these tests is
necessarily correct. It simply reflects what the code does today,
in order that we can see any changes made by future PR's.
~~ Note ~~
The format for test data files is delimited by 4 pound signs as:
Test results can be generated by:
GENERATE_OUTPUT
define at the top ofAidlCompilerTestBase.cs
bin/TestData
will now contain the test outputwhich can be copied back to the original test data file.