Return to diffscript CVS log | Up to [Pegasus] / pegasus |
1 kumpf 1.2 # 2 # diffscript 3 # 4 # This script is used to compare the contents of repository directory trees. 5 # It is used by the Testcimmof Makefile which builds one copy of the repository 6 # with cimmofl and another with cimmof. The two repositories are expected to 7 # have the same contents. 8 # 9 # Usage: diffscript repository-dir repository-subdir 10 # 11 # The repository-dir argument is the directory containing the two repositories 12 # to compare. They are expected to be named "repository" and "repository.old". 13 # the repository-subdir is a specific subdirectory to compare within the 14 # repositories. The net effect is a comparison of these two directories: 15 # 16 # <repository-dir>/repository/<repository-subdir> 17 # <repository-dir>/repository.old/<repository-subdir> 18 | ||
19 kumpf 1.1 echo "Comparing Repository files..." 20 cd $1/repository/$2 21 rm -f repository.log 22 retCode=0 23 for i in `find ./ -type f` 24 do 25 echo "Comparing " $i >> repository.log 26 diff $i ../../../repository.old/$2/$i >> repository.log 27 if [ $? -eq 1 ] ;then 28 retCode=1 29 echo "Files are different" >> repository.log 30 fi 31 done 32 if [ retCode -eq 1 ] ;then 33 echo +++ Test failed +++ 34 else 35 echo +++ Test passed +++ 36 fi |
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |