A partire dal 27 marzo 2025, ti consigliamo di utilizzare android-latest-release
anziché aosp-main
per compilare e contribuire ad AOSP. Per ulteriori informazioni, vedi Modifiche ad AOSP.
Test di sistema con VTS
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
La Vendor Test Suite (VTS) automatizza i test del kernel HAL e del sistema operativo. Per utilizzare VTS
per testare un'implementazione di sistema nativo Android, configura un ambiente di test
quindi testa una patch utilizzando un piano VTS.
Crea un ambiente di test
Per informazioni su come configurare un ambiente di test per Android 10 o versioni precedenti, consulta
Vendor Test Suite (VTS) e infrastruttura per Android 10
e versioni precedenti.
Testa una patch
Per testare una patch:
- Crea un pacchetto lato host VTS:
. build/envsetup.sh
lunch aosp_arm64-userdebug
make vts -j
- Esegui i test VTS predefiniti:
vts-tradefed
tf> run vts // where vts is the test plan name
Piani VTS
I piani di test VTS disponibili includono:
Comando |
Descrizione |
> run vts |
Per i test VTS predefiniti |
> run vts-hal |
Per i test VTS HAL (Hardware Abstraction Layer) predefiniti |
> run vts-kernel |
Per i test del kernel VTS predefiniti |
Per visualizzare un elenco di tutti i piani, consulta
/test/vts/tools/vts-tradefed/res/config.md
.
Assistenza
Puoi visualizzare un manuale dell'utente all'indirizzo
/test/vts/doc
.
Per domande sul VTS, partecipa al gruppo
android-vts@googlegroups.com.
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-27 UTC."],[],[],null,["# Systems testing with VTS\n\nThe Vendor Test Suite (VTS) automates HAL and OS kernel testing. To use VTS\nto test an Android native system implementation, set up a testing environment\nthen test a patch using a VTS plan.\n\nEstablish a test environment\n----------------------------\n\nFor information on setting up a testing environment for Android 10 or lower, see\n[Vendor Test Suite (VTS) \\& infrastructure for Android 10\nand lower](/docs/core/tests/vts/index10).\n\nTest a patch\n------------\n\nTo test a patch:\n\n1. Build a VTS host-side package: \n\n . build/envsetup.sh\n lunch aosp_arm64-userdebug\n make vts -j\n\n2. Run the default VTS tests: \n\n vts-tradefed\n tf\u003e run vts // where vts is the test plan name\n\nVTS plans\n---------\n\nAvailable VTS test plans include:\n\n| Command | Description |\n|-------------------|--------------------------------------------------------|\n| \\\u003e run vts | For default VTS tests |\n| \\\u003e run vts-hal | For default VTS HAL (hardware abstraction layer) tests |\n| \\\u003e run vts-kernel | For default VTS kernel tests |\n\nTo view a list of all plans, refer to\n[/test/vts/tools/vts-tradefed/res/config.md](https://android.googlesource.com/platform/test/vts/+/refs/heads/android10-dev/tools/vts-tradefed/res/config/plans.md).\n\nSupport\n-------\n\nYou can view a user manual at\n[/test/vts/doc](https://android.googlesource.com/platform/test/vts/+/fb7d768d295720d9edfca8c9c1e215ac631f3bc6/README.md).\nFor questions on VTS, please join\n[android-vts@googlegroups.com](https://groups.google.com/forum/#!forum/android-vts)."]]