xref: /aosp_15_r20/cts/tests/sample/README (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1*b7c941bbSAndroid Build Coastguard WorkerThis 'sample' folder is a sample which illustrates the basic structure and contents of a CTS module.
2*b7c941bbSAndroid Build Coastguard Worker
3*b7c941bbSAndroid Build Coastguard WorkerFuture users can refer to this folder to create their own CTS modules.
4*b7c941bbSAndroid Build Coastguard Worker
5*b7c941bbSAndroid Build Coastguard WorkerSeveral things to notice:
6*b7c941bbSAndroid Build Coastguard Worker  1.  The users should update the `misc` value in
7*b7c941bbSAndroid Build Coastguard Worker      `<option name="config-descriptor:metadata" key="component" value="misc" />`
8*b7c941bbSAndroid Build Coastguard Worker      of the 'AndroidTest.xml' file into an appropriate group for the module they created.
9*b7c941bbSAndroid Build Coastguard Worker
10*b7c941bbSAndroid Build Coastguard Worker      The list of all available groups:
11*b7c941bbSAndroid Build Coastguard Worker      <https://cs.android.com/android/platform/superproject/+/master:cts/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/CtsConfigLoadingTest.java;l=66>.
12*b7c941bbSAndroid Build Coastguard Worker
13*b7c941bbSAndroid Build Coastguard Worker  2.  If the module is added outside the 'cts/' folder, the user should also 1) add the module
14*b7c941bbSAndroid Build Coastguard Worker      directory into the ayeaye checker (as shown in
15*b7c941bbSAndroid Build Coastguard Worker      [this line in the configuration file](https://source.corp.google.com/piper///depot/google3/wireless/android/busytown/ayeaye/config/analyzers/api_test_coverage/api_test_coverage.gcl;l=32;bpv=0;cl=438517394),
16*b7c941bbSAndroid Build Coastguard Worker      whose format should be similar to `"packages/<MODULE_NAME>/<API_NAME>/tests/cts/"`), and
17*b7c941bbSAndroid Build Coastguard Worker      2) add an OWNERS file in the module directory accordingly.