diff options
Diffstat (limited to 'tests/auto/selftests/updateBaselines.sh')
-rwxr-xr-x | tests/auto/selftests/updateBaselines.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/auto/selftests/updateBaselines.sh b/tests/auto/selftests/updateBaselines.sh new file mode 100755 index 0000000..a0f22e6 --- /dev/null +++ b/tests/auto/selftests/updateBaselines.sh @@ -0,0 +1,34 @@ +# Be *really* sure that your fix is right, before running this script. + +tests=" \ + cmptest \ + cmptest \ + cmptest \ + datatable \ + datetime \ + expectfail \ + expectfail \ + globaldata \ + globaldata \ + maxwarnings \ + multiexec \ + singleskip \ + qexecstringlist \ + differentexec \ + skip \ + skip \ + skipglobal \ + sleep \ + strcmp \ + subtest \ + warnings" + +for test in $tests; do + echo "Updating $test" + cd $test + baseline="../expected_"$test".txt" + p4 edit $baseline + ./tst_$test > ../expected_"$test".txt + p4 revert -a $baseline + cd .. +done |