mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
namespaced build fixes for tests
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
9d1e14030e
commit
8af99b63d4
28 changed files with 50 additions and 39 deletions
|
@ -13,7 +13,7 @@ safe_path_append() {
|
||||||
IFS=":"
|
IFS=":"
|
||||||
found=""
|
found=""
|
||||||
for i in $2;do
|
for i in $2;do
|
||||||
# TODO: maybe check for match without trailing slash too?
|
# TODO: maybe check for match with and without trailing slash too?
|
||||||
if [ "$i" = "$3" ];then
|
if [ "$i" = "$3" ];then
|
||||||
found="yes"
|
found="yes"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
# TODO: fix them warnings
|
|
||||||
add_definitions(-UQT_ASCII_CAST_WARNINGS)
|
|
||||||
|
|
||||||
katie_test(tst_qlocale
|
katie_test(tst_qlocale
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/tst_qlocale.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/tst_qlocale.cpp
|
||||||
)
|
)
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
// TODO: should check if feenableexcept is available
|
// TODO: should check if feenableexcept is available
|
||||||
#if defined(Q_OS_LINUX) && defined(__GLIBC__)
|
#if defined(Q_OS_LINUX) && defined(__GLIBC__)
|
||||||
|
@ -59,7 +60,7 @@
|
||||||
# include <fenv.h>
|
# include <fenv.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(qlonglong)
|
Q_DECLARE_METATYPE(qlonglong)
|
||||||
Q_DECLARE_METATYPE(QDate)
|
Q_DECLARE_METATYPE(QDate)
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
# TODO: fix them warnings
|
|
||||||
add_definitions(-UQT_ASCII_CAST_WARNINGS)
|
|
||||||
|
|
||||||
katie_test(tst_qsqldatabase
|
katie_test(tst_qsqldatabase
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/tst_qsqldatabase.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/tst_qsqldatabase.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/tst_databases.h
|
${CMAKE_CURRENT_SOURCE_DIR}/tst_databases.h
|
||||||
|
|
|
@ -54,6 +54,8 @@
|
||||||
|
|
||||||
#define NODATABASE_SKIP "No database drivers are available in this Qt configuration"
|
#define NODATABASE_SKIP "No database drivers are available in this Qt configuration"
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
#include "tst_databases.h"
|
#include "tst_databases.h"
|
||||||
|
|
||||||
//TESTED_FILES=
|
//TESTED_FILES=
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
|
|
||||||
#include <qtest.h>
|
#include <qtest.h>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class tst_qiodevice : public QObject
|
class tst_qiodevice : public QObject
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
#include <QTemporaryFile>
|
#include <QTemporaryFile>
|
||||||
#include <qtest.h>
|
#include <qtest.h>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class tst_qtemporaryfile : public QObject
|
class tst_qtemporaryfile : public QObject
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,6 +42,8 @@
|
||||||
#include <qurl.h>
|
#include <qurl.h>
|
||||||
#include <qtest.h>
|
#include <qtest.h>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class tst_qurl: public QObject
|
class tst_qurl: public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -43,6 +43,8 @@
|
||||||
#include <qtest.h>
|
#include <qtest.h>
|
||||||
#include <qtesteventloop.h>
|
#include <qtesteventloop.h>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class PingPong : public QObject
|
class PingPong : public QObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -42,6 +42,8 @@
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <qtest.h>
|
#include <qtest.h>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class LotsOfSignals : public QObject
|
class LotsOfSignals : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -42,6 +42,8 @@
|
||||||
#include <qtest.h>
|
#include <qtest.h>
|
||||||
#include <QtCore/qmetatype.h>
|
#include <QtCore/qmetatype.h>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
//TESTED_FILES=
|
//TESTED_FILES=
|
||||||
|
|
||||||
class tst_QMetaType : public QObject
|
class tst_QMetaType : public QObject
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
#include <qcoreapplication.h>
|
#include <qcoreapplication.h>
|
||||||
#include <qdatetime.h>
|
#include <qdatetime.h>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
CreationDeletionBenckmarkConstant = 34567,
|
CreationDeletionBenckmarkConstant = 34567,
|
||||||
SignalsAndSlotsBenchmarkConstant = 456789
|
SignalsAndSlotsBenchmarkConstant = 456789
|
||||||
|
|
|
@ -43,6 +43,8 @@
|
||||||
|
|
||||||
#include <qobject.h>
|
#include <qobject.h>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class Object : public QObject
|
class Object : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -44,6 +44,8 @@
|
||||||
|
|
||||||
#define INVOKE_COUNT 10000
|
#define INVOKE_COUNT 10000
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class qtimer_vs_qmetaobject : public QObject
|
class qtimer_vs_qmetaobject : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
|
|
||||||
#define ITERATION_COUNT 1e5
|
#define ITERATION_COUNT 1e5
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class tst_qvariant : public QObject
|
class tst_qvariant : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -43,6 +43,8 @@
|
||||||
#include <QtCore/QUuid>
|
#include <QtCore/QUuid>
|
||||||
#include <QtTest/QtTest>
|
#include <QtTest/QtTest>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class tst_bench_QUuid : public QObject
|
class tst_bench_QUuid : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -43,10 +43,9 @@
|
||||||
#include <QtTest/QtTest>
|
#include <QtTest/QtTest>
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#if defined(Q_OS_UNIX)
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
typedef pthread_mutex_t NativeMutexType;
|
typedef pthread_mutex_t NativeMutexType;
|
||||||
void NativeMutexInitialize(NativeMutexType *mutex)
|
void NativeMutexInitialize(NativeMutexType *mutex)
|
||||||
{
|
{
|
||||||
|
@ -64,27 +63,8 @@ void NativeMutexUnlock(NativeMutexType *mutex)
|
||||||
{
|
{
|
||||||
pthread_mutex_unlock(mutex);
|
pthread_mutex_unlock(mutex);
|
||||||
}
|
}
|
||||||
#elif defined(Q_OS_WIN)
|
|
||||||
# define _WIN32_WINNT 0x0400
|
QT_USE_NAMESPACE
|
||||||
# include <windows.h>
|
|
||||||
typedef CRITICAL_SECTION NativeMutexType;
|
|
||||||
void NativeMutexInitialize(NativeMutexType *mutex)
|
|
||||||
{
|
|
||||||
InitializeCriticalSection(mutex);
|
|
||||||
}
|
|
||||||
void NativeMutexDestroy(NativeMutexType *mutex)
|
|
||||||
{
|
|
||||||
DeleteCriticalSection(mutex);
|
|
||||||
}
|
|
||||||
void NativeMutexLock(NativeMutexType *mutex)
|
|
||||||
{
|
|
||||||
EnterCriticalSection(mutex);
|
|
||||||
}
|
|
||||||
void NativeMutexUnlock(NativeMutexType *mutex)
|
|
||||||
{
|
|
||||||
LeaveCriticalSection(mutex);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//TESTED_FILES=
|
//TESTED_FILES=
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class tst_QWaitCondition : public QObject
|
class tst_QWaitCondition : public QObject
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,6 +42,8 @@
|
||||||
|
|
||||||
#include <qtest.h>
|
#include <qtest.h>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class tst_associative_containers : public QObject
|
class tst_associative_containers : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -42,9 +42,11 @@
|
||||||
|
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#include <QVector>
|
#include <QVector>
|
||||||
|
#include <qtest.h>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <qtest.h>
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
template <typename T> // T is the item type
|
template <typename T> // T is the item type
|
||||||
class UseCases {
|
class UseCases {
|
||||||
|
|
|
@ -42,10 +42,11 @@
|
||||||
#include <QIODevice>
|
#include <QIODevice>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
#include <qtest.h>
|
#include <qtest.h>
|
||||||
|
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class tst_qbytearray : public QObject
|
class tst_qbytearray : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -43,10 +43,12 @@
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
#include <QCache>
|
#include <QCache>
|
||||||
#include <QContiguousCache>
|
#include <QContiguousCache>
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class tst_QContiguousCache : public QObject
|
class tst_QContiguousCache : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -72,10 +72,8 @@ Totals: 4 passed, 0 failed, 0 skipped
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
|
|
||||||
class tst_QHash : public QObject
|
class tst_QHash : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -41,6 +41,8 @@
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
struct String : QString
|
struct String : QString
|
||||||
{
|
{
|
||||||
String() {}
|
String() {}
|
||||||
|
|
|
@ -44,6 +44,8 @@
|
||||||
#include <qtest.h>
|
#include <qtest.h>
|
||||||
#include <QLine>
|
#include <QLine>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class tst_qline : public QObject
|
class tst_qline : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -42,6 +42,8 @@
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
static const int N = 1000;
|
static const int N = 1000;
|
||||||
|
|
||||||
struct MyBase
|
struct MyBase
|
||||||
|
|
|
@ -43,6 +43,8 @@
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <qtest.h>
|
#include <qtest.h>
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class tst_qrect : public QObject
|
class tst_qrect : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -43,13 +43,13 @@
|
||||||
#include <QRegExp>
|
#include <QRegExp>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
|
||||||
#include <qtest.h>
|
#include <qtest.h>
|
||||||
|
|
||||||
#include <QtScript>
|
#include <QtScript>
|
||||||
|
|
||||||
#define ZLIB_VERSION "1.2.3.4"
|
#define ZLIB_VERSION "1.2.3.4"
|
||||||
|
|
||||||
|
QT_USE_NAMESPACE
|
||||||
|
|
||||||
class tst_qregexp : public QObject
|
class tst_qregexp : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
Loading…
Add table
Reference in a new issue