]> git.proxmox.com Git - ceph.git/blob - ceph/src/script/check_commands.sh
bump version to 18.2.2-pve1
[ceph.git] / ceph / src / script / check_commands.sh
1 #!/bin/sh
2
3 git grep -e COMMAND\( -e COMMAND_WITH_FLAG\( | grep -o "(\"[a-zA-Z ]*\"" | grep -o "[a-zA-Z ]*" | sort | uniq > commands.txt
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