Files
mraa/tests/check_clean.py
Thomas Ingleby 170bdd104f spdx: add spdx tags to most files
Large change that removes the duplicated MIT notice withe a spdx tag

Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
2019-05-23 10:09:12 -07:00

26 lines
587 B
Python
Executable File

#!/usr/bin/python
# Copyright (c) 2016 Intel Corporation.
# SPDX-License-Identifier: MIT
import unittest as u
import re, fnmatch, os
rootDir = 'src/java'
swigtypeStr = 'SWIGTYPE'
class Clean(u.TestCase):
def test_existing_swigtype(self):
unclean = []
for fileName in os.listdir(rootDir):
if swigtypeStr in fileName:
unclean.append(fileName)
self.assertEqual( len(unclean), 0,
"\nmraa contains unclean Java bindings:\n" + \
"\n".join(unclean) + "\n\n")
if __name__ == '__main__':
u.main()