Skip to content
Snippets Groups Projects
Commit a935003f authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #7350: Show all queues that fail to match in output

parent 10d215bc
No related branches found
No related tags found
No related merge requests found
...@@ -65,11 +65,16 @@ echo " in directory $(pwd)" ...@@ -65,11 +65,16 @@ echo " in directory $(pwd)"
mkdir "queues" || error "Failed to create temporary directory ${OUTDIR}/queues" mkdir "queues" || error "Failed to create temporary directory ${OUTDIR}/queues"
echo "[ -d ${PWD}/queues ] && cp -r ${PWD}/queues ${REFDIR}" >> accept_output echo "[ -d ${PWD}/queues ] && cp -r ${PWD}/queues ${REFDIR}" >> accept_output
QUEUES=`cd ${REFDIR}/queues 2>/dev/null && ls` QUEUES=`cd ${REFDIR}/queues 2>/dev/null && ls`
INCORRECT_QUEUES=""
for Q in $QUEUES; do for Q in $QUEUES; do
echo "Comparing output of queue $Q" echo "Comparing output of queue $Q"
@QPID_RECEIVE_EXECUTABLE@ -b 127.0.0.1 -a $Q --ignore-reply-to > queues/$Q || error "Could not read output of queue $Q" @QPID_RECEIVE_EXECUTABLE@ -b 127.0.0.1 -a $Q --ignore-reply-to > queues/$Q || error "Could not read output of queue $Q"
diff ${REFDIR}/queues/$Q queues/$Q || error "Output of queue $Q does not match" diff ${REFDIR}/queues/$Q queues/$Q || INCORRECT_QUEUES+="$Q "
done done
if [ "$INCORRECT_QUEUES" != "" ]; then
error "Output of queue(s) $INCORRECT_QUEUES do(es) not match"
fi
fi fi
) || exit 1 ) || exit 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment