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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |