diff options
Diffstat (limited to 'scripts/spdxcheck-test.sh')
| -rw-r--r-- | scripts/spdxcheck-test.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/spdxcheck-test.sh b/scripts/spdxcheck-test.sh new file mode 100644 index 000000000000..cfea6a0d1cc0 --- /dev/null +++ b/scripts/spdxcheck-test.sh | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | for PYTHON in python2 python3; do | ||
| 4 | # run check on a text and a binary file | ||
| 5 | for FILE in Makefile Documentation/logo.gif; do | ||
| 6 | $PYTHON scripts/spdxcheck.py $FILE | ||
| 7 | $PYTHON scripts/spdxcheck.py - < $FILE | ||
| 8 | done | ||
| 9 | |||
| 10 | # run check on complete tree to catch any other issues | ||
| 11 | $PYTHON scripts/spdxcheck.py > /dev/null | ||
| 12 | done | ||
