| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |