mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 09:51:14 +03:00
java: Added sanity checks and integrated them in CMake. Updated sample names and sample mapping.
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
46996e5251
commit
40f9135412
35
tests/check_clean.py
Executable file
35
tests/check_clean.py
Executable file
@ -0,0 +1,35 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import unittest as u
|
||||
import re, fnmatch, os
|
||||
|
||||
rootDir = '../build/src/'
|
||||
swigtypeStr = 'SWIGTYPE'
|
||||
|
||||
class Clean(u.TestCase):
|
||||
|
||||
def test_existing_swigtype(self):
|
||||
unclean = []
|
||||
|
||||
for dirName in os.listdir(rootDir):
|
||||
dirPath = os.path.join(rootDir, dirName)
|
||||
if not os.path.isdir(dirPath):
|
||||
continue
|
||||
|
||||
ok = True
|
||||
for subdir, dirs, files in os.walk(dirPath):
|
||||
if not ok:
|
||||
break
|
||||
for fileName in files:
|
||||
if swigtypeStr in fileName:
|
||||
unclean.append(dirName)
|
||||
ok = False
|
||||
break
|
||||
|
||||
self.assertEqual( len(unclean), 0,
|
||||
"\nThe following modules have unclean Java bindings:\n" + \
|
||||
"\n".join(unclean) + "\n\n" + \
|
||||
"Consider adding them to the SWIGJAVA blacklist")
|
||||
|
||||
if __name__ == '__main__':
|
||||
u.main()
|
Reference in New Issue
Block a user