Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: tools/tests/rebaseline.sh

Issue 15660014: rebaseline.py : add self-tests (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: update_TODO_comment Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/rebaseline.py ('k') | tools/tests/rebaseline/all/output-expected/command_line » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Rebaseline the skdiff/*/output-expected/ subdirectories used by the skdiff 3 # Rebaseline the skdiff/*/output-expected/ subdirectories used by the skdiff
4 # self-tests, and similar for benchgraphs/*/output-expected. 4 # self-tests, and similar for benchgraphs/*/output-expected.
5 # 5 #
6 # Use with caution: are you sure the new results are actually correct? 6 # Use with caution: are you sure the new results are actually correct?
7 # 7 #
8 # YOU MUST RE-RUN THIS UNTIL THE SELF-TESTS SUCCEED! 8 # YOU MUST RE-RUN THIS UNTIL THE SELF-TESTS SUCCEED!
9 # 9 #
10 # TODO: currently, this must be run on Linux to generate baselines that match 10 # TODO: currently, this must be run on Linux to generate baselines that match
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 svn rm $FILE 54 svn rm $FILE
55 done 55 done
56 } 56 }
57 57
58 58
59 # cd into the gm self-test dir 59 # cd into the gm self-test dir
60 cd $(dirname $0) 60 cd $(dirname $0)
61 61
62 ./run.sh 62 ./run.sh
63 SELFTEST_RESULT=$? 63 SELFTEST_RESULT=$?
64 TOOLS="skdiff benchgraphs rebaseline"
64 echo 65 echo
65 if [ "$SELFTEST_RESULT" != "0" ]; then 66 if [ "$SELFTEST_RESULT" != "0" ]; then
66 WHICHTOOL=skdiff 67 for WHICHTOOL in $TOOLS; do
67 replace_expected_with_actual 68 replace_expected_with_actual
68 WHICHTOOL=benchgraphs 69 done
69 replace_expected_with_actual
70 echo "Self-tests still failing, you should probably run this again..." 70 echo "Self-tests still failing, you should probably run this again..."
71 else 71 else
72 WHICHTOOL=skdiff 72 for WHICHTOOL in $TOOLS; do
73 svn_add_new_files 73 svn_add_new_files
74 svn_delete_old_files 74 svn_delete_old_files
75 WHICHTOOL=benchgraphs 75 done
76 svn_add_new_files
77 svn_delete_old_files
78 echo "Self-tests succeeded this time, you should be done!" 76 echo "Self-tests succeeded this time, you should be done!"
79 fi 77 fi
80 exit $SELFTEST_RESULT 78 exit $SELFTEST_RESULT
81 79
OLDNEW
« no previous file with comments | « tools/rebaseline.py ('k') | tools/tests/rebaseline/all/output-expected/command_line » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698