forked from jakubopatowski/wolverine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_builddata.py
63 lines (57 loc) · 3.16 KB
/
test_builddata.py
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import unittest
import builddata
class TestBuildData(unittest.TestCase):
def setUp(self):
self.bd = builddata.BuildData()
def test_get_qt_target(self):
self.assertEqual(self.bd.get_qt_target('Qt3Supportd.lib'),
'Qt4::Qt3Support')
self.assertEqual(self.bd.get_qt_target(''), '')
self.assertEqual(self.bd.get_qt_target('phonon'), 'phonon')
self.assertEqual(self.bd.get_qt_target('phonond.lib'), 'Qt4::phonon')
self.assertEqual(self.bd.get_qt_target('QtJopad.lib'), 'QtJopad.lib')
self.assertEqual(self.bd.get_qt_target('QtCored.lib'), 'Qt4::QtCore')
self.assertEqual(self.bd.get_qt_target('QtGuid.lib'), 'Qt4::QtGui')
self.assertEqual(self.bd.get_qt_target('QtAssistantd.lib'),
'Qt4::QtAssistant')
self.assertEqual(self.bd.get_qt_target('QtAssistantClientd.lib'),
'Qt4::QtAssistantClient')
self.assertEqual(self.bd.get_qt_target('QAxContainerd.lib'),
'Qt4::QAxContainer')
self.assertEqual(self.bd.get_qt_target('QtAxContainerd.lib'),
'QtAxContainerd.lib')
self.assertEqual(self.bd.get_qt_target('QAxServerd.lib'),
'Qt4::QAxServer')
self.assertEqual(self.bd.get_qt_target('QtAxServerd.lib'),
'QtAxServerd.lib')
self.assertEqual(self.bd.get_qt_target('QtDBusd.lib'), 'Qt4::QtDBus')
self.assertEqual(self.bd.get_qt_target('QtDesignerd.lib'),
'Qt4::QtDesigner')
self.assertEqual(self.bd.get_qt_target('QtDesignerComponentsd.lib'),
'Qt4::QtDesignerComponents')
self.assertEqual(self.bd.get_qt_target('QtHelpd.lib'), 'Qt4::QtHelp')
self.assertEqual(self.bd.get_qt_target('QtMotifd.lib'), 'Qt4::QtMotif')
self.assertEqual(self.bd.get_qt_target('QtMultimediad.lib'),
'Qt4::QtMultimedia')
self.assertEqual(self.bd.get_qt_target('QtNetworkd.lib'),
'Qt4::QtNetwork')
self.assertEqual(self.bd.get_qt_target('QtNsPlugind.lib'),
'Qt4::QtNsPlugin')
self.assertEqual(self.bd.get_qt_target('QtOpenGLd.lib'),
'Qt4::QtOpenGL')
self.assertEqual(self.bd.get_qt_target('QtScriptd.lib'),
'Qt4::QtScript')
self.assertEqual(self.bd.get_qt_target('QtScriptToolsd.lib'),
'Qt4::QtScriptTools')
self.assertEqual(self.bd.get_qt_target('QtSqld.lib'), 'Qt4::QtSql')
self.assertEqual(self.bd.get_qt_target('QtSvgd.lib'), 'Qt4::QtSvg')
self.assertEqual(self.bd.get_qt_target('QtTestd.lib'), 'Qt4::QtTest')
self.assertEqual(self.bd.get_qt_target('QtUiToolsd.lib'),
'Qt4::QtUiTools')
self.assertEqual(self.bd.get_qt_target('QtWebKitd.lib'),
'Qt4::QtWebKit')
self.assertEqual(self.bd.get_qt_target('QtXmld.lib'), 'Qt4::QtXml')
self.assertEqual(self.bd.get_qt_target('QtXmlPatternsd.lib'),
'Qt4::QtXmlPatterns')
if __name__ == '__main__':
unittest.main()