More tests: connectVsock, no debug

Add a test for VirtualMachine#connectVsock, to prove that raw vsock
communication between payload and host works.

Initially this wasn't working, and when I tried to diagnose that I was
getting no useful debug output.

So:

- I changed almost all the tests to run with DEBUG_LEVEL_FULL, apart
  from an explicit test for NONE.

- I modified testbinary to write to log (which we capture as part of
  the test) rather than cerr (which now goes nowhere). As a
  side-effect, this demonstrates that the payload can use NDK logging.

Also removed some redundant #includes, and a few other minor tweaks.

Bug: 244561836
Test: atest MicrodroidTests
Change-Id: Ie4e1312aded571acc70a66e9864a801851ed4b7e
3 files changed
tree: 95292c63b02e570011f976941db9937df74df06f
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. avmd/
  5. compos/
  6. demo/
  7. docs/
  8. encryptedstore/
  9. javalib/
  10. launcher/
  11. libs/
  12. microdroid/
  13. microdroid_manager/
  14. pvmfw/
  15. rialto/
  16. tests/
  17. virtualizationservice/
  18. vm/
  19. vm_payload/
  20. vmbase/
  21. vmclient/
  22. zipfuse/
  23. .clang-format
  24. .gitignore
  25. Android.bp
  26. OWNERS
  27. PREUPLOAD.cfg
  28. README.md
  29. TEST_MAPPING
README.md

Virtualization

This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.