diff options
author | João Abecasis <joao@trolltech.com> | 2010-02-12 17:36:41 (GMT) |
---|---|---|
committer | João Abecasis <joao@trolltech.com> | 2010-02-18 18:22:15 (GMT) |
commit | b8f9453eec3b218317a3dae0acfe444bc00c3093 (patch) | |
tree | d8e3006104faa934a818888bdff44da770bb7fe3 | |
parent | b408d94902ef0b2856a4c462e06fcc4412de49be (diff) | |
download | Qt-b8f9453eec3b218317a3dae0acfe444bc00c3093.zip Qt-b8f9453eec3b218317a3dae0acfe444bc00c3093.tar.gz Qt-b8f9453eec3b218317a3dae0acfe444bc00c3093.tar.bz2 |
Moving QDir benchmarks; making way for new test cases
Also, removed dependency on QtGui; gave test case a more meaningful
name; using bench_ prefix, instead of tst_ for benchmarks.
-rw-r--r-- | tests/benchmarks/corelib/io/qdir/10000/10000.pro | 10 | ||||
-rw-r--r-- | tests/benchmarks/corelib/io/qdir/10000/bench_qdir_10000.cpp (renamed from tests/benchmarks/corelib/io/qdir/tst_qdir.cpp) | 6 | ||||
-rw-r--r-- | tests/benchmarks/corelib/io/qdir/qdir.pro | 10 |
3 files changed, 15 insertions, 11 deletions
diff --git a/tests/benchmarks/corelib/io/qdir/10000/10000.pro b/tests/benchmarks/corelib/io/qdir/10000/10000.pro new file mode 100644 index 0000000..93b0992 --- /dev/null +++ b/tests/benchmarks/corelib/io/qdir/10000/10000.pro @@ -0,0 +1,10 @@ +load(qttest_p4) +TEMPLATE = app +TARGET = bench_qdir_10000 +DEPENDPATH += . +INCLUDEPATH += . + +# Input +SOURCES += bench_qdir_10000.cpp + +QT -= gui diff --git a/tests/benchmarks/corelib/io/qdir/tst_qdir.cpp b/tests/benchmarks/corelib/io/qdir/10000/bench_qdir_10000.cpp index f2e52d2..b325250 100644 --- a/tests/benchmarks/corelib/io/qdir/tst_qdir.cpp +++ b/tests/benchmarks/corelib/io/qdir/10000/bench_qdir_10000.cpp @@ -50,7 +50,7 @@ # include <unistd.h> #endif -class Test : public QObject{ +class bench_QDir_10000 : public QObject{ Q_OBJECT public slots: void initTestCase() { @@ -194,5 +194,5 @@ private slots: } }; -QTEST_MAIN(Test) -#include "tst_qdir.moc" +QTEST_MAIN(bench_QDir_10000) +#include "bench_qdir_10000.moc" diff --git a/tests/benchmarks/corelib/io/qdir/qdir.pro b/tests/benchmarks/corelib/io/qdir/qdir.pro index 2cdebfd..c572566 100644 --- a/tests/benchmarks/corelib/io/qdir/qdir.pro +++ b/tests/benchmarks/corelib/io/qdir/qdir.pro @@ -1,8 +1,2 @@ -load(qttest_p4) -TEMPLATE = app -TARGET = tst_qdir -DEPENDPATH += . -INCLUDEPATH += . - -# Input -SOURCES += tst_qdir.cpp +TEMPLATE = subdirs +SUBDIRS = 10000 |