initial program check in
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@613 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,46 @@
|
|||||||
|
// BMPTranslatorTest.cpp
|
||||||
|
#include "BMPTranslatorTest.h"
|
||||||
|
#include <cppunit/Test.h>
|
||||||
|
#include <cppunit/TestCaller.h>
|
||||||
|
#include <cppunit/TestSuite.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
// Suite
|
||||||
|
CppUnit::Test *
|
||||||
|
BMPTranslatorTest::Suite()
|
||||||
|
{
|
||||||
|
CppUnit::TestSuite *suite = new CppUnit::TestSuite();
|
||||||
|
typedef CppUnit::TestCaller<BMPTranslatorTest> TC;
|
||||||
|
|
||||||
|
suite->addTest( new TC("BMPTranslator DummyTest1", &BMPTranslatorTest::DummyTest) );
|
||||||
|
|
||||||
|
return suite;
|
||||||
|
}
|
||||||
|
|
||||||
|
// setUp
|
||||||
|
void
|
||||||
|
BMPTranslatorTest::setUp()
|
||||||
|
{
|
||||||
|
BTestCase::setUp();
|
||||||
|
}
|
||||||
|
|
||||||
|
// tearDown
|
||||||
|
void
|
||||||
|
BMPTranslatorTest::tearDown()
|
||||||
|
{
|
||||||
|
BTestCase::tearDown();
|
||||||
|
}
|
||||||
|
|
||||||
|
// DummyTest
|
||||||
|
void
|
||||||
|
BMPTranslatorTest::DummyTest()
|
||||||
|
{
|
||||||
|
// 1. Tautology
|
||||||
|
NextSubTest();
|
||||||
|
{
|
||||||
|
printf("Hello from mars.\n");
|
||||||
|
CPPUNIT_ASSERT( true == true );
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#include <TestSuite.h>
|
||||||
|
#include <TestSuiteAddon.h>
|
||||||
|
|
||||||
|
// ##### Include headers for your tests here #####
|
||||||
|
#include "BMPTranslatorTest.h"
|
||||||
|
|
||||||
|
BTestSuite *
|
||||||
|
getTestSuite()
|
||||||
|
{
|
||||||
|
BTestSuite *suite = new BTestSuite("BMPTranslator");
|
||||||
|
|
||||||
|
// ##### Add test suites here #####
|
||||||
|
suite->addTest("BMPTranslator", BMPTranslatorTest::Suite());
|
||||||
|
|
||||||
|
return suite;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user