diff options
author | dcorbacho <dparracorbacho@piotal.io> | 2020-11-18 14:27:41 +0000 |
---|---|---|
committer | dcorbacho <dparracorbacho@piotal.io> | 2020-11-18 14:27:41 +0000 |
commit | f23a51261d9502ec39df0f8db47ba6b22aa7659f (patch) | |
tree | 53dcdf46e7dc2c14e81ee960bce8793879b488d3 /ci/scripts/validate-workflow.sh | |
parent | afa2c2bf6c7e0e9b63f4fb53dc931c70388e1c82 (diff) | |
parent | 9f6d64ec4a4b1eeac24d7846c5c64fd96798d892 (diff) | |
download | rabbitmq-server-git-stream-timestamp-offset.tar.gz |
Merge remote-tracking branch 'origin/master' into stream-timestamp-offsetstream-timestamp-offset
Diffstat (limited to 'ci/scripts/validate-workflow.sh')
-rwxr-xr-x | ci/scripts/validate-workflow.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ci/scripts/validate-workflow.sh b/ci/scripts/validate-workflow.sh new file mode 100755 index 0000000000..3614953ee3 --- /dev/null +++ b/ci/scripts/validate-workflow.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +set -euo pipefail + +cd deps/${project} + +trap 'catch $?' EXIT + +catch() { + rm expected_suites.txt actual_suites.txt +} + +touch expected_suites.txt +for arg in "$@"; do + echo "test/${arg}_SUITE.erl" >> expected_suites.txt +done +sort -o expected_suites.txt expected_suites.txt + +touch actual_suites.txt +for f in test/*_SUITE.erl; do + echo "$f" >> actual_suites.txt +done +sort -o actual_suites.txt actual_suites.txt + +set -x +diff actual_suites.txt expected_suites.txt |