27 Mart 2025'ten itibaren AOSP'yi derlemek ve AOSP'ye katkıda bulunmak için aosp-main yerine android-latest-release kullanmanızı öneririz. Daha fazla bilgi için AOSP'de yapılan değişiklikler başlıklı makaleyi inceleyin.
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Android Tedarikçi Test Paketi (VTS), aşağıdakiler hakkında kapsamlı testler sunar:
Patlayan mısır
Donanım soyutlama katmanı (HAL)
VTS, masaüstü bir makinede çalışır ve test durumlarını doğrudan bağlı cihazlarda veya emülatörlerde yürütür. CTS'ye benzer şekilde VTS de aşağıdaki önemli yazılım bileşenlerini kullanan otomatik bir test paketidir:
VTS Trade Federation test aparatı, ana makinenizde çalışır ve test yürütmeyi yönetir. Test altındaki birden fazla cihazda (DUT'lar) bölümlendirmeyi yapılandırma olanağı sunar. Test paketlerinin tamamını değil, yalnızca başarısız olanları yeniden denemek için Paket Yeniden Deneme özelliğini de kullanabilirsiniz. Bu özellik, yeniden çalıştırma süresini büyük ölçüde azaltır.
Bağımsız test senaryoları DUT'ta yürütülür. Test senaryoları GTest tarzı testler, çekirdek testleri veya Java'da yazılmış JUnit tarzı testler olabilir.
Test türleri
Çeşitli VTS test türleri aşağıdaki bölümlerde açıklanmıştır.
GTest tarzı testler
VTS'deki çoğu test, HAL uygulamasını kontrol eden GTest tarzı testlerdir. Test C++ ile yazılmıştır ve cihazda çalışır. Tipik bir VTS GTest, belirli bir arayüzün her örneğini iteratif olarak tarar ve tüm test durumlarını bu arayüzde çalıştırır. Örnek için VtsHalHealthStorageV1_0TargetTest bölümüne bakın.
Linux çekirdek testleri
Kselftest (external/linux-kselftest), tools/testing/selftests adresindeki Linux çekirdek deposunda bulunan bir test koleksiyonudur. Bu koleksiyondaki 23 test, ARM'de çalıştırılmak üzere VTS'ye dahil edilmiştir.
Linux Test Projesi (external/ltp) testleri, Linux çekirdeğinin güvenilirliğini, sağlamlığını ve kararlılığını doğrular.
JUnit tarzı testler
VTS'deki küçük bir ana makine odaklı test grubu, JUnit tarzı testlerdir (ör. KernelApiSysfsTest).
Java testleri, bir test cihazıyla ilişkilendirilmiş ve doğrulama yapmak için kabuk komutları çalıştırabilen BaseHostJUnit4Test olarak uygulanır.
Bağımsız Python3 testleri
vts_treble_sys_prop_test gibi bazı VTS testleri Python3 ile yazılmıştır. Python tabanlı testler unittest.TestCase olarak uygulanır ve her test senaryosu, kabuk komutları aracılığıyla cihazla etkileşim kurabilir.
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],null,["# Vendor Test Suite (VTS) and infrastructure\n\nThe Android Vendor Test Suite (VTS) provides\nextensive testing on the following:\n\n- Kernel\n- Hardware abstraction layer (HAL)\n\nVTS runs on a\ndesktop machine and executes test cases directly on attached devices or\non the emulators. Similar to [CTS](/docs/compatibility/cts), VTS is\nan automated test suite that uses the following major software components:\n\n- The VTS [Trade Federation](/docs/core/tests/tradefed) test harness runs on your host machine and manages test execution. It offers the ability to [Configure sharding](/docs/core/tests/tradefed/testing/through-suite/android-test-tuning) across multiple devices under test (DUTs). You can also use the [Suite Retry](/devices/tech/test_infra/tradefed/testing/through-suite/suite-retry) feature to retry only the failures rather than the entire test suites, which greatly reduces the re-run time.\n- Individual test cases are executed on the DUT. The test cases can be GTest-style tests, kernel tests, or JUnit-style tests written in Java.\n\nTypes of tests\n--------------\n\nThe various types of VTS tests are described in the following sections.\n\n### GTest-style tests\n\nMost tests in VTS are GTest-style tests that check the HAL\nimplementation. The test is\nwritten in C++ and runs on the device. A typical VTS GTest iterates through\neach instance of a given interface, and runs all the test cases\nagainst it. Refer to [`VtsHalHealthStorageV1_0TargetTest`](https://cs.android.com/android/platform/superproject/+/android-latest-release:hardware/interfaces/health/storage/1.0/vts/functional/)\nfor an example.\n\n### Linux kernel tests\n\n- Kselftest ([external/linux-kselftest](https://github.com/torvalds/linux/tree/master/tools/testing/selftests/kselftest))\n is a collection of tests included within the Linux kernel repository\n at `tools/testing/selftests`, of which 23 are included in VTS to run on ARM.\n\n- Linux Test Project ([external/ltp](https://cs.android.com/android/platform/superproject/+/android-latest-release:external/ltp/))\n tests validate the reliability, robustness, and stability of the Linux kernel.\n\n### JUnit-style tests\n\nA small set of host-driven tests in VTS are JUnit-style tests, for example,\n[`KernelApiSysfsTest`](https://cs.android.com/android/platform/superproject/+/android-latest-release:test/vts-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/KernelApiSysfsTest.java).\nThe Java tests are implemented as\n[`BaseHostJUnit4Test`](https://cs.android.com/android/platform/superproject/+/android-latest-release:tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/BaseHostJUnit4Test.java),\nwhich is associated with a test device and can run shell\ncommands to perform validation.\n\n### Standalone Python3 tests\n\nSome VTS tests, such as\n[`vts_treble_sys_prop_test`](https://cs.android.com/android/platform/superproject/+/android-latest-release:test/vts-testcase/security/system_property/vts_treble_sys_prop_test.py)\nare written in Python3. The\nPython-based tests are implemented as `unittest.TestCase` and each test\ncase can interact with the device through shell commands.\n| **Caution:** The Python tests aren't recommended due to limited support in the Android tree. We highly recommend writing the VTS tests as GTest, or at least as JUnit-style tests."]]