--- /dev/null
+To install debian package type:
+
+dpkg-buildpackage -rfakeroot -b
--- /dev/null
+############# testGPS/testGPS ################
+Totals: 3 passed, 0 failed, 0 skipped
+############# testMap/testMapEngine ################
+Totals: 3 passed, 0 failed, 0 skipped
+############# testMap/testMapScene ################
+Totals: 2 passed, 1 failed, 0 skipped
+############# testMap/testMapTile ################
+Totals: 4 passed, 0 failed, 0 skipped
+############# testMap/testMapView ################
+Totals: 3 passed, 0 failed, 0 skipped
+############# testPHP/testPHP ################
+Totals: 3 passed, 0 failed, 0 skipped
+############# testUI/testUI ################
+Totals: 2 passed, 1 failed, 0 skipped
+############# testMap/testMapEngine ################
+Totals: 3 passed, 0 failed, 0 skipped
+############# testMap/testMapScene ################
+Totals: 2 passed, 1 failed, 0 skipped
+############# testMap/testMapTile ################
+Totals: 4 passed, 0 failed, 0 skipped
+############# testMap/testMapView ################
+Totals: 3 passed, 0 failed, 0 skipped
+############# testUI/testUI ################
+Totals: 2 passed, 1 failed, 0 skipped
##########################################################
#Store all directory names to a list
MODULES=(`ls ../tests/`)
-#Modify this path to point to correct path
+#Modify these paths to point to correct path
location=$HOME/situare/repository/situare/tests/
-FILE=$HOME/situare/repository/situare/scripts/tests_summary.txt
+FILE=$HOME/situare/repository/situare/reports/tests_summary.txt
if [ ! -e $FILE ]; then
touch tests_summary.txt
echo "##########################################" >> tests_summary.txt
--- /dev/null
+##########################################
+# Summary of unit tests executed #
+# Date: Wed Mar 31 12:50:55 EEST 2010 #
+# User: juksa #
+##########################################
+++ /dev/null
-######################################################################
-# Automatically generated by qmake (2.01a) Mon Mar 29 14:23:01 2010
-######################################################################
-
-CONFIG+=qtestlib
-TEMPLATE = app
-TARGET =
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-HEADERS += ../../../src/ui/mainwindow.h
-SOURCES += testgps.cpp ../../../src/ui/mainwindow.cpp
+++ /dev/null
-/*
- Situare - A location system for Facebook
- Copyright (C) 2010 Ixonos Plc. Authors:
-
- Henri Lampela - henri.lampela@ixonos.com
-
- Situare is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- version 2 as published by the Free Software Foundation.
-
- Situare is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with Situare; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
- USA.
- */
-
-#include <QtGui>
-#include <QtTest/QtTest>
-#include "../../../src/ui/mainwindow.h"
-
-class TestGps: public QObject
-{
- Q_OBJECT
-
-private slots:
- void testGps();
-
-
-};
-
-void TestGps::testGps()
-{
- QLineEdit lineEdit;
-
- QTest::keyClicks(&lineEdit, "UI test");
-
- QCOMPARE(lineEdit.text(), QString("UI test"));
-}
-
-
-QTEST_MAIN(TestGps)
-#include "testgps.moc"
--- /dev/null
+********* Start testing of TestMapEngine *********
+Config: Using QTest library 4.6.2, Qt 4.6.2
+PASS : TestMapEngine::initTestCase()
+PASS : TestMapEngine::convertTileNumberToSceneCoordinate()
+PASS : TestMapEngine::cleanupTestCase()
+Totals: 3 passed, 0 failed, 0 skipped
+********* Finished testing of TestMapEngine *********
--- /dev/null
+********* Start testing of TestMapScene *********
+Config: Using QTest library 4.6.2, Qt 4.6.2
+PASS : TestMapScene::initTestCase()
+FAIL! : TestMapScene::addMapTile() 'mapTile.zoomLevel() == 13' returned FALSE. ()
+ Loc: [testmapscene.cpp(23)]
+PASS : TestMapScene::cleanupTestCase()
+Totals: 2 passed, 1 failed, 0 skipped
+********* Finished testing of TestMapScene *********
--- /dev/null
+********* Start testing of TestMapTile *********
+Config: Using QTest library 4.6.2, Qt 4.6.2
+PASS : TestMapTile::initTestCase()
+PASS : TestMapTile::zoomLevel()
+PASS : TestMapTile::tileNumber()
+PASS : TestMapTile::cleanupTestCase()
+Totals: 4 passed, 0 failed, 0 skipped
+********* Finished testing of TestMapTile *********
--- /dev/null
+********* Start testing of TestMapView *********
+Config: Using QTest library 4.6.2, Qt 4.6.2
+PASS : TestMapView::initTestCase()
+PASS : TestMapView::dummyTestCase()
+PASS : TestMapView::cleanupTestCase()
+Totals: 3 passed, 0 failed, 0 skipped
+********* Finished testing of TestMapView *********
+++ /dev/null
-######################################################################
-# Automatically generated by qmake (2.01a) Mon Mar 29 14:23:19 2010
-######################################################################
-
-CONFIG+=qtestlib
-TEMPLATE = app
-TARGET =
-DEPENDPATH += .
-INCLUDEPATH += .
-
-# Input
-HEADERS += ../../../src/ui/mainwindow.h
-SOURCES += testphp.cpp ../../../src/ui/mainwindow.cpp
+++ /dev/null
-/*
- Situare - A location system for Facebook
- Copyright (C) 2010 Ixonos Plc. Authors:
-
- Henri Lampela - henri.lampela@ixonos.com
-
- Situare is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- version 2 as published by the Free Software Foundation.
-
- Situare is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with Situare; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
- USA.
- */
-
-#include <QtGui>
-#include <QtTest/QtTest>
-#include "../../../src/ui/mainwindow.h"
-
-class TestPhp: public QObject
-{
- Q_OBJECT
-
-private slots:
- void testPhp();
-
-
-};
-
-void TestPhp::testPhp()
-{
- QLineEdit lineEdit;
-
- QTest::keyClicks(&lineEdit, "UI test");
-
- QCOMPARE(lineEdit.text(), QString("UI test"));
-}
-
-
-QTEST_MAIN(TestPhp)
-#include "testphp.moc"
######################################################################
-# Automatically generated by qmake (2.01a) Mon Mar 29 14:23:24 2010
+# Automatically generated by qmake (2.01a) Wed Mar 31 12:52:38 2010
######################################################################
CONFIG+=qtestlib
--- /dev/null
+********* Start testing of TestUi *********
+Config: Using QTest library 4.6.2, Qt 4.6.2
+PASS : TestUi::initTestCase()
+FAIL! : TestUi::testUi() Compared values are not the same
+ Actual (lineEdit.text()): UI tests
+ Expected (QString("UI test")): UI test
+ Loc: [testui.cpp(42)]
+PASS : TestUi::cleanupTestCase()
+Totals: 2 passed, 1 failed, 0 skipped
+********* Finished testing of TestUi *********