Home | History | Annotate | Download | only in util
      1 #!/bin/bash
      2 
      3 # Helper script for running CTS tests with all the right params.
      4 # Example usage:
      5 #  run-test <module> <package_name>  // To run all the tests in a package.
      6 #  run-test <module> <package_name>.<class_name>  // To run all the tests in a class.
      7 #  run-test <module> <package_name>.<class_name>#<method_name>  // To run a specific test in a class.
      8 
      9 echo " "
     10 echo "Running module $1 test...$2"
     11 echo " "
     12 cts-tradefed run commandAndExit cts-dev --module $1 --test $2 --disable-reboot --skip-device-info --skip-all-system-status-check --skip-preconditions
     13