UMLGraph/tools/testupdate.sh

24 lines
461 B
Bash
Executable File

#!/bin/sh
#
# Update the reference test data to match what is actually produced
# This should only be executed after manually verifying that the
# differences are indeed intentional.
#
# Diomidis Spinellis. August 2008.
#
#
for i in dot umldoc
do
find testdata/$i-ref -type f |
grep -v CVS |
sed "s/\(testdata\/$i-\)ref\(.*\)/\1ref\2 \1out\2/" |
while read refname outname
do
if ! cmp -s $refname $outname
then
cp $outname $refname
fi
done
done