Revision: 235
http://netemul.svn.sourceforge.net/netemul/?rev=235&view=rev
Author: f-r-o-s-t
Date: 2011-02-09 01:36:43 +0000 (Wed, 09 Feb 2011)
Log Message:
-----------
Little clear
Modified Paths:
--------------
trunk/test/mac/mac.pro
trunk/test/mac/main.cpp
Removed Paths:
-------------
trunk/test/scenexmlreader/
Modified: trunk/test/mac/mac.pro
===================================================================
--- trunk/test/mac/mac.pro 2011-02-09 01:09:50 UTC (rev 234)
+++ trunk/test/mac/mac.pro 2011-02-09 01:36:43 UTC (rev 235)
@@ -1,7 +1,6 @@
# -------------------------------------------------
# Project created by QtCreator 2009-06-28T00:44:43
# -------------------------------------------------
-include(../testing.pri)
QT += testlib
QT -= gui
TARGET = mac
@@ -9,7 +8,8 @@
CONFIG -= app_bundle
TEMPLATE = app
-# HEADERS += ../../src/macaddress.h
-SOURCES += main.cpp \
- ../../src/macaddress.cpp
-HEADERS += ../../src/macaddress.h
+LIBS += -L../.. -lbasicnetlib
+
+INCLUDEPATH += ../../basicnetlib
+
+SOURCES += main.cpp
Modified: trunk/test/mac/main.cpp
===================================================================
--- trunk/test/mac/main.cpp 2011-02-09 01:09:50 UTC (rev 234)
+++ trunk/test/mac/main.cpp 2011-02-09 01:36:43 UTC (rev 235)
@@ -1,7 +1,7 @@
#include <QtTest>
-#include "../../src/macaddress.h"
+#include "macaddress.h"
-class TestMacAddress : public QObject
+class TestmacAddress : public QObject
{
Q_OBJECT
private slots:
@@ -11,14 +11,14 @@
void operators();
};
-void TestMacAddress::toString()
+void TestmacAddress::toString()
{
macAddress m;
m.setMac("01:03:00:00:00:00");
QCOMPARE(m.toString(), tr("01:03:00:00:00:00"));
}
-void TestMacAddress::setBroadcast()
+void TestmacAddress::setBroadcast()
{
macAddress m;
m.setBroadcast();
@@ -26,7 +26,7 @@
QCOMPARE( m.isBroadcast() , true );
}
-void TestMacAddress::saveAndLoad()
+void TestmacAddress::saveAndLoad()
{
macAddress m("01:02:03:04:05:06");
macAddress t = m;
@@ -47,7 +47,7 @@
QCOMPARE( t , m);
}
-void TestMacAddress::operators()
+void TestmacAddress::operators()
{
macAddress a("01:02:03:04:05:06");
macAddress b("01:02:03:04:05:07");
@@ -57,5 +57,5 @@
QCOMPARE( ++a == b , true );
}
-QTEST_MAIN(TestMacAddress)
+QTEST_MAIN(TestmacAddress)
#include "main.moc"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|