Commit Graph

6 Commits

Author SHA1 Message Date
Jiyong Park 5c71cac1f8 Put all our tests to general-tests
... because the tests can be built for the generic test_suites target.

Bug: N/A
Test: watch TH
Change-Id: I5a60723a964ac3b8fb92b395f544a9b84f49e9e7
2022-02-04 11:49:31 +09:00
Andrew Walbran 9d39f30c0e Use generated wrappers for system properties.
Bug: 216639283
Test: Set properties manually and then `atest VirtualizationTestCases`.
Change-Id: I22498d8a9783bac3004900df398a899697bb8672
2022-02-02 17:51:43 +00:00
Andrew Walbran 3e73a098c6 Run TestVsock with and without protected mode.
The protected version is only run if the kernel supports pKVM.

Bug: 181615964
Test: atest VirtualizationTestCases
Change-Id: I02fcead96b84b44f3138162a525f709c9f59ec73
2021-06-25 14:30:36 +00:00
Andrew Walbran f6bf686c97 Rename VirtManager to VirtualizationService.
Bug: 188042280
Test: atest VirtualizationTestCases
Change-Id: I15f3f91e464f52d1b1fd47b1290846b1d21fa665
2021-05-26 12:27:37 +00:00
Andrew Walbran 3a5a921ef7 Pass file descriptors rather than filenames to Virt Manager.
This requires using a parcelable rather than a JSON file for the config.

Bug: 187181124
Test: atest VirtualizationTestCases
Change-Id: I1636010f5ed55da165f5acd82f1bd8b924e09b41
2021-05-18 17:33:49 +00:00
David Brazdil 49f8a4db09 Convert Vsock test to device test
Vsock test depends on two process groups running simultanously:
VirtManager+CrosVM and vsock_server. This was orchestrated by a Java
test runner running on the PC. With all the recent changes to the test,
it is now possible to run the former from AndroidTest.xml (and
eventually that will be completely removed) and convert vsock_server to
a GTest binary installed and invoked directly by TradeFed.

A common GTest class VirtualizationTest is added for hosting individual
test cases and sharing common code. Vsock test is converted to a single
TEST_F instance.

The test target is now called VirtualizationTestCases (dropped Host).

Bug: 181615964
Test: atest VirtualizationTestCases
Change-Id: I5a64d25ecc8f278250cfc3b196b8910ca8b8af52
2021-03-04 15:05:46 +00:00