Mailinglist Archive: zypp-commit (149 mails)

< Previous Next >
[zypp-commit] r5368 - in /trunk/libzypp/tests/zypp: CMakeLists.txt Fetcher_test.cc
  • From: dmacvicar@xxxxxxxxxxxxxxxx
  • Date: Thu, 12 Apr 2007 22:14:36 -0000
  • Message-id: <20070412221436.3B6ED236DA@xxxxxxxxxxxxxxxx>
Author: dmacvicar
Date: Fri Apr 13 00:14:35 2007
New Revision: 5368

URL: http://svn.opensuse.org/viewcvs/zypp?rev=5368&view=rev
Log:

Fetcher test skeleton


Added:
    trunk/libzypp/tests/zypp/Fetcher_test.cc
Modified:
    trunk/libzypp/tests/zypp/CMakeLists.txt

Modified: trunk/libzypp/tests/zypp/CMakeLists.txt
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/zypp/CMakeLists.txt?rev=5368&r1=5367&r2=5368&view=diff
==============================================================================
--- trunk/libzypp/tests/zypp/CMakeLists.txt (original)
+++ trunk/libzypp/tests/zypp/CMakeLists.txt Fri Apr 13 00:14:35 2007
@@ -42,6 +42,9 @@
 ADD_EXECUTABLE( MediaSetAccess MediaSetAccessTest.cc )
 TARGET_LINK_LIBRARIES( MediaSetAccess zypp boost_unit_test_framework )
 
+ADD_EXECUTABLE( Fetcher Fetcher_test.cc )
+TARGET_LINK_LIBRARIES( Fetcher zypp boost_unit_test_framework )
+
 ADD_TEST(ArchTest ${CMAKE_CURRENT_BINARY_DIR}/Arch)
 ADD_TEST(UrlTest ${CMAKE_CURRENT_BINARY_DIR}/Url)
 ADD_TEST(Edition ${CMAKE_CURRENT_BINARY_DIR}/Edition)
@@ -55,3 +58,4 @@
 ADD_TEST(Signature ${CMAKE_CURRENT_BINARY_DIR}/Signature)
 ADD_TEST(KeyRingTest ${CMAKE_CURRENT_BINARY_DIR}/KeyRing)
 ADD_TEST(MediaSetAccessTest ${CMAKE_CURRENT_BINARY_DIR}/MediaSetAccess ${CMAKE_CURRENT_SOURCE_DIR}/data/mediasetaccess)
+ADD_TEST(FetcherTest ${CMAKE_CURRENT_BINARY_DIR}/Fetcher)

Added: trunk/libzypp/tests/zypp/Fetcher_test.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tests/zypp/Fetcher_test.cc?rev=5368&view=auto
==============================================================================
--- trunk/libzypp/tests/zypp/Fetcher_test.cc (added)
+++ trunk/libzypp/tests/zypp/Fetcher_test.cc Fri Apr 13 00:14:35 2007
@@ -0,0 +1,41 @@
+#include <stdio.h>
+#include <iostream>
+#include <boost/test/unit_test.hpp>
+#include <boost/test/parameterized_test.hpp>
+#include <boost/test/unit_test_log.hpp>
+
+#include "zypp/MediaSetAccess.h"
+#include "zypp/Fetcher.h"
+#include "zypp/Url.h"
+
+using std::cout;
+using std::endl;
+using std::string;
+using namespace zypp;
+using namespace zypp::media;
+using namespace boost::unit_test;
+
+void fetcher_simple_test()
+{
+  //TESTS_SRC_DIR
+}
+
+test_suite*
+init_unit_test_suite( int argc, char *argv[] )
+{
+//   if (argc < 2)
+//   {
+//     cout << "mediasetaccesstest:"
+//       " path to directory with test data required as parameter" << endl;
+//     return (test_suite *)0;
+//   }
+
+  test_suite* test= BOOST_TEST_SUITE("Fetcher_test");
+
+  // simple test
+  test->add(BOOST_TEST_CASE(&fetcher_simple_test));
+
+  return test;
+}
+
+// vim: set ts=2 sts=2 sw=2 ai et:

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages