Lines Matching +full:- +full:ne

30 QEMU_FIFO_IN="${QEMU_TEST_DIR}/qmp-in-$$"
31 QEMU_FIFO_OUT="${QEMU_TEST_DIR}/qmp-out-$$"
53 # If $mismatch_only is set, only non-matching responses will
56 # If $capture_events is non-empty, then any QMP event names it lists
71 # is not set) or ${QEMU_STATUS[$1]} is set to -1 (otherwise).
77 if [ -z "${success_or_failure}" ]; then
88 read_timeout="-t ${QEMU_COMM_TIMEOUT}"
89 if [ -n "${GDB_OPTIONS}" ]; then
95 if [ -n "$capture_events" ]; then
106 ev=$(echo "${resp}" | tr -d '\r' | tr % .)
108 if [ -n "$only_capture_events" ]; then
115 if [ -n "$only_capture_events" ]; then
120 if [ -z "${silent}" ] && [ -z "${mismatch_only}" ]; then
124 if [ -n "${failure_match}" ]; then
125 grep -q "${failure_match}" < <(echo "${resp}")
126 if [ $? -eq 0 ]; then
131 grep -q "${success_match}" < <(echo "${resp}")
132 if [ $? -eq 0 ]; then
135 if [ -z "${silent}" ] && [ -n "${mismatch_only}" ]; then
141 QEMU_STATUS[$h]=-1
142 if [ -z "${qemu_error_no_exit}" ]; then
143 if [ -n "${timeout}" ]; then
157 # ${@: -1} (Last string passed)
169 # is not seen, we will not exit. $QEMU_STATUS[$1] will be set it -1 in
184 if [ ${qemu_cmd_repeat} -gt 0 ] 2>/dev/null; then
194 if [ -z "$silent" ] && [ -z "$mismatch_only" ] &&
198 while [ ${count} -gt 0 ]
201 if [ -n "${1}" ]; then
202 if [ -z "${success_or_failure}" ]; then
207 if [ ${QEMU_STATUS[$h]} -eq 0 ]; then
211 let count--;
213 if [ ${QEMU_STATUS[$h]} -ne 0 ] && [ -z "${qemu_error_no_exit}" ]; then
237 if [ -n "$QEMU_EVENTS" ]; then
244 grep -q "$match" < <(echo "${ev}")
245 if [ $? -eq 0 ] && [ $matched = 0 ]; then
283 if [ ${QEMU_STATUS[$h]} -ne 0 ] ; then
308 if (shopt -s nocasematch; [[ "${qemu_comm_method}" == "monitor" ]])
310 comm="-monitor stdio"
314 comm="-monitor none -qmp-pretty stdio"
316 comm="-monitor none -qmp stdio"
326 if [ -n "$IMGKEYSECRET" ]; then
327 object_options="--object secret,id=keysec0,data=$IMGKEYSECRET"
330 if [ -z "$keep_stderr" ]; then
332 ${QEMU} ${object_options} -nographic -serial none ${comm} "${@}" >"${fifo_out}" \
337 ${QEMU} ${object_options} -nographic -serial none ${comm} "${@}" >"${fifo_out}" \
343 if [[ "${BASH_VERSINFO[0]}" -ge "5" ||
344 ("${BASH_VERSINFO[0]}" -ge "4" && "${BASH_VERSINFO[1]}" -ge "1") ]]
384 if [ -f "${QEMU_TEST_DIR}/qemu-${i}.pid" ]; then
385 read QEMU_PID < "${QEMU_TEST_DIR}/qemu-${i}.pid"
386 rm -f "${QEMU_TEST_DIR}/qemu-${i}.pid"
387 if [ -z "${wait}" ] && [ -n "${QEMU_PID}" ]; then
388 kill -KILL ${QEMU_PID} 2>/dev/null
390 if [ -n "${QEMU_PID}" ]; then
395 if [ -n "${wait}" ]; then
399 rm -f "${QEMU_FIFO_IN}_${i}" "${QEMU_FIFO_OUT}_${i}"
400 eval "exec ${QEMU_IN[$i]}<&-" # close file descriptors
401 eval "exec ${QEMU_OUT[$i]}<&-"