summaryrefslogtreecommitdiffstats
path: root/test/update-test-cmd-list
blob: 115ae165c7f3a2a48f483650de17a673176179e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash -eu

mydir=$(
    cd "$(dirname "$0")"
    pwd
)

cat "$mydir"/t/test_*.py |
    tr -d '\n' |
    grep -Eo '@pytest.mark.complete(\([^)]*\))' |
    sed -ne 's/^[^"]*"\\\?\([^_][^[:space:]"]*\)[[:space:]"].*/\1/p' |
    sort -u \
        >"$mydir"/test-cmd-list.txt