diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-05-21 15:33:16 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-05-21 15:33:16 +0100 |
commit | 6568a332b34685bfd63c37805677a9294765bd95 (patch) | |
tree | d2e0091da2ba4e6a9250b54e0b4e289cb13d606e /p2pvr/daemon | |
parent | Update with recent test from mock api (diff) | |
download | p2pvr-6568a332b34685bfd63c37805677a9294765bd95.tar.bz2 p2pvr-6568a332b34685bfd63c37805677a9294765bd95.tar.xz p2pvr-6568a332b34685bfd63c37805677a9294765bd95.zip |
Remove Project2 components
Diffstat (limited to 'p2pvr/daemon')
-rw-r--r-- | p2pvr/daemon/unittests/Jamfile.jam | 17 | ||||
-rw-r--r-- | p2pvr/daemon/unittests/testp2ice.cpp | 60 |
2 files changed, 0 insertions, 77 deletions
diff --git a/p2pvr/daemon/unittests/Jamfile.jam b/p2pvr/daemon/unittests/Jamfile.jam index 6f0f0dd..252dd89 100644 --- a/p2pvr/daemon/unittests/Jamfile.jam +++ b/p2pvr/daemon/unittests/Jamfile.jam @@ -46,23 +46,6 @@ run : testEmbedding ; run - testp2ice.cpp - : : : - <define>BOOST_TEST_DYN_LINK - <library>../..//p2common - <library>../..//p2basics - <library>../..//p2ice - <library>../..//p2ut - <dependency>../../ice//p2pvrice - <dependency>../../lib//p2pvrlib - <dependency>../../p2comp//p2pvrp2comp - <library>boost_system - <library>boost_filesystem - <library>../..//boost_utf - <define>ROOT=\"$(me)\" - : testp2ice ; - -run testMaint.cpp mockDevices.cpp mockScheduler.cpp : : ../../datasources/schema.sql diff --git a/p2pvr/daemon/unittests/testp2ice.cpp b/p2pvr/daemon/unittests/testp2ice.cpp deleted file mode 100644 index 6eece19..0000000 --- a/p2pvr/daemon/unittests/testp2ice.cpp +++ /dev/null @@ -1,60 +0,0 @@ -#define BOOST_TEST_MODULE ClientCompile -#include <boost/test/unit_test.hpp> -#include <boost/filesystem/operations.hpp> -#include <testOptionsSource.h> -#include <definedDirs.h> -#include <sourceObject.h> -#include <testAppInstance.h> -#include <stream.h> -#include <rowSet.h> - -const boost::filesystem::path variant = binDir.leaf(); -const boost::filesystem::path compiler = binDir.parent_path().leaf(); -const boost::filesystem::path root = rootDir.parent_path().parent_path(); -const boost::filesystem::path iceroot = root / "ice"; - -static -void -commonTests() -{ - BOOST_REQUIRE(StreamFactory::get("p2pvrrecordingstream")); - BOOST_REQUIRE(StreamFactory::get("p2pvrservicestream")); - BOOST_REQUIRE(RowSetFactory::get("P2PVR-SI-GetEvent")); -} - -static -void -unloadTests() -{ - BOOST_REQUIRE_THROW(RowSetFactory::get("P2PVR-SI-GetEvent"), AdHoc::NoSuchPluginException); - BOOST_REQUIRE_THROW(StreamFactory::get("p2pvrrecordingstream"), AdHoc::NoSuchPluginException); - BOOST_REQUIRE_THROW(StreamFactory::get("p2pvrservicestream"), AdHoc::NoSuchPluginException); -} - -BOOST_GLOBAL_FIXTURE( TestAppInstance ); - -BOOST_AUTO_TEST_CASE( compile_client_clientOnly ) -{ - TestOptionsSource::LoadTestOptions({ }); - - const std::string tmpdir = "/tmp/ut/p2pvr.slice"; - BOOST_TEST_CHECKPOINT("Clean up"); - boost::filesystem::remove_all(tmpdir); - - BOOST_TEST_CHECKPOINT("Configure, compile, link, load"); - TestOptionsSource::LoadTestOptions({ - { "ice.compile.tmpdir", tmpdir }, - { "ice.client.slicerclient", (iceroot / "common.ice").string() }, - { "library", (root / "ice" / "bin" / compiler / variant / "slicer-yes" / "libp2pvrice.so").string() }, - { "library", (root / "dvb" / "bin" / compiler / variant / "libp2pvrdvb.so").string() }, - { "library", (root / "lib" / "bin" / compiler / variant / "libp2pvrlib.so").string() }, - { "library", (root / "p2comp" / "bin" / compiler / variant / "libp2pvrp2comp.so").string() }, - { "ice.client.slicerclient", (iceroot / "dvbsi.ice").string() }, - { "ice.client.slicerclient", (iceroot / "dvb.ice").string() }, - { "ice.client.slicerclient", (iceroot / "p2pvr.ice").string() }, - }); - commonTests(); - - TestOptionsSource::LoadTestOptions({ }); - unloadTests(); -} |