Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
24 lines
516 B
Python
Executable File
24 lines
516 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
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()
|