| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Tests for our tools. | 3 # Tests for our tools. |
| 4 # | 4 # |
| 5 # TODO: currently, this only passes on Linux (which is the platform that | 5 # TODO: currently, this only passes on Linux (which is the platform that |
| 6 # the housekeeper bot runs on, e.g. | 6 # the housekeeper bot runs on, e.g. |
| 7 # http://70.32.156.51:10117/builders/Skia_PerCommit_House_Keeping/builds/1415/st
eps/RunToolSelfTests/logs/stdio ) | 7 # http://70.32.156.51:10117/builders/Skia_PerCommit_House_Keeping/builds/1415/st
eps/RunToolSelfTests/logs/stdio ) |
| 8 # See https://code.google.com/p/skia/issues/detail?id=677 | 8 # See https://code.google.com/p/skia/issues/detail?id=677 |
| 9 # ('make tools/tests/run.sh work cross-platform') | 9 # ('make tools/tests/run.sh work cross-platform') |
| 10 # Ideally, these tests should pass on all development platforms... | 10 # Ideally, these tests should pass on all development platforms... |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 194 |
| 195 # | 195 # |
| 196 # Launch all the self-tests which have been written in Python. | 196 # Launch all the self-tests which have been written in Python. |
| 197 # | 197 # |
| 198 # TODO: Over time, we should move all of our tests into Python, and delete | 198 # TODO: Over time, we should move all of our tests into Python, and delete |
| 199 # the bash tests above. | 199 # the bash tests above. |
| 200 # See https://code.google.com/p/skia/issues/detail?id=677 | 200 # See https://code.google.com/p/skia/issues/detail?id=677 |
| 201 # ('make tools/tests/run.sh work cross-platform') | 201 # ('make tools/tests/run.sh work cross-platform') |
| 202 # | 202 # |
| 203 | 203 |
| 204 COMMAND="python tools/test_all.py" | 204 COMMAND="python tools/tests/run_all.py" |
| 205 echo "$COMMAND" | 205 echo "$COMMAND" |
| 206 $COMMAND | 206 $COMMAND |
| 207 ret=$? | 207 ret=$? |
| 208 if [ $ret -ne 0 ]; then | 208 if [ $ret -ne 0 ]; then |
| 209 echo "failure in Python self-tests; see stack trace above" | 209 echo "failure in Python self-tests; see stack trace above" |
| 210 exit 1 | 210 exit 1 |
| 211 fi | 211 fi |
| 212 | 212 |
| 213 | 213 |
| 214 echo "All tests passed." | 214 echo "All tests passed." |
| OLD | NEW |