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

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

Issue 13979017: GM self-tests: always run all tests (don't stop at first failure) (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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 | « no previous file | gm/tests/run.sh » ('j') | gm/tests/run.sh » ('J')
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 outputs/*/output-expected/ subdirectories used by the 3 # Rebaseline the outputs/*/output-expected/ subdirectories used by the
4 # gm self-tests. 4 # gm self-tests.
5 # Use with caution: are you sure the new results are actually correct? 5 # Use with caution: are you sure the new results are actually correct?
6 # 6 #
7 # YOU MUST RE-RUN THIS UNTIL THE SELF-TESTS SUCCEED!
8 # (It takes one run for each failing call to gm_test in run.sh)
9 #
10 # TODO: currently, this must be run on Linux to generate baselines that match 7 # TODO: currently, this must be run on Linux to generate baselines that match
11 # the ones on the housekeeper bot (which runs on Linux... see 8 # the ones on the housekeeper bot (which runs on Linux... see
12 # http://70.32.156.51:10117/builders/Skia_PerCommit_House_Keeping/builds/1417/st eps/RunGmSelfTests/logs/stdio ) 9 # http://70.32.156.51:10117/builders/Skia_PerCommit_House_Keeping/builds/1417/st eps/RunGmSelfTests/logs/stdio )
13 # See https://code.google.com/p/skia/issues/detail?id=677 10 # See https://code.google.com/p/skia/issues/detail?id=677
14 # ('make tools/tests/run.sh work cross-platform') 11 # ('make tools/tests/run.sh work cross-platform')
15 12
16 function replace_expected_with_actual { 13 function replace_expected_with_actual {
17 # Delete all the expected output files 14 # Delete all the expected output files
18 EXPECTED_FILES=$(find outputs/*/output-expected -type f | grep -v /\.svn/) 15 EXPECTED_FILES=$(find outputs/*/output-expected -type f | grep -v /\.svn/)
19 for EXPECTED_FILE in $EXPECTED_FILES; do 16 for EXPECTED_FILE in $EXPECTED_FILES; do
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 54
58 55
59 # cd into the gm self-test dir 56 # cd into the gm self-test dir
60 cd $(dirname $0) 57 cd $(dirname $0)
61 58
62 ./run.sh 59 ./run.sh
63 SELFTEST_RESULT=$? 60 SELFTEST_RESULT=$?
64 echo 61 echo
65 if [ "$SELFTEST_RESULT" != "0" ]; then 62 if [ "$SELFTEST_RESULT" != "0" ]; then
66 replace_expected_with_actual 63 replace_expected_with_actual
67 echo "Self-tests still failing, you should probably run this again..."
68 else
69 svn_add_new_files 64 svn_add_new_files
70 svn_delete_old_files 65 svn_delete_old_files
71 echo "Self-tests succeeded this time, you should be done!" 66 echo "Rebaseline completed. If you run run.sh now, it should succeed."
67 else
68 echo "Self-tests succeeded, nothing to rebaseline."
72 fi 69 fi
73 exit $SELFTEST_RESULT 70 exit $SELFTEST_RESULT
74 71
OLDNEW
« no previous file with comments | « no previous file | gm/tests/run.sh » ('j') | gm/tests/run.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698