summaryrefslogtreecommitdiffstats
path: root/scripts/spdxcheck-test.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-11 08:27:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-11 08:27:49 +0000
commitace9429bb58fd418f0c81d4c2835699bddf6bde6 (patch)
treeb2d64bc10158fdd5497876388cd68142ca374ed3 /scripts/spdxcheck-test.sh
parentInitial commit. (diff)
downloadlinux-ace9429bb58fd418f0c81d4c2835699bddf6bde6.tar.xz
linux-ace9429bb58fd418f0c81d4c2835699bddf6bde6.zip
Adding upstream version 6.6.15.upstream/6.6.15
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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