[Pkg-owncloud-commits] [owncloud-client] 418/498: test Utility: really check for a version string.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 2a22cec442d29b20e74b7de9dfd530ac26064cc9
Author: Klaas Freitag <freitag at owncloud.com>
Date: Fri Jul 31 15:38:01 2015 +0200
test Utility: really check for a version string.
---
test/testutility.h | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/test/testutility.h b/test/testutility.h
index 87c1351..29956ef 100644
--- a/test/testutility.h
+++ b/test/testutility.h
@@ -110,10 +110,13 @@ private slots:
{
if( isLinux() ) {
QString ver = versionOfInstalledBinary(OWNCLOUD_BIN);
- qDebug() << "Version of installed ownCloud Binary: " << ver;
- QVERIFY( !ver.isEmpty());
+ qDebug() << "Version of installed ownCloud Binary: " << ver;
+ QVERIFY( !ver.isEmpty());
+
+ QRegExp rx( "ownCloud version \\d+\\.\\d+\\.\\d+.+" );
+ QVERIFY( rx.exactMatch(ver));
} else {
- QVERIFY( versionOfInstalledBinary().isEmpty());
+ QVERIFY( versionOfInstalledBinary().isEmpty());
}
}
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list