Added 'check' target for tests
authorAki Koskinen <maemo@akikoskinen.info>
Sun, 21 Mar 2010 15:35:48 +0000 (17:35 +0200)
committerAki Koskinen <maemo@akikoskinen.info>
Sun, 21 Mar 2010 20:53:25 +0000 (22:53 +0200)
tests/check.pri [new file with mode: 0644]
tests/tests.pro
tests/ut_gmocktest/ut_gmocktest.pro
tests/ut_template/ut_template.pro

diff --git a/tests/check.pri b/tests/check.pri
new file mode 100644 (file)
index 0000000..6c95097
--- /dev/null
@@ -0,0 +1,3 @@
+QMAKE_EXTRA_TARGETS += check
+check.depends = $$TARGET
+check.commands = ./$$TARGET
index e435d43..48dd78e 100644 (file)
@@ -1,2 +1,6 @@
 TEMPLATE = subdirs
 SUBDIRS = ut_coord_trans
+
+check.target = check
+check.CONFIG = recursive
+QMAKE_EXTRA_TARGETS += check
index 8a516e3..77fcf85 100644 (file)
@@ -16,3 +16,4 @@ HEADERS += \
     painter.h
 
 include(../gmock.pri)
+include(../check.pri)
index dd7ce43..8b03a46 100644 (file)
@@ -10,3 +10,5 @@ OBJECTS_DIR = .obj
 MOC_DIR = .moc
 SOURCES += ut_template.cpp
 HEADERS += ut_template.h
+
+include(../check.pri)