|
|
@ -2,16 +2,18 @@
|
|
|
|
cd `dirname $0`
|
|
|
|
cd `dirname $0`
|
|
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
|
|
|
|
PYTHON_EXEC=$1
|
|
|
|
|
|
|
|
COMPARE_PROTO_UTIL=$2
|
|
|
|
|
|
|
|
|
|
|
|
protostr=`dirname $0`/protostr
|
|
|
|
protostr=`dirname $0`/protostr
|
|
|
|
|
|
|
|
|
|
|
|
files=`ls $protostr | grep -v "unittest"`
|
|
|
|
files=`ls $protostr | grep -v "unittest"`
|
|
|
|
|
|
|
|
|
|
|
|
./generate_protostr.sh $1
|
|
|
|
./generate_protostr.sh ${PYTHON_EXEC}
|
|
|
|
|
|
|
|
|
|
|
|
. ./file_list.sh
|
|
|
|
. ./file_list.sh
|
|
|
|
|
|
|
|
|
|
|
|
if [ -z $1 ]; then
|
|
|
|
if [ -z ${COMPARE_PROTO_UTIL} ]; then
|
|
|
|
for file in $files
|
|
|
|
for file in $files
|
|
|
|
do
|
|
|
|
do
|
|
|
|
base_protostr=$protostr/$file
|
|
|
|
base_protostr=$protostr/$file
|
|
|
@ -22,20 +24,20 @@ if [ -z $1 ]; then
|
|
|
|
else
|
|
|
|
else
|
|
|
|
for file in ${configs[*]}
|
|
|
|
for file in ${configs[*]}
|
|
|
|
do
|
|
|
|
do
|
|
|
|
if ! $1 $protostr/$file.protostr $protostr/$file.protostr.unittest; then
|
|
|
|
if ! ${COMPARE_PROTO_UTIL} $protostr/$file.protostr $protostr/$file.protostr.unittest; then
|
|
|
|
diff $protostr/$file.protostr $protostr/$file.protostr.unittest -u
|
|
|
|
diff $protostr/$file.protostr $protostr/$file.protostr.unittest -u
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if ! $1 $protostr/$file.protostr $protostr/$file.protostr.non_file_config.unittest; then
|
|
|
|
if ! ${COMPARE_PROTO_UTIL} $protostr/$file.protostr $protostr/$file.protostr.non_file_config.unittest; then
|
|
|
|
diff $protostr/$file.protostr $protostr/$file.protostr.non_file_config.unittest -u
|
|
|
|
diff $protostr/$file.protostr $protostr/$file.protostr.non_file_config.unittest -u
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
for file in ${whole_configs[*]}
|
|
|
|
for file in ${whole_configs[*]}
|
|
|
|
do
|
|
|
|
do
|
|
|
|
if ! $1 $protostr/$file.protostr $protostr/$file.protostr.unittest --whole; then
|
|
|
|
if ! ${COMPARE_PROTO_UTIL} $protostr/$file.protostr $protostr/$file.protostr.unittest --whole; then
|
|
|
|
diff $protostr/$file.protostr $protostr/$file.protostr.unittest -u
|
|
|
|
diff $protostr/$file.protostr $protostr/$file.protostr.unittest -u
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if ! $1 $protostr/$file.protostr $protostr/$file.protostr.non_file_config.unittest --whole; then
|
|
|
|
if ! ${COMPARE_PROTO_UTIL} $protostr/$file.protostr $protostr/$file.protostr.non_file_config.unittest --whole; then
|
|
|
|
diff $protostr/$file.protostr $protostr/$file.protostr.non_file_config.unittest -u
|
|
|
|
diff $protostr/$file.protostr $protostr/$file.protostr.non_file_config.unittest -u
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|