Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
#371: disable direct unpack tests in Travis CI
Browse files Browse the repository at this point in the history
because it misses unrar 5 required for the tests
  • Loading branch information
hugbug committed May 5, 2017
1 parent 61af2b3 commit 39089b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -33,4 +33,4 @@ matrix:
script:
- $COMPILER --version
- CXX=$COMPILER ./configure --enable-tests && make
- ./nzbget --tests exclude:[DupeMatcher]
- ./nzbget --tests exclude:[Unrar]
8 changes: 6 additions & 2 deletions tests/postprocess/DirectUnpackTest.cpp
Expand Up @@ -38,7 +38,7 @@ class DirectUnpackDownloadQueueMock : public DownloadQueue
virtual void Save() {};
};

TEST_CASE("Direct-unpack simple", "[Rar][DirectUnpack][Slow][TestData]")
TEST_CASE("Direct-unpack simple", "[Rar][DirectUnpack][Unrar][Slow][TestData]")
{
Options::CmdOptList cmdOpts;
cmdOpts.push_back("WriteLog=none");
Expand All @@ -49,6 +49,8 @@ TEST_CASE("Direct-unpack simple", "[Rar][DirectUnpack][Slow][TestData]")

TestUtil::PrepareWorkingDir("empty");

INFO("This test requires working unrar 5 in search path");

REQUIRE(FileSystem::CopyFile((TestUtil::TestDataDir() + "/rarrenamer/testfile3.part01.rar").c_str(),
(TestUtil::WorkingDir() + "/testfile3.part01.rar").c_str()));
REQUIRE(FileSystem::CopyFile((TestUtil::TestDataDir() + "/rarrenamer/testfile3.part02.rar").c_str(),
Expand Down Expand Up @@ -84,7 +86,7 @@ TEST_CASE("Direct-unpack simple", "[Rar][DirectUnpack][Slow][TestData]")
REQUIRE(FileSystem::FileExists((TestUtil::WorkingDir() + "/_unpack/testfile3.dat").c_str()));
}

TEST_CASE("Direct-unpack two archives", "[Rar][DirectUnpack][Slow][TestData]")
TEST_CASE("Direct-unpack two archives", "[Rar][DirectUnpack][Unrar][Slow][TestData]")
{
Options::CmdOptList cmdOpts;
cmdOpts.push_back("WriteLog=none");
Expand All @@ -95,6 +97,8 @@ TEST_CASE("Direct-unpack two archives", "[Rar][DirectUnpack][Slow][TestData]")

TestUtil::PrepareWorkingDir("empty");

INFO("This test requires working unrar 5 in search path");

REQUIRE(FileSystem::CopyFile((TestUtil::TestDataDir() + "/rarrenamer/testfile3.part01.rar").c_str(),
(TestUtil::WorkingDir() + "/testfile3.part01.rar").c_str()));
REQUIRE(FileSystem::CopyFile((TestUtil::TestDataDir() + "/rarrenamer/testfile3.part02.rar").c_str(),
Expand Down
2 changes: 1 addition & 1 deletion tests/postprocess/DupeMatcherTest.cpp
Expand Up @@ -27,7 +27,7 @@
#include "FileSystem.h"
#include "TestUtil.h"

TEST_CASE("Dupe matcher", "[Par][DupeMatcher][Slow][TestData]")
TEST_CASE("Dupe matcher", "[Par][DupeMatcher][Unrar][Slow][TestData]")
{
Options options(nullptr, nullptr);

Expand Down

0 comments on commit 39089b6

Please sign in to comment.