mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
Testing the output of build.py against lea-source/lea (#3460)
* Testing the output of build.py against lea-source/lea * Replacing realpath with readlink
This commit is contained in:
committed by
Brad Warren
parent
981d59fb45
commit
88a2c5a8f6
@@ -3,6 +3,13 @@
|
|||||||
temp_dir=`mktemp -d`
|
temp_dir=`mktemp -d`
|
||||||
|
|
||||||
# Script should be run from Certbot's root directory
|
# Script should be run from Certbot's root directory
|
||||||
|
|
||||||
|
SCRIPT_PATH=`dirname $0`
|
||||||
|
SCRIPT_PATH=`readlink -f $SCRIPT_PATH`
|
||||||
|
FLAG=false
|
||||||
|
|
||||||
|
# Compare root letsencrypt-auto and certbot-auto with published versions
|
||||||
|
|
||||||
cp letsencrypt-auto ${temp_dir}/letsencrypt-to-be-checked
|
cp letsencrypt-auto ${temp_dir}/letsencrypt-to-be-checked
|
||||||
cp certbot-auto ${temp_dir}/certbot-to-be-checked
|
cp certbot-auto ${temp_dir}/certbot-to-be-checked
|
||||||
|
|
||||||
@@ -16,8 +23,7 @@ cmp -s letsencrypt-auto letsencrypt-to-be-checked
|
|||||||
|
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
echo "Root letsencrypt-auto has changed."
|
echo "Root letsencrypt-auto has changed."
|
||||||
rm -rf temp_dir
|
FLAG=true
|
||||||
exit 1
|
|
||||||
else
|
else
|
||||||
echo "Root letsencrypt-auto is unchanged."
|
echo "Root letsencrypt-auto is unchanged."
|
||||||
fi
|
fi
|
||||||
@@ -26,10 +32,36 @@ cmp -s letsencrypt-auto certbot-to-be-checked
|
|||||||
|
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
echo "Root certbot-auto has changed."
|
echo "Root certbot-auto has changed."
|
||||||
rm -rf temp_dir
|
FLAG=true
|
||||||
exit 1
|
|
||||||
else
|
else
|
||||||
echo "Root certbot-auto is unchanged."
|
echo "Root certbot-auto is unchanged."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
rm ${temp_dir}/*
|
||||||
|
cd ${SCRIPT_PATH}/../
|
||||||
|
|
||||||
|
# Compare letsencrypt-auto-source/letsencrypt-auto with output of build.py
|
||||||
|
|
||||||
|
cp letsencrypt-auto-source/letsencrypt-auto ${temp_dir}/original-lea
|
||||||
|
python letsencrypt-auto-source/build.py
|
||||||
|
cp letsencrypt-auto-source/letsencrypt-auto ${temp_dir}/build-lea
|
||||||
|
|
||||||
|
cd $temp_dir
|
||||||
|
|
||||||
|
cmp -s original-lea build-lea
|
||||||
|
|
||||||
|
if [ $? != 0 ]; then
|
||||||
|
echo "letsencrypt-auto-source/letsencrypt-auto doesn't match output of \
|
||||||
|
build.py."
|
||||||
|
FLAG=true
|
||||||
|
else
|
||||||
|
echo "letsencrypt-auto-source/letsencrypt-auto matches output of \
|
||||||
|
build.py."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if $FLAG ; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
rm -rf temp_dir
|
rm -rf temp_dir
|
||||||
|
|||||||
Reference in New Issue
Block a user