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

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

Issue 18103005: Create jsondiff tool to capture diffs between two JSON expectations files. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: fix_self_test Created 7 years, 5 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
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 svn rm $FILE 73 svn rm $FILE
74 done 74 done
75 } 75 }
76 76
77 77
78 # cd into the gm self-test dir 78 # cd into the gm self-test dir
79 cd $(dirname $0) 79 cd $(dirname $0)
80 80
81 ./run.sh 81 ./run.sh
82 SELFTEST_RESULT=$? 82 SELFTEST_RESULT=$?
83 SUBDIRS="skdiff benchgraphs rebaseline/output" 83 SUBDIRS="skdiff benchgraphs rebaseline/output jsondiff/output"
84 echo 84 echo
85 if [ "$SELFTEST_RESULT" != "0" ]; then 85 if [ "$SELFTEST_RESULT" != "0" ]; then
86 for SUBDIR in $SUBDIRS; do 86 for SUBDIR in $SUBDIRS; do
87 replace_expected_with_actual $SUBDIR 87 replace_expected_with_actual $SUBDIR
88 done 88 done
89 echo "Self-tests still failing, you should probably run this again..." 89 echo "Self-tests still failing, you should probably run this again..."
90 else 90 else
91 for SUBDIR in $SUBDIRS; do 91 for SUBDIR in $SUBDIRS; do
92 svn_add_new_files $SUBDIR 92 svn_add_new_files $SUBDIR
93 svn_delete_old_files $SUBDIR 93 svn_delete_old_files $SUBDIR
94 done 94 done
95 echo "Self-tests succeeded this time, you should be done!" 95 echo "Self-tests succeeded this time, you should be done!"
96 fi 96 fi
97 exit $SELFTEST_RESULT 97 exit $SELFTEST_RESULT
98 98
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698