Skip to content

Commit

Permalink
make run-all.sh use matrix.yml
Browse files Browse the repository at this point in the history
Avoid double provisioning by using the same config file
  • Loading branch information
razvancrainea committed Nov 24, 2023
1 parent e8ade1d commit 291254b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
2 changes: 2 additions & 0 deletions matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ scenario:
- stir-shaken
- topology-hiding
- uac-auth
params:
- --exclude topology-hiding/02.th-no-dialog-username
20 changes: 7 additions & 13 deletions run-all.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
#!/bin/bash

DIR="$( dirname "${BASH_SOURCE[0]}")"
yaml_list() {
python3 -c "import yaml;print(' '.join(yaml.safe_load(open('$DIR/matrix.yml'))['$1']))"
}

# exclude tests that we know they fail for sure
PARAMS=${PARAMS:---exclude topology-hiding/02.th-no-dialog-username}
PARAMS=${PARAMS:-$(yaml_list params)}

SETS=${SETS:-startup
registration \
auth \
record-route \
dialog \
topology-hiding \
b2b \
uac-auth \
stir-shaken \
accounting \
presence \
permissions}
SETS=${SETS:-$(yaml_list scenario)}

sipssert \
$PARAMS \
Expand Down

0 comments on commit 291254b

Please sign in to comment.