Private
Public Access
2
0

java: added sanity checks for sample mapping and bindings

Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Stefan Andritoiu
2016-01-19 16:37:21 +02:00
committed by Brendan Le Foll
parent c564dad68f
commit 8b68f3040e
3 changed files with 97 additions and 0 deletions

23
tests/check_clean.py Executable file
View File

@@ -0,0 +1,23 @@
#!/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()