diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-06-10 17:56:53 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-06-10 18:13:11 (GMT) |
commit | a17bb9f842aca9ad9b414237ad576aa7a887349e (patch) | |
tree | 08ed44da292d4ff82def9f0b135a17e20536b7b8 /Swiften/QA/UnitTest | |
parent | e2f5588d089e4d2148762ea092e032976254a467 (diff) | |
download | swift-a17bb9f842aca9ad9b414237ad576aa7a887349e.zip swift-a17bb9f842aca9ad9b414237ad576aa7a887349e.tar.bz2 |
Moved Swiften/QA/UnitTest to QA/UnitTest.
Diffstat (limited to 'Swiften/QA/UnitTest')
-rw-r--r-- | Swiften/QA/UnitTest/Makefile.inc | 17 | ||||
-rw-r--r-- | Swiften/QA/UnitTest/checker.cpp | 16 | ||||
-rw-r--r-- | Swiften/QA/UnitTest/template/FooTest.cpp | 24 |
3 files changed, 0 insertions, 57 deletions
diff --git a/Swiften/QA/UnitTest/Makefile.inc b/Swiften/QA/UnitTest/Makefile.inc deleted file mode 100644 index 5bdbec9..0000000 --- a/Swiften/QA/UnitTest/Makefile.inc +++ /dev/null @@ -1,17 +0,0 @@ -UNITTEST_TARGET = Swiften/QA/UnitTest/checker -UNITTEST_SOURCES += \ - Swiften/QA/UnitTest/checker.cpp -UNITTEST_OBJECTS = \ - $(UNITTEST_SOURCES:.cpp=.o) - -TEST_TARGETS += check - -CLEANFILES += $(UNITTEST_OBJECTS) $(UNITTEST_TARGET) - -.PHONY: check -check: $(UNITTEST_TARGET) - $(TEST_RUNNER) ./$(UNITTEST_TARGET) - -$(UNITTEST_TARGET): $(CPPUNIT_TARGET) $(UNITTEST_OBJECTS) $(UNITTEST_LIBS) $(BUNDLED_LIBS) - $(QUIET_LINK)$(CXX) -o $(UNITTEST_TARGET) $(UNITTEST_OBJECTS) $(LDFLAGS) $(CPPUNIT_TARGET) $(UNITTEST_LIBS) $(BUNDLED_LIBS) $(LIBS) - diff --git a/Swiften/QA/UnitTest/checker.cpp b/Swiften/QA/UnitTest/checker.cpp deleted file mode 100644 index ea4f0d9..0000000 --- a/Swiften/QA/UnitTest/checker.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include <string> -#include <cppunit/ui/text/TestRunner.h> -#include <cppunit/extensions/TestFactoryRegistry.h> -#include <cppunit/XmlOutputter.h> -#include <cppunit/TextTestResult.h> - -int main(int argc, char* argv[]) -{ - CppUnit::TestFactoryRegistry& registry = CppUnit::TestFactoryRegistry::getRegistry(); - CppUnit::TextUi::TestRunner runner; - runner.addTest( registry.makeTest() ); - if (argc >= 2 && std::string(argv[1]) != std::string("--xml")) { - runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), std::cout)); - } - return (runner.run("") ? 0 : 1); -} diff --git a/Swiften/QA/UnitTest/template/FooTest.cpp b/Swiften/QA/UnitTest/template/FooTest.cpp deleted file mode 100644 index b6b9abf..0000000 --- a/Swiften/QA/UnitTest/template/FooTest.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include <cppunit/extensions/HelperMacros.h> -#include <cppunit/extensions/TestFactoryRegistry.h> - -using namespace Swift; - -class FooTest : public CppUnit::TestFixture { - CPPUNIT_TEST_SUITE(FooTest); - CPPUNIT_TEST(testBar); - CPPUNIT_TEST_SUITE_END(); - - public: - FooTest() {} - - void setUp() { - } - - void tearDown() { - } - - void testBar() { - } -}; - -CPPUNIT_TEST_SUITE_REGISTRATION(FooTest); |