Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[XrdEc] Create skeleton for unit test suite.
- Loading branch information
1 parent
e2f697b
commit 9a100ba
Showing
6 changed files
with
120 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
include( XRootDCommon ) | ||
include_directories( ${CPPUNIT_INCLUDE_DIRS} ../common) | ||
|
||
add_library( | ||
XrdEcTests MODULE | ||
StrmWriterTests.cc | ||
ReaderTests.cc | ||
) | ||
|
||
target_link_libraries( | ||
XrdEcTests | ||
XrdEc ) | ||
|
||
#------------------------------------------------------------------------------- | ||
# Install | ||
#------------------------------------------------------------------------------- | ||
install( | ||
TARGETS XrdEcTests | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//------------------------------------------------------------------------------ | ||
// Copyright (c) 2011-2014 by European Organization for Nuclear Research (CERN) | ||
// Author: Michal Simon <michal.simon@cern.ch> | ||
//------------------------------------------------------------------------------ | ||
// This file is part of the XRootD software suite. | ||
// | ||
// XRootD is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Lesser General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// XRootD is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public License | ||
// along with XRootD. If not, see <http://www.gnu.org/licenses/>. | ||
// | ||
// In applying this licence, CERN does not waive the privileges and immunities | ||
// granted to it by virtue of its status as an Intergovernmental Organization | ||
// or submit itself to any jurisdiction. | ||
//------------------------------------------------------------------------------ | ||
|
||
#include <cppunit/extensions/HelperMacros.h> | ||
#include "TestEnv.hh" | ||
#include "CppUnitXrdHelpers.hh" | ||
|
||
#include "XrdEc/XrdEcReader.hh" | ||
|
||
//------------------------------------------------------------------------------ | ||
// Declaration | ||
//------------------------------------------------------------------------------ | ||
class ReaderTest: public CppUnit::TestCase | ||
{ | ||
public: | ||
CPPUNIT_TEST_SUITE( ReaderTest ); | ||
CPPUNIT_TEST( Test ); | ||
CPPUNIT_TEST_SUITE_END(); | ||
void Test(); | ||
}; | ||
|
||
CPPUNIT_TEST_SUITE_REGISTRATION( ReaderTest ); | ||
|
||
void ReaderTest::Test() | ||
{ | ||
// TODO | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//------------------------------------------------------------------------------ | ||
// Copyright (c) 2011-2014 by European Organization for Nuclear Research (CERN) | ||
// Author: Michal Simon <michal.simon@cern.ch> | ||
//------------------------------------------------------------------------------ | ||
// This file is part of the XRootD software suite. | ||
// | ||
// XRootD is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Lesser General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// XRootD is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public License | ||
// along with XRootD. If not, see <http://www.gnu.org/licenses/>. | ||
// | ||
// In applying this licence, CERN does not waive the privileges and immunities | ||
// granted to it by virtue of its status as an Intergovernmental Organization | ||
// or submit itself to any jurisdiction. | ||
//------------------------------------------------------------------------------ | ||
|
||
#include <cppunit/extensions/HelperMacros.h> | ||
#include "TestEnv.hh" | ||
#include "CppUnitXrdHelpers.hh" | ||
|
||
#include "XrdEc/XrdEcStrmWriter.hh" | ||
|
||
//------------------------------------------------------------------------------ | ||
// Declaration | ||
//------------------------------------------------------------------------------ | ||
class StrmWriterTest: public CppUnit::TestCase | ||
{ | ||
public: | ||
CPPUNIT_TEST_SUITE( StrmWriterTest ); | ||
CPPUNIT_TEST( Test ); | ||
CPPUNIT_TEST_SUITE_END(); | ||
void Test(); | ||
}; | ||
|
||
CPPUNIT_TEST_SUITE_REGISTRATION( StrmWriterTest ); | ||
|
||
void StrmWriterTest::Test() | ||
{ | ||
// TODO | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters