mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
26 lines
471 B
C++
26 lines
471 B
C++
#include <QtTest>
|
|
|
|
#include "teststringdata.h"
|
|
#include "testvariantdata.h"
|
|
#include "testreader.h"
|
|
#include "testwriter.h"
|
|
|
|
int AssertTest(QObject* obj)
|
|
{
|
|
int status = QTest::qExec(obj);
|
|
delete obj;
|
|
|
|
return status;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
int status = 0;
|
|
status |= AssertTest(new TestStringData());
|
|
status |= AssertTest(new TestVariantData());
|
|
status |= AssertTest(new TestReader());
|
|
status |= AssertTest(new TestWriter());
|
|
|
|
return status;
|
|
}
|