Граф коммитов

7 Коммитов

Автор SHA1 Сообщение Дата
Radek Doulik 064840b47d [build] Remove autogenerated resource files and clean a bit (#831)
And add them to .gitignore. It will make the 'git diff' output
lucider.

Added few more performance measurement files to .gitignore as well
2017-09-08 11:26:12 -04:00
Radek Doulik 09ba1ee45d [tests] Xamarin.Forms-Performance-Integration test (#818)
Add `tests/Xamarin.Forms-Performance-Integration` to measure UI app
startup times.

Add a new `<RunUITests/>` task to start an app/activity.

Rename `@(UnitTestApk)` to `@(TestApk)`, as it also handles UI tests.

Update `<ProcessLogcatTiming/>` to be able to process the
`adb logcat` output of started Android Activity processes.
2017-09-07 12:35:08 -04:00
Radek Doulik 320d773824 [tests] Merge runtime test timing measurements into one plot (#815)
- also dump logcat only once per target run, we don't need to
    differentiate it for various tests, as they are batched over one
    emulator instance
2017-09-05 15:17:00 -04:00
Jonathan Pryor 8a703c69d2 [Xamarin.Android.Build.Tasks] Restore @(AndroidEnvironment) (#742)
We have a failure within
`EnvironmentTests.EnvironmentVariablesFromLibraryProjectsAreMerged`
(commit ea6b9b45): the `@(AndroidEnvironment)` from the library
project is not merged into the App `.apk`:

	Expected: null
	But was:  "Well, hello there!"

(The arguments were in the wrong order. Oops.)

The cause for this is due to `<ResolveLibraryProjectImports/>`
attempts to avoid duplicate work; [from the build log][0]

[0]: https://jenkins.mono-project.com/view/Xamarin.Android/job/xamarin-android/526/consoleText

	Task "ResolveLibraryProjectImports"
	  Assemblies:
	    .../xamarin-android/bin/TestDebug//LibraryResources.dll
	  Skipped resource lookup for .../xamarin-android/bin/TestDebug/LibraryResources.dll: extracted files are up to date
		ResolvedEnvironmentFiles:

*Because* `LibraryResources.dll` was skipped, the
`@(AndroidEnvironment)` entries from `LibraryResources.dll` were also
skipped! Doh!

Update the `<ResolveLibraryProjectImports/>` task so that when
resource extraction for an assembly is skipped, we remember to add the
already-extracted `@(AndroidEnvironment)` values.
2017-08-11 15:41:56 -04:00
Jonathan Pryor ea6b9b4552 [Xamarin.Android.Build.Tasks] Preserve @(AndroidEnvironment) (#729)
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=58673

The `@(AndroidEnvironment)` Build action is *supposed to be* usable on
Library projects. When used within a Library project, the
`@(AndroidEnvironment)` files are embedded into the assembly, and
during the App project build they are extracted and merged into the
`environment` file within the `.apk`.

Unfortunately, this behavior was potentially broken in commit
86888322, as if the Library assembly also contains the
`__AndroidLibraryProjects__.zip` embedded resource (e.g. the Library
project has a `@(AndroidResource)` Build action), the extraction of
the `__AndroidLibraryProjects__.zip` resource will inadvertently
remove the previously extracted `@(AndroidEnvironment)` files.

Oops.

Alter the paths provided to `Files.ExtractAll()` -- which was
directly responsible for deleting the environment files -- so that it
won't delete the environment files.

Update the `tests/locales` on-device unit tests to make use of a
Library-provided `@(AndroidEnvironment)`, and add a unit test which
reads the environment variable and asserts that the environment
variable has the expected value.
2017-08-10 14:46:23 -04:00
Jonathan Pryor 6e48bca5e7 [tests] Import tests/codegen from monodroid/5fc80f27
`tests/CodeGen-Binding` is a full-stack integration jack for JNI
bindings, ensuring that `generator.exe` and company work as expected.
It is *somewhat* duplicative of the Java.Interop `generator` unit
tests, except these are actually executed, while the `generator` tests
are *not* executed.

`tests/CodeGen-MkBundle` is a test for the "Bundle assemblies into
native code" feature, but isn't part of the "proper" unit test
infrastructure, as it doesn't yet contain an `Instrumentation` type.

TODO: Add an `Instrumentation` type to `tests/CodeGen-MkBundle`.
2016-12-01 09:09:44 -05:00
Jonathan Pryor 69c35c4552 [tests] Import tests/locale from monodroid/2ed1f0f6 (#316)
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=4902
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=15214
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=24742

Add tests around use of satellite assemblies and unit tests (!).
2016-11-25 01:05:45 +09:00