]>
Commit | Line | Data |
---|---|---|
31f18b77 | 1 | #!/bin/sh |
9f95a23c TL |
2 | |
3 | git grep -e COMMAND\( -e COMMAND_WITH_FLAG\( | grep -o "(\"[a-zA-Z ]*\"" | grep -o "[a-zA-Z ]*" | sort | uniq > commands.txt | |
31f18b77 FG |
4 | missing_test=false |
5 | good_tests="" | |
6 | bad_tests="" | |
7 | while read cmd; do | |
8 | if git grep -q "$cmd" -- src/test qa/; then | |
9 | good_tests="$good_tests '$cmd'" | |
10 | else | |
11 | echo "'$cmd' has no apparent tests" | |
12 | missing_test=true | |
13 | bad_tests="$bad_tests '$cmd'" | |
14 | fi | |
15 | done < commands.txt | |
16 | ||
17 | if [ "$missing_test" == true ]; then | |
18 | echo "Missing tests!" $bad_tests | |
19 | exit 1; | |
20 | fi |