summaryrefslogtreecommitdiffstats
path: root/tests/auto/jsondb-listmodel/jsondb-listmodel.pro
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-10-26 10:28:42 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-26 11:18:25 +0200
commit70688a04c9a6eabfc19e0266c668b580eefb6cbf (patch)
tree1280600f20a7cdf5d9ada1c949f22e9599a0a660 /tests/auto/jsondb-listmodel/jsondb-listmodel.pro
parent60c8362dedeea5ce3a49b9b11d3797f534041108 (diff)
tests: use standard CONFIG+=testcase for `make check'
Remove the custom check targets from jsondb tests and replace them with the standard check target from CONFIG+=testcase, which is more powerful. This allows the tests to be run like the tests for all other Qt modules (e.g. with backtraces on crash and with accurate log capturing). For the benchmarks, `check' is removed entirely, since running benchmarks on a desktop generally isn't useful. This is consistent with the behavior of benchmarks in qtbase. If necessary, the behavior of the old `check' commands can be reproduced with something like: make -j1 check \ TESTRUNNER="rm -f *.db* && LD_LIBRARY_PATH=$PWD/lib QT_QPA_PLATFORM=xcb " \ TESTARGS="-xunitxml -o testlog.xml -silent" Change-Id: Icf8bf2cf0613e3e8b21aa4f206ce3d76559908f7 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jamey Hicks <jamey.hicks@nokia.com> Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
Diffstat (limited to 'tests/auto/jsondb-listmodel/jsondb-listmodel.pro')
-rw-r--r--tests/auto/jsondb-listmodel/jsondb-listmodel.pro5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/auto/jsondb-listmodel/jsondb-listmodel.pro b/tests/auto/jsondb-listmodel/jsondb-listmodel.pro
index 16ee012f..0fc024ca 100644
--- a/tests/auto/jsondb-listmodel/jsondb-listmodel.pro
+++ b/tests/auto/jsondb-listmodel/jsondb-listmodel.pro
@@ -5,6 +5,7 @@ INCLUDEPATH += .
QT = core network testlib declarative jsondb-private jsondbqson-private
CONFIG -= app_bundle
+CONFIG += testcase
include($$PWD/../../../src/3rdparty/qjson/qjson.pri)
@@ -17,7 +18,3 @@ SOURCES += $$PWD/../../../src/imports/jsondb/jsondb-listmodel.cpp
HEADERS += test-jsondb-listmodel.h
SOURCES += test-jsondb-listmodel.cpp
-
-check.target = check
-check.commands = rm -f *.db* && LD_LIBRARY_PATH=$$PWD/../../../lib QT_QPA_PLATFORM=minimal ./tst_jsondb-listmodel -xunitxml -silent > ../../../tst_jsondb-listmodel.xml
-QMAKE_EXTRA_TARGETS = check