# Run a VTS test directly First of all, if you have not done [VTS setup](../setup/index.md), that is required here. ## Download required Python packages to local host `$ . test/vts/script/pypi-packages-local.sh` ## Build Binaries `$ cd test/vts/script` `$ ./create-image.sh -userdebug` or `$ ./create-image.sh aosp_salifish-userdebug` ## Copy Binaries `$ ./setup-local.sh ` or `$ ./setup-local.sh sailfish` ## Run a test direclty `$ PYTHONPATH=$PYTHONPATH:.. python -m vts.testcases. $ANDROID_BUILD_TOP/test/vts/testcases/` For example, for SampleShellTest, please run: `PYTHONPATH=$PYTHONPATH:.. python -m vts.testcases.host.shell.SampleShellTest $ANDROID_BUILD_TOP/test/vts/testcases/host/shell/SampleShellTest.config` More examples are in `test/vts/script/run-local.sh`. ## Additional Step for LTP and Linux-Kselftest Add `'data_file_path' : '/out/host/linux-x86/vts/android-vts/testcases'` to your config file (e.g., `VtsKernelLtpStaging.config`). ## Add a new test In order to add a new test, the following two files needed to be extended. `test/vts/create-image.sh` `test/vts/setup-local.sh` Optionally, the command used to add a new test can be also added to: `test/vts/run-local.sh`