| 1 | #/usr/bin/env bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | TOPLEVEL=$(git rev-parse --show-toplevel) |
| 6 | |
| 7 | BLOB=${1:-main} |
| 8 | |
| 9 | pushd $TOPLEVEL > /dev/null |
| 10 | |
| 11 | duvet \ |
| 12 | report \ |
| 13 | --spec-path 'compliance' \ |
| 14 | --spec-pattern 'compliance/specs/**/*.toml' \ |
| 15 | --source-pattern '(*=,*#)api/**/*.[ch]' \ |
| 16 | --source-pattern '(*=,*#)bin/**/*.[ch]' \ |
| 17 | --source-pattern '(*=,*#)crypto/**/*.[ch]' \ |
| 18 | --source-pattern '(*=,*#)error/**/*.[ch]' \ |
| 19 | --source-pattern '(*=,*#)stuffer/**/*.[ch]' \ |
| 20 | --source-pattern '(*=,*#)tests/**/*.[ch]' \ |
| 21 | --source-pattern '(*=,*#)tls/**/*.[ch]' \ |
| 22 | --source-pattern '(*=,*#)utils/**/*.[ch]' \ |
| 23 | --require-tests false \ |
| 24 | --blob-link "https://github.com/aws/s2n/blob/$BLOB" \ |
| 25 | --issue-link 'https://github.com/aws/s2n/issues' \ |
| 26 | --no-cargo \ |
| 27 | --html compliance/report.html |
| 28 | |
| 29 | echo "report available in compliance/report.html" |
| 30 | |
| 31 | popd > /dev/null |
| 32 |