diff options
author | Jake Petroules <jake.petroules@petroules.com> | 2015-01-21 22:32:34 -0800 |
---|---|---|
committer | Jake Petroules <jake.petroules@petroules.com> | 2015-01-22 16:47:58 +0100 |
commit | d388fa417fc28cc1d8af30db17b40f99c453af5e (patch) | |
tree | 05929ee72865b770ec9f1124bd16b6c51f83de60 /tests/auto/shared.h | |
parent | e04b5268728421aabc34f033adefbba488e80b6b (diff) | |
download | qbs-d388fa417fc28cc1d8af30db17b40f99c453af5e.tar.gz |
Fix framework bundle construction and add an autotest to prove it.
Change-Id: I8c24a5a048fef9b7e0da1934d9be5a01893edbe4
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'tests/auto/shared.h')
-rw-r--r-- | tests/auto/shared.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/shared.h b/tests/auto/shared.h index 711deaa41..772ad71a4 100644 --- a/tests/auto/shared.h +++ b/tests/auto/shared.h @@ -55,6 +55,12 @@ inline bool regularFileExists(const QString &filePath) return fi.exists() && fi.isFile(); } +inline bool directoryExists(const QString &dirPath) +{ + const QFileInfo fi(dirPath); + return fi.exists() && fi.isDir(); +} + inline QString uniqueProductName(const QString &productName, const QString &_profileName) { const QString p = _profileName.isEmpty() ? profileName() : _profileName; |