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:
Matthew Wilber 2002-08-06 20:10:15 +00:00
parent c523ad7c3e
commit cf51e393c6
2 changed files with 62 additions and 0 deletions

View File

@ -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 );
}
}

View File

@ -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;
}