summaryrefslogtreecommitdiff
path: root/sw/qa/extras/find-unused-data.sh
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-04-11 13:17:06 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-04-12 07:40:24 +0200
commitef68c2b97de163d1fd3a960675addc1eb3d4bc6f (patch)
treee21cf3580be6b65c9477433d0dc871e2f5c16ceb /sw/qa/extras/find-unused-data.sh
parente7111979c6ca1d935662fa13f603847967c5562f (diff)
sw/qa: add new script to make sure all files are tested
When some import filter fix arrives in, and the submitter submits a test file, but doesn't provide a matching testcase, we accept the patch, as it's better than nothing. This script will search for such files, providing kind of a TODO list for what testcases have to be implemented. Change-Id: I713fe2f0aef4cbca66ba913baf54b7bd28ba2471
Diffstat (limited to 'sw/qa/extras/find-unused-data.sh')
-rwxr-xr-xsw/qa/extras/find-unused-data.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/qa/extras/find-unused-data.sh b/sw/qa/extras/find-unused-data.sh
new file mode 100755
index 000000000000..9f4496871875
--- /dev/null
+++ b/sw/qa/extras/find-unused-data.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+for i in */data/*
+do
+ file=$(basename $i)
+ if ! git grep -q $file; then
+ echo "WARNING: $i is not used, write a testcase for it!"
+ fi
+done
+
+# vi:set shiftwidth=4 expandtab: