Add the rabbitmq module
This commit is contained in:
19
rabbitmq/scripts/run-all.sh
Executable file
19
rabbitmq/scripts/run-all.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
# Regenerate every file under docs/output/.
|
||||
#
|
||||
# Starts a real RabbitMQ broker first. Set ERL_ROOT and RABBITMQ_HOME (see scripts/broker.sh),
|
||||
# or point spring.rabbitmq.host at a broker you already have and skip the first line.
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
./scripts/broker.sh
|
||||
mvn -B test 2>&1 | tee /tmp/rabbit-test.log > /dev/null
|
||||
|
||||
sed -n '/=== topic exchange ===/,/^order\.high/p' /tmp/rabbit-test.log > docs/output/topic-wildcards.txt
|
||||
sed -n '/=== x-death after basicNack/,/^ queue/p' /tmp/rabbit-test.log > docs/output/dead-letter.txt
|
||||
sed -n '/=== x-death after x-message-ttl/,/^ queue/p' /tmp/rabbit-test.log >> docs/output/dead-letter.txt
|
||||
sed -n '/=== x-death after x-max-length/,/^ body/p' /tmp/rabbit-test.log >> docs/output/dead-letter.txt
|
||||
sed -n '/=== basicNack(requeue=true)/,/still on queue/p' /tmp/rabbit-test.log > docs/output/requeue-loop.txt
|
||||
sed -n '/=== returned message ===/,/routingKey/p' /tmp/rabbit-test.log > docs/output/unroutable.txt
|
||||
sed -n '/=== redeclaring orders.ttl/,+1p' /tmp/rabbit-test.log > docs/output/precondition-failed.txt
|
||||
grep -E 'Tests run:.*in com\.ankurm' /tmp/rabbit-test.log | sed 's/^\[INFO\] //' > docs/output/tests.txt
|
||||
echo "regenerated:"; ls -1 docs/output/
|
||||
Reference in New Issue
Block a user