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

Unified Diff: gm/tests/rebaseline.sh

Issue 855003006: delete old things! (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add makefiles back :( Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/tests/outputs/pipe-playback-failure/output-expected/writePath/bogusfile ('k') | gm/tests/run.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/tests/rebaseline.sh
diff --git a/gm/tests/rebaseline.sh b/gm/tests/rebaseline.sh
deleted file mode 100755
index 608e66791aa72c6d6d6381a9675ec50c4e7fc253..0000000000000000000000000000000000000000
--- a/gm/tests/rebaseline.sh
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/bash
-
-# Rebaseline the outputs/*/output-expected/ subdirectories used by the
-# gm self-tests.
-# Use with caution: are you sure the new results are actually correct?
-#
-# TODO: currently, this must be run on Linux to generate baselines that match
-# the ones on the housekeeper bot (which runs on Linux... see
-# http://70.32.156.51:10117/builders/Skia_PerCommit_House_Keeping/builds/1417/steps/RunGmSelfTests/logs/stdio )
-# See https://code.google.com/p/skia/issues/detail?id=677
-# ('make tools/tests/run.sh work cross-platform')
-
-function replace_expected_with_actual {
- # Delete all the expected output files
- EXPECTED_FILES=$(find outputs/*/output-expected -type f | grep -v /\.svn/)
- for EXPECTED_FILE in $EXPECTED_FILES; do
- rm $EXPECTED_FILE
- done
-
- # Copy all the actual output files into the "expected" directories,
- # creating new subdirs as we go.
- ACTUAL_FILES=$(find outputs/*/output-actual -type f | grep -v /\.svn/)
- for ACTUAL_FILE in $ACTUAL_FILES; do
- EXPECTED_FILE=${ACTUAL_FILE//actual/expected}
- mkdir -p $(dirname $EXPECTED_FILE)
- cp $ACTUAL_FILE $EXPECTED_FILE
- done
-}
-
-function svn_add_new_files {
- # Delete all the "actual" directories, so we can svn-add any new "expected"
- # directories without adding the "actual" ones.
- rm -rf outputs/*/output-actual
- FILES=$(svn stat outputs/* | grep ^\? | awk '{print $2}')
- for FILE in $FILES; do
- svn add $FILE
- done
- FILES=$(svn stat outputs/*/output-expected | grep ^\? | awk '{print $2}')
- for FILE in $FILES; do
- svn add $FILE
- done
-}
-
-function svn_delete_old_files {
- FILES=$(svn stat outputs/*/output-expected | grep ^\! | awk '{print $2}')
- for FILE in $FILES; do
- svn rm $FILE
- done
- FILES=$(svn stat outputs/* | grep ^\! | awk '{print $2}')
- for FILE in $FILES; do
- svn rm $FILE
- done
-}
-
-
-# cd into the gm self-test dir
-cd $(dirname $0)
-
-./run.sh
-SELFTEST_RESULT=$?
-echo
-if [ "$SELFTEST_RESULT" != "0" ]; then
- replace_expected_with_actual
- svn_add_new_files
- svn_delete_old_files
- echo "Rebaseline completed. If you run run.sh now, it should succeed."
-else
- echo "Self-tests succeeded, nothing to rebaseline."
-fi
-exit $SELFTEST_RESULT
-
« no previous file with comments | « gm/tests/outputs/pipe-playback-failure/output-expected/writePath/bogusfile ('k') | gm/tests/run.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698