| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Self-tests for gm, based on tools/tests/run.sh | 3 # Self-tests for gm, based on tools/tests/run.sh |
| 4 # | 4 # |
| 5 # These tests are run by the Skia_PerCommit_House_Keeping bot at every commit, | 5 # These tests are run by the Skia_PerCommit_House_Keeping bot at every commit, |
| 6 # so make sure that they still pass when you make changes to gm! | 6 # so make sure that they still pass when you make changes to gm! |
| 7 # | 7 # |
| 8 # TODO: because this is written as a shell script (instead of, say, Python) | 8 # TODO: because this is written as a shell script (instead of, say, Python) |
| 9 # it only runs on Linux and Mac. | 9 # it only runs on Linux and Mac. |
| 10 # See https://code.google.com/p/skia/issues/detail?id=677 | 10 # See https://code.google.com/p/skia/issues/detail?id=677 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 # actual checksums marked as "failure-ignored", but the "expected-results" | 153 # actual checksums marked as "failure-ignored", but the "expected-results" |
| 154 # section should be empty. | 154 # section should be empty. |
| 155 gm_test "--hierarchy --match selftest1 $CONFIGS" "$GM_OUTPUTS/no-readpath" | 155 gm_test "--hierarchy --match selftest1 $CONFIGS" "$GM_OUTPUTS/no-readpath" |
| 156 | 156 |
| 157 # Run a test which generates partially transparent images, write out those | 157 # Run a test which generates partially transparent images, write out those |
| 158 # images, and read them back in. | 158 # images, and read them back in. |
| 159 # | 159 # |
| 160 # This test would have caught | 160 # This test would have caught |
| 161 # http://code.google.com/p/skia/issues/detail?id=1079 ('gm generating | 161 # http://code.google.com/p/skia/issues/detail?id=1079 ('gm generating |
| 162 # spurious pixel_error messages as of r7258'). | 162 # spurious pixel_error messages as of r7258'). |
| 163 IMAGEDIR=$GM_TEMPFILES/aaclip-images | 163 # |
| 164 rm -rf $IMAGEDIR | 164 # TODO(epoger): Disabled pending https://code.google.com/p/skia/issues/detail?id
=1142 |
| 165 mkdir -p $IMAGEDIR | 165 # ('gm self-tests: aaclip checksums failing') |
| 166 gm_test "--match simpleaaclip_path $CONFIGS -w $IMAGEDIR" "$GM_OUTPUTS/aaclip-wr
ite" | 166 # |
| 167 gm_test "--match simpleaaclip_path $CONFIGS -r $IMAGEDIR" "$GM_OUTPUTS/aaclip-re
adback" | 167 #IMAGEDIR=$GM_TEMPFILES/aaclip-images |
| 168 #rm -rf $IMAGEDIR |
| 169 #mkdir -p $IMAGEDIR |
| 170 #gm_test "--match simpleaaclip_path $CONFIGS -w $IMAGEDIR" "$GM_OUTPUTS/aaclip-w
rite" |
| 171 #gm_test "--match simpleaaclip_path $CONFIGS -r $IMAGEDIR" "$GM_OUTPUTS/aaclip-r
eadback" |
| 168 | 172 |
| 169 echo "All tests passed." | 173 echo "All tests passed." |
| OLD | NEW |