Add Mac compatibility to integration tests

This commit is contained in:
Brandon Kreisel
2015-10-03 12:50:18 -04:00
parent 74b2e3bc51
commit a4d0188d21
3 changed files with 13 additions and 5 deletions
+5 -1
View File
@@ -50,7 +50,11 @@ dir="$root/conf/archive/le1.wtf"
for x in cert chain fullchain privkey;
do
latest="$(ls -1t $dir/ | grep -e "^${x}" | head -n1)"
live="$(readlink -f "$root/conf/live/le1.wtf/${x}.pem")"
if [ `uname` == 'Darwin' ]; then
live="$(greadlink -f "$root/conf/live/le1.wtf/${x}.pem")"
else
live="$(readlink -f "$root/conf/live/le1.wtf/${x}.pem")"
fi
[ "${dir}/${latest}" = "$live" ] # renewer fails this test
done