]> git.proxmox.com Git - ceph.git/blame - ceph/src/script/check_commands.sh
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / script / check_commands.sh
CommitLineData
31f18b77
FG
1#!/bin/sh
2git grep COMMAND\( | grep -o "(\"[a-zA-z ]*\"" | grep -o "[a-zA-z ]*" > commands.txt
3missing_test=false
4good_tests=""
5bad_tests=""
6while 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
14done < commands.txt
15
16if [ "$missing_test" == true ]; then
17 echo "Missing tests!" $bad_tests
18 exit 1;
19fi