devtools: move ABI scripts from buildtools
[dpdk.git] / devtools / check-git-log.sh
index 9dce7e0..f9d0550 100755 (executable)
@@ -90,14 +90,17 @@ bad=$(echo "$headlines" | grep -E --color=always \
        -e ':.*\<[hsf]w\>' \
        -e ':.*\<l[234]\>' \
        -e ':.*\<api\>' \
-       -e ':.*\<arm\>' \
-       -e ':.*\<armv7\>' \
-       -e ':.*\<armv8\>' \
+       -e ':.*\<ARM\>' \
+       -e ':.*\<(Aarch64|AArch64|AARCH64|Aarch32|AArch32|AARCH32)\>' \
+       -e ':.*\<(Armv7|ARMv7|ArmV7|armV7|ARMV7)\>' \
+       -e ':.*\<(Armv8|ARMv8|ArmV8|armV8|ARMV8)\>' \
        -e ':.*\<crc\>' \
+       -e ':.*\<dcb\>' \
        -e ':.*\<dma\>' \
        -e ':.*\<eeprom\>' \
        -e ':.*\<freebsd\>' \
        -e ':.*\<iova\>' \
+       -e ':.*\<lacp\>' \
        -e ':.*\<linux\>' \
        -e ':.*\<lro\>' \
        -e ':.*\<lsc\>' \
@@ -108,10 +111,15 @@ bad=$(echo "$headlines" | grep -E --color=always \
        -e ':.*\<nvm\>' \
        -e ':.*\<numa\>' \
        -e ':.*\<pci\>' \
+       -e ':.*\<phy\>' \
        -e ':.*\<pmd\>' \
+       -e ':.*\<reta\>' \
        -e ':.*\<rss\>' \
        -e ':.*\<sctp\>' \
+       -e ':.*\<tos\>' \
+       -e ':.*\<tpid\>' \
        -e ':.*\<tso\>' \
+       -e ':.*\<ttl\>' \
        -e ':.*\<udp\>' \
        -e ':.*\<[Vv]lan\>' \
        -e ':.*\<vdpa\>' \
@@ -153,6 +161,24 @@ bad=$(echo "$tags" |
        sed 's,^.,\t&,')
 [ -z "$bad" ] || printf "Wrong tag:\n$bad\n"
 
+# check missing Coverity issue: tag
+bad=$(for commit in $commits; do
+       body=$(git log --format='%b' -1 $commit)
+       echo "$body" | grep -qi coverity || continue
+       echo "$body" | grep -q '^Coverity issue:' && continue
+       git log --format='\t%s' -1 $commit
+done)
+[ -z "$bad" ] || printf "Missing 'Coverity issue:' tag:\n$bad\n"
+
+# check missing Bugzilla ID: tag
+bad=$(for commit in $commits; do
+       body=$(git log --format='%b' -1 $commit)
+       echo "$body" | grep -qi bugzilla || continue
+       echo "$body" | grep -q '^Bugzilla ID:' && continue
+       git log --format='\t%s' -1 $commit
+done)
+[ -z "$bad" ] || printf "Missing 'Bugzilla ID:' tag:\n$bad\n"
+
 # check missing Fixes: tag
 bad=$(for fix in $fixes ; do
        git log --format='%b' -1 $fix | grep -q '^Fixes: ' ||