Add a validation script
commit1eab52f7bd0fbe5ffbf1373177a19589672cad7e
authorRamkumar Ramachandra <artagnon@gmail.com>
Tue, 6 Jul 2010 23:50:57 +0000 (7 01:50 +0200)
committerRamkumar Ramachandra <artagnon@gmail.com>
Thu, 15 Jul 2010 10:50:27 +0000 (15 12:50 +0200)
tree9b4b01680bfe233b06dd92971f527ba66133f2eb
parent6abe04b664d7699609b6966b4a9e7ada4b1b908e
Add a validation script

Add a validation script. Using an existing dump known to be correct
(possibly generated using `svnsync` and `svnadmin dump --deltas`), it
compares the outputs produced by `svnadmin load` when fed with this
dump and the dump from the program.

The arguments added are:
    --svnadmin-dump=<file>      existing "svnadmin dump"
    --svndumpr-dump=<file>      existing "svndumpr" dump
    --repos=<url-or-path>       SVN repos URL, or local repos
    -r<revision>                end revision to dump/cut
    --ignore-existing           regenerate svnadmin-dump even if
                                it already exists
    --make                      run "make svndumpr" prior to svnrdump
    generate                    as with the old parameter, but now
                                implied by default
    validate                    as with the old parameter, but now
                                implied by default

The end result is that the only step technically needed to test
validation is:

./validate.sh --make --repos=/path/to/local/repos

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Will Palmer <wpalmer@gmail.com>
validate.sh [new file with mode: 0755]