forked from qt-creator/qt-creator
Squish: Fix tst_HELP05
Additionally move Qt5Path helper class into classes.py as it's now used in more than one test suite. Change-Id: I0a1faed7fa8c082316c5568e4150091812af8979 Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
This commit is contained in:
@@ -172,3 +172,33 @@ class LibType:
|
||||
if libType == LibType.QT_PLUGIN:
|
||||
return "Qt Plugin"
|
||||
return None
|
||||
|
||||
class Qt5Path:
|
||||
DOCS = 0
|
||||
EXAMPLES = 1
|
||||
|
||||
@staticmethod
|
||||
def getPaths(pathSpec):
|
||||
if pathSpec == Qt5Path.DOCS:
|
||||
path52 = "/doc"
|
||||
path53 = "/Docs/Qt-5.3"
|
||||
path54 = "/Docs/Qt-5.4"
|
||||
elif pathSpec == Qt5Path.EXAMPLES:
|
||||
path52 = "/examples"
|
||||
path53 = "/Examples/Qt-5.3"
|
||||
path54 = "/Examples/Qt-5.4"
|
||||
else:
|
||||
test.fatal("Unknown pathSpec given: %s" % str(pathSpec))
|
||||
return []
|
||||
if platform.system() in ('Microsoft', 'Windows'):
|
||||
return ["C:/Qt/Qt5.2.1/5.2.1/msvc2010" + path52,
|
||||
"C:/Qt/Qt5.3.1" + path53, "C:/Qt/Qt5.4.1" + path54]
|
||||
elif platform.system() == 'Linux':
|
||||
if __is64BitOS__():
|
||||
return map(os.path.expanduser, ["~/Qt5.2.1/5.2.1/gcc_64" + path52,
|
||||
"~/Qt5.3.1" + path53, "~/Qt5.4.1" + path54])
|
||||
return map(os.path.expanduser, ["~/Qt5.2.1/5.2.1/gcc" + path52,
|
||||
"~/Qt5.3.1" + path53, "~/Qt5.4.1" + path54])
|
||||
else:
|
||||
return map(os.path.expanduser, ["~/Qt5.2.1/5.2.1/clang_64" + path52,
|
||||
"~/Qt5.3.1" + path53])
|
||||
|
||||
Reference in New Issue
Block a user