(file) Return to diffscript CVS log (file) (dir) Up to [Pegasus] / pegasus

File: [Pegasus] / pegasus / Attic / diffscript (download)
Revision: 1.3, Mon Nov 17 19:28:53 2008 UTC (15 years, 5 months ago) by kumpf
Branch: MAIN
CVS Tags: TASK-PEP362_RestfulService-merged_out_from_trunk, TASK-PEP348_SCMO-merged_out_from_trunk, TASK-PEP317_pullop-merged_out_from_trunk, TASK-PEP317_pullop-merged_in_to_trunk, HPUX_TEST, HEAD
Changes since 1.2: +0 -0 lines
FILE REMOVED
BUG#: 8136
TITLE: Testcimmof depends on repository directory structure
DESCRIPTION: Replace the diffscript with TestCompareRepositories.

#
# diffscript
#
# This script is used to compare the contents of repository directory trees.
# It is used by the Testcimmof Makefile which builds one copy of the repository
# with cimmofl and another with cimmof.  The two repositories are expected to
# have the same contents.
#
# Usage:  diffscript repository-dir repository-subdir
#
# The repository-dir argument is the directory containing the two repositories
# to compare.  They are expected to be named "repository" and "repository.old".
# the repository-subdir is a specific subdirectory to compare within the
# repositories.  The net effect is a comparison of these two directories:
#
#     <repository-dir>/repository/<repository-subdir>
#     <repository-dir>/repository.old/<repository-subdir>

echo "Comparing Repository files..."
cd $1/repository/$2
rm -f repository.log
retCode=0
for i in `find ./ -type f`
do
    echo "Comparing " $i >> repository.log
    diff $i ../../../repository.old/$2/$i >> repository.log
    if [ $? -eq 1 ] ;then
        retCode=1
        echo "Files are different" >> repository.log
    fi
done
if [ retCode -eq 1 ] ;then
    echo +++ Test failed +++
else
    echo +++ Test passed +++
fi

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2