summaryrefslogtreecommitdiffstats
path: root/scripts/spdxcheck-test.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scripts/spdxcheck-test.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/spdxcheck-test.sh b/scripts/spdxcheck-test.sh
new file mode 100644
index 0000000000..9f6d1a74da
--- /dev/null
+++ b/scripts/spdxcheck-test.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# run check on a text and a binary file
+for FILE in Makefile Documentation/images/logo.gif; do
+ python3 scripts/spdxcheck.py $FILE
+ python3 scripts/spdxcheck.py - < $FILE
+done
+
+# run check on complete tree to catch any other issues
+python3 scripts/spdxcheck.py > /dev/null