Skip to content

Commit 4ce8192

Browse files
authored
Sort formal verification passlists (chipsalliance#1718)
Requires: chipsalliance#1716 Sorted using: ``` LANG=C sort -f -u -o formal/passlist.txt formal/passlist.txt LANG=C sort -f -u -o uhdm-tests/opentitan/opentitan_parsing_test/ot-cores-passlist.txt uhdm-tests/opentitan/opentitan_parsing_test/ot-cores-passlist.txt ``` This PR also adds check to CI to make sure this lists are sorted.
2 parents cfd5801 + d86100a commit 4ce8192

File tree

4 files changed

+713
-676
lines changed

4 files changed

+713
-676
lines changed

.github/scripts/sort_passlists.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
set -e -u -o pipefail
4+
shopt -s nullglob
5+
6+
declare -r SELF_DIR="$(dirname $(readlink -f ${BASH_SOURCE[0]}))"
7+
declare -r REPO_DIR=$SELF_DIR/../..
8+
cd $REPO_DIR
9+
10+
files_to_sort_check=(
11+
formal/passlist.txt
12+
uhdm-tests/opentitan/opentitan_parsing_test/ot-cores-passlist.txt
13+
)
14+
15+
for f in "${files_to_sort_check[@]}"; do
16+
LC_ALL=C.UTF-8 sort -f -u -o $f $f
17+
done

.github/workflows/main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,26 @@ jobs:
6161
emit-custom-branch-info-end
6262
} > $GITHUB_STEP_SUMMARY
6363
64+
style-check:
65+
name: Style check
66+
runs-on: [self-hosted, Linux, X64]
67+
container: bitnami/git:2.40.1-debian-11-r4
68+
69+
steps:
70+
- uses: actions/checkout@v3
71+
with:
72+
fetch-depth: 1
73+
74+
- name: Sort check
75+
run: |
76+
./.github/scripts/sort_passlists.sh
77+
if ! git diff --exit-code; then
78+
echo
79+
echo "Sort locally using: ./.github/scripts/sort_passlists.sh"
80+
echo
81+
false
82+
fi
83+
6484
build-binaries:
6585
name: Build Binaries
6686
runs-on: [self-hosted, Linux, X64]

0 commit comments

Comments
 (0)