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