There will be maintenance performed on git.ligo.org, chat.ligo.org, containers.lig.org, and docs.ligo.org starting at 9am PDT on Tuesday 18th August 2020. There will be an extremely small period of downtime at the start of the maintenance window as various services are restarted. Please address any comments, questions, or concerns to computing-help@igwn.org.

Commit c40ed87f authored by Aaron Jones's avatar Aaron Jones

Testing script now called via webmethod

parent 23354c13
before_script:
- apk add --update ca-certificates openssl && update-ca-certificates
- wget https://agentx20.sr.bham.ac.uk:8080/static/scripts/brumsofttest.sh
- chmod +x brumsofttest.sh
Physics2.7:
script:
- ./brumsofttest.sh -s http://agentx20.sr.bham.ac.uk:9555 -u 1 -t 8 -g $CI_COMMIT_SHA
......
#!/bin/sh
while getopts s:u:t:g: option
do
case "${option}"
in
s) SERVER=${OPTARG};;
u) USER=${OPTARG};;
t) TEST=${OPTARG};;
g) GITDATA=$OPTARG;;
esac
done
SUBURL="${SERVER}/cli/submit_test/user/${USER}/testProfile/${TEST}/gitcheckout/${GITDATA}"
echo "Submit URL: "$SUBURL
SESSIONID="`wget -qO- $SUBURL`"
echo "SessionID: "$SESSIONID
case $SESSIONID in
''|*[!0-9]*) exit 1 ;;
*) echo "ID Okay" ;;
esac
STATUSURL="${SERVER}/cli/get_status_only/session/${SESSIONID}/user/${USER}"
DATAURL="${SERVER}/cli/get_status/session/${SESSIONID}/user/${USER}"
echo "Status URL: "$STATUSURL
echo "Data URL: "$DATAURL
EXIT=0
while [ $EXIT -eq 0 ]; do
STATUS="`wget -qO- $STATUSURL`"
case "$STATUS" in
"Passed")
echo '\n\n'$STATUS
echo "======"
DATA="`wget -qO- $DATAURL`"
echo $DATA
exit 0
;;
"Failed")
echo '\n\n'$STATUS
echo "======"
DATA="`wget -qO- $DATAURL`"
echo $DATA
exit 1
;;
"Queued") printf "*" ;;
"Running") printf "." ;;
*)
echo "Unknown response: "$DATA
exit 1
;;
esac
sleep 1
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment