debugging contrib/buildserver/test_daily.sh. More typos. This is very tedious.

v0.27.3
Robin Mills 9 years ago
parent 50def5c02d
commit c93c6e925e

@ -9,14 +9,14 @@ echo -------------------------------
# figure out today's build # figure out today's build
# http://exiv2.dyndns.org:8080/userContent/builds/Daily # http://exiv2.dyndns.org:8080/userContent/builds/Daily
date=$(date '+%Y-%m-%d') date=$(date '+%Y-%m-%d')
count=4 count=0
curl='/usr/local/bin/curl --silent --connect-timeout 30 --max-time 40' curl='/usr/local/bin/curl --silent --connect-timeout 30 --max-time 40'
while [ "$count" != "0" ]; do while [ "$count" != "0" ]; do
if [ "$count" != "4" ]; then echo "*** count = $count ***" ; fi if [ "$count" != "0" ]; then echo "*** count = $count ***" ; fi
build=$($curl $JENKINS/$DAILY/ \ build=$($curl "$JENKINS/$DAILY/" \
|xmllint --html --pretty 1 - 2>/dev/null | grep $PLATFORM \ |xmllint --html --pretty 1 - 2>/dev/null | grep $PLATFORM \
|grep $date | grep -v -e view | cut -d'"' -f 2 | tail -1 ) |grep $date | grep -v -e view | cut -d'"' -f 2 | tail -1 )
if [ build != "" ]; then if [ "$build" != "" ]; then
count=0; count=0;
fi fi
if [ "$count" != "0" ]; then if [ "$count" != "0" ]; then
@ -24,14 +24,14 @@ while [ "$count" != "0" ]; do
fi fi
if [ "$count" == "1" ]; then if [ "$count" == "1" ]; then
echo -------- echo --------
echo $curl $JENKINS/$DAILY/ | xmllint --html --pretty 1 echo $curl "$JENKINS/$DAILY/" | xmllint --html --pretty 1
$curl $JENKINS/$DAILY/ | xmllint --html --pretty 1 $curl "$JENKINS/$DAILY/" | xmllint --html --pretty 1
echo -------- echo --------
fi fi
done done
echo date = $date echo date = $date
echo url = $JENKINS/$DAILY/ echo url = "$JENKINS/$DAILY/"
echo build = $build echo build = $build
## ##
@ -41,8 +41,8 @@ if [ -e /tmp/jenkins ]; then
fi fi
mkdir /tmp/jenkins mkdir /tmp/jenkins
cd /tmp/jenkins cd /tmp/jenkins
echo /usr/local/bin/curl -O --connect-timeout 30 $JENKINS/$DAILY/$build echo $curl -O "$JENKINS/$DAILY/$build"
/usr/local/bin/curl -O --connect-timeout 30 $JENKINS/$DAILY/$build $curl -O "$JENKINS/$DAILY/$build"
ls -alt $build ls -alt $build
if [ ! -e $build ]; then echo '*** $build has not been downloaded ***' ; exit 0; fi if [ ! -e $build ]; then echo '*** $build has not been downloaded ***' ; exit 0; fi
@ -52,7 +52,6 @@ if [ -e dist ]; then rm -rf dist ;fi
tar xzf $build tar xzf $build
if [ ! -e dist ]; then echo '*** no dist directory ***' ; exit 0; fi if [ ! -e dist ]; then echo '*** no dist directory ***' ; exit 0; fi
## ##
# enter the dist and test it # enter the dist and test it
cd dist cd dist

Loading…
Cancel
Save