blob: 7382e8c4122e3c4c53a21047ec05a76de867224f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/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()
|