1 #!/bin/bash 2 3 if [ -z "$ANDROID_BUILD_TOP" ]; then 4 echo "Missing ANDROID_BUILD_TOP env variable. Run 'lunch' first." 5 exit 1 6 fi 7 8 # Runs all unit tests under tools/acloud. 9 tests=$(find . -type f | grep test\.py) 10 for t in $tests; do 11 PYTHONPATH=$ANDROID_BUILD_TOP/tools python $t; 12 done 13