- Timestamp:
- Jul 2, 2015, 12:07:44 PM (7 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, proxy-ticket, upstream
- Children:
- 6ce02e2
- Parents:
- ae38a49
- Location:
- test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
test/TestMakefile
rae38a49 r7adbcd7 17 17 export MSVA_PORT ?= 9933 18 18 19 export TEST_GAP ?= 1.5 19 export TEST_GAP ?= 0.4 20 export TEST_MSVA_MAX_WAIT ?= 10 20 21 export TEST_QUERY_DELAY ?= 30 21 22 -
test/runtests
rae38a49 r7adbcd7 116 116 trap stop_msva EXIT 117 117 118 sleep "$TEST_GAP"119 120 118 printf "TESTING: initial MSVA verification\n" 121 MONKEYSPHERE_VALIDATION_AGENT_SOCKET="http://127.0.0.1:$MSVA_PORT" msva-query-agent https "$(cat client.uid)" x509pem client < client/x509.pem 122 printf "\nSUCCESS: initial MSVA verification\n" 119 # set to 0 if MSVA is up 120 ret=1 121 export MONKEYSPHERE_VALIDATION_AGENT_SOCKET="http://127.0.0.1:$MSVA_PORT" 122 # wait at most TEST_MSVA_MAX_WAIT seconds for MSVA to get ready 123 waited=0.0 124 until [ ${ret} -eq 0 ] \ 125 || [ $(echo "${waited} > ${TEST_MSVA_MAX_WAIT}" | bc) -eq 1 ]; do 126 if msva-query-agent https "$(cat client.uid)" x509pem client < client/x509.pem 127 then 128 ret=0 129 else 130 echo "MSVA not ready yet" 131 fi 132 sleep "${TEST_GAP}" 133 waited=$(echo "${waited} + ${TEST_GAP}" | bc) 134 done 135 136 # check if MSVA is up, fail if not 137 if [ ${ret} -eq 0 ]; then 138 printf "\nSUCCESS: initial MSVA verification\n" 139 else 140 printf "\nFAIL: initial MSVA verification\n" 141 exit 1 142 fi 123 143 fi 124 144
Note: See TracChangeset
for help on using the changeset viewer.