summaryrefslogtreecommitdiff
path: root/scripts/spdxcheck-test.sh
diff options
context:
space:
mode:
authorkx <kx@radix.pro>2023-10-28 12:00:06 +0300
committerkx <kx@radix.pro>2023-10-28 12:00:06 +0300
commit8f3ce5b3998ec82c96385f8ce3d5fd6d24c8b859 (patch)
tree5bda49164664ad1429852668300d19bf559c830a /scripts/spdxcheck-test.sh
downloadlinux-orangepi-5.10.y-8f3ce5b3998ec82c96385f8ce3d5fd6d24c8b859.tar.xz
Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards
Diffstat (limited to 'scripts/spdxcheck-test.sh')
-rw-r--r--scripts/spdxcheck-test.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/spdxcheck-test.sh b/scripts/spdxcheck-test.sh
new file mode 100644
index 000000000..cfea6a0d1
--- /dev/null
+++ b/scripts/spdxcheck-test.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+for PYTHON in python2 python3; do
+ # run check on a text and a binary file
+ for FILE in Makefile Documentation/logo.gif; do
+ $PYTHON scripts/spdxcheck.py $FILE
+ $PYTHON scripts/spdxcheck.py - < $FILE
+ done
+
+ # run check on complete tree to catch any other issues
+ $PYTHON scripts/spdxcheck.py > /dev/null
+done