Commit Graph

11 Commits

Author SHA1 Message Date
Treehugger Robot 99b18c7fd9 Merge "Revert "Add our integration tests to cts"" 2022-02-07 17:19:33 +00:00
Treehugger Robot 5f6e4ef8ea Merge "Remove unnecessary kernel modules" 2022-02-07 15:56:38 +00:00
Jiyong Park 70bf068c9f Revert "Add our integration tests to cts"
This reverts commit a7351654f4.

Reason for revert: Failing google_required_freeze/test-mapping-presubmit/vendor_img_cf_x86_rvc b/218303240
Test: N/A

Change-Id: I5691376a3e8cb8d7455222f73f965a7bca01b707
2022-02-08 00:18:00 +09:00
Jiyong Park a7351654f4 Add our integration tests to cts
Note: per_testcase_directory: true is added to the two tests sharing
MicrodroidTestApp as a support file. This is needed to avoid having
duplicated install rules for the app file. Without that, we hit

build/make/core/main.mk:1430: error: overriding commands for target
`out/host/linux-x86/cts/android-cts/testcases/MicrodroidTestApp.apk',
previously defined at build/make/core/main.mk:1430

Bug: 204979196
Test: check android-cts-tests_list.zip in the test_suites_[arm64|x86_64]
targets to see if the added tests are here.

Change-Id: Idcea518db04407da993d866b114f17f90be20209
2022-02-07 15:20:02 +09:00
Jiyong Park b54646f8a2 Remove unnecessary kernel modules
... for memory efficiency and better security

Bug: 217752858
Test: run microdroid
Compare `cat /proc/meminfo  | grep MemFree` before and after this change
131800 kB -> 133668 kb (x86_64)
141312 kb -> 145656 kb (arm64)

Change-Id: Iea13ca857aa007b8331372b828692e38e8196b7f
2022-02-07 14:00:30 +09:00
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