Browse Source

tests: Change to updated naming conventions

Change-Id: I9351c669282c3c02fd533237489beeb10fe7d16d
Refs: #2497
pull/2/head
Spyridon Mastorakis 11 years ago
parent
commit
429634fb7d
  1. 1
      AUTHORS.md
  2. 5
      tests/unit-tests/data.t.cpp
  3. 2
      tests/unit-tests/encoding/block.t.cpp
  4. 4
      tests/unit-tests/encoding/nfd-constants.cpp
  5. 24
      tests/unit-tests/encoding/nfd-constants.t.cpp
  6. 2
      tests/unit-tests/encoding/tlv.t.cpp
  7. 4
      tests/unit-tests/exclude.t.cpp
  8. 4
      tests/unit-tests/face.t.cpp
  9. 2
      tests/unit-tests/interest.t.cpp
  10. 4
      tests/unit-tests/key-locator.t.cpp
  11. 15
      tests/unit-tests/make-interest-data.hpp
  12. 4
      tests/unit-tests/management/nfd-channel-status.t.cpp
  13. 4
      tests/unit-tests/management/nfd-command-options.t.cpp
  14. 6
      tests/unit-tests/management/nfd-control-command.t.cpp
  15. 6
      tests/unit-tests/management/nfd-control-parameters.t.cpp
  16. 6
      tests/unit-tests/management/nfd-control-response.t.cpp
  17. 4
      tests/unit-tests/management/nfd-controller.t.cpp
  18. 6
      tests/unit-tests/management/nfd-face-event-notification.t.cpp
  19. 6
      tests/unit-tests/management/nfd-face-query-filter.t.cpp
  20. 6
      tests/unit-tests/management/nfd-face-status.t.cpp
  21. 6
      tests/unit-tests/management/nfd-fib-entry.t.cpp
  22. 6
      tests/unit-tests/management/nfd-forwarder-status.t.cpp
  23. 6
      tests/unit-tests/management/nfd-rib-entry.t.cpp
  24. 4
      tests/unit-tests/management/nfd-strategy-choice.t.cpp
  25. 2
      tests/unit-tests/meta-info.t.cpp
  26. 5
      tests/unit-tests/security/certificate-cache-ttl.t.cpp
  27. 4
      tests/unit-tests/security/certificate.t.cpp
  28. 10
      tests/unit-tests/security/conf/checker.t.cpp
  29. 8
      tests/unit-tests/security/digest-sha256.t.cpp
  30. 8
      tests/unit-tests/security/identity-management-fixture.t.cpp
  31. 2
      tests/unit-tests/security/key-chain.t.cpp
  32. 6
      tests/unit-tests/security/key-params.t.cpp
  33. 7
      tests/unit-tests/security/public-key.t.cpp
  34. 4
      tests/unit-tests/security/sec-public-info-sqlite3.t.cpp
  35. 62
      tests/unit-tests/security/sec-rule-relative.t.cpp
  36. 36
      tests/unit-tests/security/sec-rule-specific.t.cpp
  37. 5
      tests/unit-tests/security/sec-tpm-file.t.cpp
  38. 4
      tests/unit-tests/security/sec-tpm-osx.t.cpp
  39. 4
      tests/unit-tests/security/signature-sha256-with-ecdsa.t.cpp
  40. 4
      tests/unit-tests/security/signature-sha256-with-rsa.t.cpp
  41. 2
      tests/unit-tests/security/validator-config.t.cpp
  42. 6
      tests/unit-tests/security/validator.t.cpp
  43. 4
      tests/unit-tests/signature-info.t.cpp
  44. 2
      tests/unit-tests/tag-host.t.cpp
  45. 8
      tests/unit-tests/transport/tcp-transport.t.cpp
  46. 4
      tests/unit-tests/transport/unix-transport.t.cpp
  47. 2
      tests/unit-tests/unit-test-time-fixture.hpp
  48. 14
      tests/unit-tests/util/concepts.t.cpp
  49. 4
      tests/unit-tests/util/config-file.t.cpp
  50. 4
      tests/unit-tests/util/digest.t.cpp
  51. 0
      tests/unit-tests/util/dns.t.cpp
  52. 18
      tests/unit-tests/util/ethernet.t.cpp
  53. 36
      tests/unit-tests/util/event-emitter.t.cpp
  54. 16
      tests/unit-tests/util/face-uri.t.cpp
  55. 6
      tests/unit-tests/util/in-memory-storage-fifo.t.cpp
  56. 6
      tests/unit-tests/util/in-memory-storage-lfu.t.cpp
  57. 6
      tests/unit-tests/util/in-memory-storage-lru.t.cpp
  58. 6
      tests/unit-tests/util/in-memory-storage-persistent.t.cpp
  59. 2
      tests/unit-tests/util/indented-stream.t.cpp
  60. 4
      tests/unit-tests/util/io.t.cpp
  61. 2
      tests/unit-tests/util/notification-stream.t.cpp
  62. 34
      tests/unit-tests/util/notification-subscriber.t.cpp
  63. 2
      tests/unit-tests/util/placeholders.t.cpp
  64. 2
      tests/unit-tests/util/placeholders2.t.cpp
  65. 6
      tests/unit-tests/util/random.t.cpp
  66. 9
      tests/unit-tests/util/regex.t.cpp
  67. 8
      tests/unit-tests/util/scheduler.t.cpp
  68. 0
      tests/unit-tests/util/segment-fetcher.t.cpp
  69. 0
      tests/unit-tests/util/signal.t.cpp
  70. 2
      tests/unit-tests/util/test-in-memory-storage-common.cpp
  71. 4
      tests/unit-tests/util/time-unit-test-clock.t.cpp
  72. 6
      tests/unit-tests/util/time.t.cpp
  73. 2
      tests/unit-tests/version.t.cpp
  74. 6
      tests/wscript

1
AUTHORS.md

@ -31,3 +31,4 @@ in the library:
* Mathias Gibbens <gibmat@cs.arizona.edu>
* Chengyu Fan <chengyu@cs.colostate.edu>
* Qiuhan Ding <http://irl.cs.ucla.edu/~qiuhanding/>
* Spyridon Mastorakis <http://cs.ucla.edu/~mastorakis/>

5
tests/unit-tests/test-data.cpp → tests/unit-tests/data.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -26,8 +26,8 @@
#include "boost-test.hpp"
using namespace std;
namespace ndn {
namespace tests {
BOOST_AUTO_TEST_SUITE(TestData)
@ -503,4 +503,5 @@ BOOST_FIXTURE_TEST_CASE(FullName, DataIdentityFixture)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

2
tests/unit-tests/test-block.cpp → tests/unit-tests/encoding/block.t.cpp

@ -27,7 +27,7 @@
namespace ndn {
namespace tests {
BOOST_AUTO_TEST_SUITE(TestBlock)
BOOST_AUTO_TEST_SUITE(EncodingBlock)
class BasicBlockFixture
{

4
tests/unit-tests/encoding/nfd-constants.cpp

@ -1,4 +0,0 @@
#include "encoding/nfd-constants.hpp"
// This file is intentionally empty.
// See Bug 2091.

24
tests/unit-tests/encoding/nfd-constants.t.cpp

@ -0,0 +1,24 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library 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.
*
* ndn-cxx library 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 Lesser General Public License for more details.
*
* You should have received copies of the GNU General Public License and GNU Lesser
* General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see
* <http://www.gnu.org/licenses/>.
*
* See AUTHORS.md for complete list of ndn-cxx authors and contributors.
*/
#include "encoding/nfd-constants.hpp"
// This file is intentionally empty.
// See Bug 2091.

2
tests/unit-tests/encoding/tlv.cpp → tests/unit-tests/encoding/tlv.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*

4
tests/unit-tests/test-exclude.cpp → tests/unit-tests/exclude.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -24,6 +24,7 @@
#include "boost-test.hpp"
namespace ndn {
namespace tests {
BOOST_AUTO_TEST_SUITE(TestExclude)
@ -192,4 +193,5 @@ BOOST_AUTO_TEST_CASE(Malformed)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

4
tests/unit-tests/test-face.cpp → tests/unit-tests/face.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -26,7 +26,7 @@
#include "boost-test.hpp"
#include "unit-test-time-fixture.hpp"
#include "test-make-interest-data.hpp"
#include "make-interest-data.hpp"
namespace ndn {
namespace tests {

2
tests/unit-tests/test-interest.cpp → tests/unit-tests/interest.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*

4
tests/unit-tests/test-key-locator.cpp → tests/unit-tests/key-locator.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -25,6 +25,7 @@
#include "boost-test.hpp"
namespace ndn {
namespace tests {
BOOST_AUTO_TEST_SUITE(TestKeyLocator)
@ -173,4 +174,5 @@ BOOST_AUTO_TEST_CASE(UnknownType)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

15
tests/unit-tests/test-make-interest-data.hpp → tests/unit-tests/make-interest-data.hpp

@ -1,11 +1,11 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2014 Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* Washington University in St. Louis,
* Beijing Institute of Technology
* Copyright (c) 2013-2015 Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* Washington University in St. Louis,
* Beijing Institute of Technology
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -22,7 +22,7 @@
* <http://www.gnu.org/licenses/>.
*
* See AUTHORS.md for complete list of ndn-cxx authors and contributors.
**/
*/
#ifndef NDN_TESTS_UNIT_TESTS_MAKE_INTEREST_DATA_HPP
#define NDN_TESTS_UNIT_TESTS_MAKE_INTEREST_DATA_HPP
@ -61,7 +61,6 @@ makeData(const Name& name)
}
} // namespace util
} // namespace ndn
#endif // NDN_TESTS_UNIT_TESTS_MAKE_INTEREST_DATA_HPP

4
tests/unit-tests/management/test-nfd-channel-status.cpp → tests/unit-tests/management/nfd-channel-status.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -27,7 +27,7 @@ namespace ndn {
namespace nfd {
namespace tests {
BOOST_AUTO_TEST_SUITE(ManagementTestNfdChannelStatus)
BOOST_AUTO_TEST_SUITE(ManagementNfdChannelStatus)
BOOST_AUTO_TEST_CASE(Encode)
{

4
tests/unit-tests/management/test-nfd-command-options.cpp → tests/unit-tests/management/nfd-command-options.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -27,7 +27,7 @@ namespace ndn {
namespace nfd {
namespace tests {
BOOST_AUTO_TEST_SUITE(ManagementTestNfdCommandOptions)
BOOST_AUTO_TEST_SUITE(ManagementNfdCommandOptions)
BOOST_AUTO_TEST_CASE(Timeout)
{

6
tests/unit-tests/management/test-nfd-control-command.cpp → tests/unit-tests/management/nfd-control-command.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -25,8 +25,9 @@
namespace ndn {
namespace nfd {
namespace tests {
BOOST_AUTO_TEST_SUITE(ManagementTestNfdControlCommand)
BOOST_AUTO_TEST_SUITE(ManagementNfdControlCommand)
BOOST_AUTO_TEST_CASE(FaceCreate)
{
@ -286,5 +287,6 @@ BOOST_AUTO_TEST_CASE(RibUnregister)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace nfd
} // namespace ndn

6
tests/unit-tests/management/test-nfd-control-parameters.cpp → tests/unit-tests/management/nfd-control-parameters.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -25,8 +25,9 @@
namespace ndn {
namespace nfd {
namespace tests {
BOOST_AUTO_TEST_SUITE(ManagementTestNfdControlParameters)
BOOST_AUTO_TEST_SUITE(ManagementNfdControlParameters)
BOOST_AUTO_TEST_CASE(FaceOptions)
{
@ -138,5 +139,6 @@ BOOST_AUTO_TEST_CASE(RibOptions)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace nfd
} // namespace ndn

6
tests/unit-tests/management/test-nfd-control-response.cpp → tests/unit-tests/management/nfd-control-response.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -25,8 +25,9 @@
namespace ndn {
namespace nfd {
namespace tests {
BOOST_AUTO_TEST_SUITE(ManagementTestNfdControlResponse)
BOOST_AUTO_TEST_SUITE(ManagementNfdControlResponse)
const uint8_t TestControlResponse[] = {0x65, 0x17,
0x66, 0x02, 0x01, 0x94, 0x67, 0x11, 0x4e, 0x6f, 0x74,
@ -58,5 +59,6 @@ BOOST_AUTO_TEST_CASE(ControlResponseDecode)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace nfd
} // namespace ndn

4
tests/unit-tests/management/test-nfd-controller.cpp → tests/unit-tests/management/nfd-controller.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -35,7 +35,7 @@ namespace tests {
using ndn::util::DummyClientFace;
using ndn::util::makeDummyClientFace;
BOOST_AUTO_TEST_SUITE(ManagementTestNfdController)
BOOST_AUTO_TEST_SUITE(ManagementNfdController)
class CommandFixture : public ndn::tests::UnitTestTimeFixture
{

6
tests/unit-tests/management/test-nfd-face-event-notification.cpp → tests/unit-tests/management/nfd-face-event-notification.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -25,8 +25,9 @@
namespace ndn {
namespace nfd {
namespace tests {
BOOST_AUTO_TEST_SUITE(ManagementTestNfdFaceEventNotification)
BOOST_AUTO_TEST_SUITE(ManagementNfdFaceEventNotification)
BOOST_AUTO_TEST_CASE(Traits)
{
@ -163,5 +164,6 @@ BOOST_AUTO_TEST_CASE(EncodeDestroyed)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace nfd
} // namespace ndn

6
tests/unit-tests/management/test-nfd-face-query-filter.cpp → tests/unit-tests/management/nfd-face-query-filter.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -25,8 +25,9 @@
namespace ndn {
namespace nfd {
namespace tests {
BOOST_AUTO_TEST_SUITE(ManagementTestNfdFaceQueryFilter)
BOOST_AUTO_TEST_SUITE(ManagementNfdFaceQueryFilter)
BOOST_AUTO_TEST_CASE(Encode)
{
@ -93,5 +94,6 @@ BOOST_AUTO_TEST_CASE(Encode)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace nfd
} // namespace ndn

6
tests/unit-tests/management/test-nfd-face-status.cpp → tests/unit-tests/management/nfd-face-status.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -25,8 +25,9 @@
namespace ndn {
namespace nfd {
namespace tests {
BOOST_AUTO_TEST_SUITE(ManagementTestNfdFaceStatus)
BOOST_AUTO_TEST_SUITE(ManagementNfdFaceStatus)
BOOST_AUTO_TEST_CASE(Encode)
{
@ -99,5 +100,6 @@ BOOST_AUTO_TEST_CASE(Encode)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace nfd
} // namespace ndn

6
tests/unit-tests/management/test-nfd-fib-entry.cpp → tests/unit-tests/management/nfd-fib-entry.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -25,8 +25,9 @@
namespace ndn {
namespace nfd {
namespace tests {
BOOST_AUTO_TEST_SUITE(ManagementTestNfdFibEntry)
BOOST_AUTO_TEST_SUITE(ManagementNfdFibEntry)
const uint8_t TestNextHopRecord[] =
{
@ -150,5 +151,6 @@ BOOST_AUTO_TEST_CASE(TestFibEntryDecode)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace nfd
} // namespace ndn

6
tests/unit-tests/management/test-nfd-forwarder-status.cpp → tests/unit-tests/management/nfd-forwarder-status.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -26,8 +26,9 @@
namespace ndn {
namespace nfd {
namespace tests {
BOOST_AUTO_TEST_SUITE(ManagementTestNfdForwarderStatus)
BOOST_AUTO_TEST_SUITE(ManagementNfdForwarderStatus)
BOOST_AUTO_TEST_CASE(Encode)
{
@ -87,5 +88,6 @@ BOOST_AUTO_TEST_CASE(Encode)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace nfd
} // namespace ndn

6
tests/unit-tests/management/test-nfd-rib-entry.cpp → tests/unit-tests/management/nfd-rib-entry.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -26,8 +26,9 @@
namespace ndn {
namespace nfd {
namespace tests {
BOOST_AUTO_TEST_SUITE(ManagementTestNfdRibEntry)
BOOST_AUTO_TEST_SUITE(ManagementNfdRibEntry)
const uint8_t RouteData[] =
{
@ -337,5 +338,6 @@ BOOST_AUTO_TEST_CASE(RibEntryOutputStream)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace nfd
} // namespace ndn

4
tests/unit-tests/management/test-nfd-strategy-choice.cpp → tests/unit-tests/management/nfd-strategy-choice.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -27,7 +27,7 @@ namespace ndn {
namespace nfd {
namespace tests {
BOOST_AUTO_TEST_SUITE(ManagementTestNfdStrategyChoice)
BOOST_AUTO_TEST_SUITE(ManagementNfdStrategyChoice)
BOOST_AUTO_TEST_CASE(Encode)
{

2
tests/unit-tests/test-meta-info.cpp → tests/unit-tests/meta-info.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*

5
tests/unit-tests/security/test-certificate-cache.cpp → tests/unit-tests/security/certificate-cache-ttl.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -29,7 +29,7 @@
namespace ndn {
namespace tests {
BOOST_AUTO_TEST_SUITE(SecurityTestCertificateCache)
BOOST_AUTO_TEST_SUITE(SecurityCertificateCacheTtl)
class CertificateCacheFixture : public UnitTestTimeFixture
{
@ -64,7 +64,6 @@ public:
Name name2;
};
BOOST_FIXTURE_TEST_CASE(Expiration, CertificateCacheFixture)
{
cache->insertCertificate(cert1);

4
tests/unit-tests/security/test-encode-decode-certificate.cpp → tests/unit-tests/security/certificate.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -33,7 +33,7 @@ namespace ndn {
using namespace CryptoPP;
BOOST_AUTO_TEST_SUITE(SecurityTestCertificate)
BOOST_AUTO_TEST_SUITE(SecurityEncodeDecodeCertificate)
const uint8_t PUBLIC_KEY[] = {
0x30, 0x81, 0x9d, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,

10
tests/unit-tests/security/test-conf-checker.cpp → tests/unit-tests/security/conf/checker.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -25,8 +25,11 @@
#include "boost-test.hpp"
namespace ndn {
namespace security {
namespace conf {
namespace tests {
BOOST_FIXTURE_TEST_SUITE(SecurityTestConfChecker, security::IdentityManagementFixture)
BOOST_FIXTURE_TEST_SUITE(SecurityConfChecker, IdentityManagementFixture)
void
interestChecked(const shared_ptr<const Interest>& interest)
@ -525,4 +528,7 @@ BOOST_AUTO_TEST_CASE(FixedSignerCheckerTest1)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace conf
} // namespace security
} // namespace ndn

8
tests/unit-tests/security/test-digest-sha256.cpp → tests/unit-tests/security/digest-sha256.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -19,6 +19,7 @@
* See AUTHORS.md for complete list of ndn-cxx authors and contributors.
*/
#include "security/digest-sha256.hpp"
#include "security/key-chain.hpp"
#include "security/validator.hpp"
#include "security/cryptopp.hpp"
@ -26,8 +27,9 @@
#include "boost-test.hpp"
namespace ndn {
namespace tests {
BOOST_FIXTURE_TEST_SUITE(SecurityTestDigestSha256, security::IdentityManagementFixture)
BOOST_FIXTURE_TEST_SUITE(SecurityDigestSha256, security::IdentityManagementFixture)
std::string SHA256_RESULT("a883dafc480d466ee04e0d6da986bd78eb1fdd2178d04693723da3a8f95d42f4");
@ -78,7 +80,7 @@ BOOST_AUTO_TEST_CASE(InterestSignature)
BOOST_CHECK(Validator::verifySignature(testInterest, sig));
}
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

8
tests/unit-tests/security/test-fixture.cpp → tests/unit-tests/security/identity-management-fixture.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -23,8 +23,10 @@
#include "boost-test.hpp"
namespace ndn {
namespace security {
namespace tests {
BOOST_FIXTURE_TEST_SUITE(SecurityTestIdentityManagementFixture, security::IdentityManagementFixture)
BOOST_FIXTURE_TEST_SUITE(SecurityIdentityManagementFixture, IdentityManagementFixture)
BOOST_AUTO_TEST_CASE(Tmp)
{
@ -37,4 +39,6 @@ BOOST_AUTO_TEST_CASE(Tmp)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace security
} // namespace ndn

2
tests/unit-tests/security/test-keychain.cpp → tests/unit-tests/security/key-chain.t.cpp

@ -31,7 +31,7 @@ namespace tests {
using std::vector;
BOOST_FIXTURE_TEST_SUITE(SecurityTestKeyChain, util::TestHomeEnvironmentFixture)
BOOST_FIXTURE_TEST_SUITE(SecurityKeyChain, util::TestHomeEnvironmentFixture)
BOOST_AUTO_TEST_CASE(ConstructorNormalConfig)
{

6
tests/unit-tests/security/test-key-params.cpp → tests/unit-tests/security/key-params.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -25,8 +25,9 @@
namespace ndn {
namespace tests {
BOOST_AUTO_TEST_SUITE(SecurityTestKeyParams)
BOOST_AUTO_TEST_SUITE(SecurityKeyParams)
BOOST_AUTO_TEST_CASE(RsaParameter)
{
@ -88,4 +89,5 @@ BOOST_AUTO_TEST_CASE(Error)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

7
tests/unit-tests/security/test-public-key.cpp → tests/unit-tests/security/public-key.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -25,10 +25,10 @@
#include "boost-test.hpp"
namespace ndn {
namespace tests {
BOOST_AUTO_TEST_SUITE(SecurityTestPublicKey)
BOOST_AUTO_TEST_SUITE(SecurityPublicKey)
const std::string RSA_DER("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuFoDcNtffwbfFix64fw0\
hI2tKMkFrc6Ex7yw0YLMK9vGE8lXOyBl/qXabow6RCz+GldmFN6E2Qhm1+AX3Zm5\
@ -104,4 +104,5 @@ BOOST_AUTO_TEST_CASE(ECDSA)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

4
tests/unit-tests/security/test-sec-public-info-sqlite3.cpp → tests/unit-tests/security/sec-public-info-sqlite3.t.cpp

@ -30,6 +30,7 @@
#include "boost-test.hpp"
namespace ndn {
namespace tests {
class PibTmpPathFixture
{
@ -51,7 +52,7 @@ public:
boost::filesystem::path tmpPath;
};
BOOST_AUTO_TEST_SUITE(SecurityTestSecPublicInfoSqlite3)
BOOST_AUTO_TEST_SUITE(SecuritySecPublicInfoSqlite3)
const std::string RSA_DER("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuFoDcNtffwbfFix64fw0\
hI2tKMkFrc6Ex7yw0YLMK9vGE8lXOyBl/qXabow6RCz+GldmFN6E2Qhm1+AX3Zm5\
@ -145,4 +146,5 @@ BOOST_AUTO_TEST_CASE(KeyTypeNonExist)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

62
tests/unit-tests/security/sec-rule-relative.t.cpp

@ -0,0 +1,62 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library 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.
*
* ndn-cxx library 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 Lesser General Public License for more details.
*
* You should have received copies of the GNU General Public License and GNU Lesser
* General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see
* <http://www.gnu.org/licenses/>.
*
* See AUTHORS.md for complete list of ndn-cxx authors and contributors.
*/
#include "security/sec-rule-relative.hpp"
#include "identity-management-fixture.hpp"
namespace ndn {
namespace security {
namespace tests {
BOOST_FIXTURE_TEST_SUITE(SecuritySecRuleRelative, IdentityManagementFixture)
BOOST_AUTO_TEST_CASE(SecRuleRelativeTest)
{
Name rsaIdentity("/SecurityTestSecRule/Basic/Rsa");
BOOST_REQUIRE(addIdentity(rsaIdentity, RsaKeyParams()));
Name ecdsaIdentity("/SecurityTestSecRule/Basic/Ecdsa");
BOOST_REQUIRE(addIdentity(ecdsaIdentity, EcdsaKeyParams()));
Name dataName("SecurityTestSecRule/Basic");
Data rsaData(dataName);
m_keyChain.signByIdentity(rsaData, rsaIdentity);
Data ecdsaData(dataName);
m_keyChain.signByIdentity(ecdsaData, ecdsaIdentity);
Data sha256Data(dataName);
m_keyChain.signWithSha256(sha256Data);
SecRuleRelative rule("^(<SecurityTestSecRule><Basic>)$",
"^(<SecurityTestSecRule><Basic>)<><KEY><><>$",
"==", "\\1", "\\1", true);
BOOST_CHECK(rule.satisfy(rsaData));
BOOST_CHECK(rule.satisfy(ecdsaData));
BOOST_CHECK_EQUAL(rule.satisfy(sha256Data), false);
BOOST_CHECK(rule.matchSignerName(rsaData));
BOOST_CHECK(rule.matchSignerName(ecdsaData));
BOOST_CHECK_EQUAL(rule.matchSignerName(sha256Data), false);
}
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace security
} // namespace ndn

36
tests/unit-tests/security/test-sec-rule.cpp → tests/unit-tests/security/sec-rule-specific.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -20,15 +20,16 @@
*/
#include "security/sec-rule-specific.hpp"
#include "security/sec-rule-relative.hpp"
#include "security/key-chain.hpp"
#include "identity-management-fixture.hpp"
#include "boost-test.hpp"
namespace ndn {
namespace security {
namespace tests {
BOOST_FIXTURE_TEST_SUITE(SecurityTestSecRule, security::IdentityManagementFixture)
BOOST_FIXTURE_TEST_SUITE(SecuritySecRuleSpecific, IdentityManagementFixture)
BOOST_AUTO_TEST_CASE(SecRuleSpecificTest)
{
@ -60,33 +61,8 @@ BOOST_AUTO_TEST_CASE(SecRuleSpecificTest)
BOOST_CHECK_EQUAL(rule.matchSignerName(sha256Data), false);
}
BOOST_AUTO_TEST_CASE(SecRuleRelativeTest)
{
Name rsaIdentity("/SecurityTestSecRule/Basic/Rsa");
BOOST_REQUIRE(addIdentity(rsaIdentity, RsaKeyParams()));
Name ecdsaIdentity("/SecurityTestSecRule/Basic/Ecdsa");
BOOST_REQUIRE(addIdentity(ecdsaIdentity, EcdsaKeyParams()));
Name dataName("SecurityTestSecRule/Basic");
Data rsaData(dataName);
m_keyChain.signByIdentity(rsaData, rsaIdentity);
Data ecdsaData(dataName);
m_keyChain.signByIdentity(ecdsaData, ecdsaIdentity);
Data sha256Data(dataName);
m_keyChain.signWithSha256(sha256Data);
SecRuleRelative rule("^(<SecurityTestSecRule><Basic>)$",
"^(<SecurityTestSecRule><Basic>)<><KEY><><>$",
"==", "\\1", "\\1", true);
BOOST_CHECK(rule.satisfy(rsaData));
BOOST_CHECK(rule.satisfy(ecdsaData));
BOOST_CHECK_EQUAL(rule.satisfy(sha256Data), false);
BOOST_CHECK(rule.matchSignerName(rsaData));
BOOST_CHECK(rule.matchSignerName(ecdsaData));
BOOST_CHECK_EQUAL(rule.matchSignerName(sha256Data), false);
}
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace security
} // namespace ndn

5
tests/unit-tests/security/test-sec-tpm-file.cpp → tests/unit-tests/security/sec-tpm-file.t.cpp

@ -30,8 +30,9 @@
#include "boost-test.hpp"
namespace ndn {
namespace tests {
BOOST_AUTO_TEST_SUITE(SecurityTestSecTpmFile)
BOOST_AUTO_TEST_SUITE(SecuritySecTpmFile)
BOOST_AUTO_TEST_CASE(Delete)
{
@ -404,7 +405,7 @@ BOOST_AUTO_TEST_CASE(ImportExportEcdsaKey)
BOOST_REQUIRE_EQUAL(tpm.doesKeyExistInTpm(keyName, KEY_CLASS_PUBLIC), false);
}
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

4
tests/unit-tests/security/test-sec-tpm-osx.cpp → tests/unit-tests/security/sec-tpm-osx.t.cpp

@ -30,6 +30,7 @@
#include "boost-test.hpp"
namespace ndn {
namespace tests {
class OsxKeyChainTestFixture
{
@ -61,7 +62,7 @@ protected:
std::string m_HOME;
};
BOOST_FIXTURE_TEST_SUITE(SecurityTestSecTpmOsx, OsxKeyChainTestFixture)
BOOST_FIXTURE_TEST_SUITE(SecuritySecTpmOsx, OsxKeyChainTestFixture)
BOOST_AUTO_TEST_CASE(Delete)
{
@ -360,4 +361,5 @@ BOOST_AUTO_TEST_CASE(ExportImportEcdsaKey)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

4
tests/unit-tests/security/test-signature-sha256-ecdsa.cpp → tests/unit-tests/security/signature-sha256-with-ecdsa.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -43,7 +43,7 @@ public:
Scheduler scheduler;
};
BOOST_FIXTURE_TEST_SUITE(SecurityTestSignatureSha256WithEcdsa, SignatureSha256EcdsaTimeFixture)
BOOST_FIXTURE_TEST_SUITE(SecuritySignatureSha256WithEcdsa, SignatureSha256EcdsaTimeFixture)
const uint8_t sigInfo[] = {
0x16, 0x1b, // SignatureInfo

4
tests/unit-tests/security/test-signature-sha256-rsa.cpp → tests/unit-tests/security/signature-sha256-with-rsa.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -43,7 +43,7 @@ public:
Scheduler scheduler;
};
BOOST_FIXTURE_TEST_SUITE(SecurityTestSignatureSha256WithRsa, SignatureSha256RsaTimeFixture)
BOOST_FIXTURE_TEST_SUITE(SecuritySignatureSha256WithRsa, SignatureSha256RsaTimeFixture)
const uint8_t sigInfo[] = {
0x16, 0x1b, // SignatureInfo

2
tests/unit-tests/security/test-validator-config.cpp → tests/unit-tests/security/validator-config.t.cpp

@ -37,7 +37,7 @@ using namespace std;
namespace ndn {
namespace tests {
BOOST_AUTO_TEST_SUITE(TestValidatorConfig)
BOOST_AUTO_TEST_SUITE(SecurityValidatorConfig)
BOOST_FIXTURE_TEST_CASE(NameFilter, security::IdentityManagementFixture)
{

6
tests/unit-tests/security/test-validator.cpp → tests/unit-tests/security/validator.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -26,10 +26,11 @@
#include "boost-test.hpp"
namespace ndn {
namespace tests {
using std::string;
BOOST_FIXTURE_TEST_SUITE(SecurityTestValidator, security::IdentityManagementFixture)
BOOST_FIXTURE_TEST_SUITE(SecurityValidator, security::IdentityManagementFixture)
void
onValidated(const shared_ptr<const Data>& data)
@ -219,4 +220,5 @@ BOOST_AUTO_TEST_CASE(EcdsaSignatureVerification2)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

4
tests/unit-tests/test-signature-info.cpp → tests/unit-tests/signature-info.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -24,6 +24,7 @@
#include "boost-test.hpp"
namespace ndn {
namespace tests {
BOOST_AUTO_TEST_SUITE(TestSignatureInfo)
@ -175,4 +176,5 @@ BOOST_AUTO_TEST_CASE(OtherTlvs)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

2
tests/unit-tests/test-tag-host.cpp → tests/unit-tests/tag-host.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*

8
tests/unit-tests/transport/test-tcp-transport.cpp → tests/unit-tests/transport/tcp-transport.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -25,10 +25,9 @@
#include "boost-test.hpp"
namespace ndn {
namespace tests {
BOOST_FIXTURE_TEST_SUITE(TransportTestTcpTransport, TransportFixture)
BOOST_FIXTURE_TEST_SUITE(TransportTcpTransport, TransportFixture)
BOOST_AUTO_TEST_CASE(GetDefaultSocketNameOk)
{
@ -101,4 +100,5 @@ BOOST_AUTO_TEST_CASE(GetDefaultSocketHostAndPortBadMalformedUri)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

4
tests/unit-tests/transport/test-unix-transport.cpp → tests/unit-tests/transport/unix-transport.t.cpp

@ -25,8 +25,9 @@
#include "boost-test.hpp"
namespace ndn {
namespace tests {
BOOST_FIXTURE_TEST_SUITE(TransportTestUnixTransport, TransportFixture)
BOOST_FIXTURE_TEST_SUITE(TransportUnixTransport, TransportFixture)
BOOST_AUTO_TEST_CASE(GetDefaultSocketNameOk)
{
@ -78,4 +79,5 @@ BOOST_AUTO_TEST_CASE(GetDefaultSocketNameBadMalformedUri)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

2
tests/unit-tests/unit-test-time-fixture.hpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*

14
tests/unit-tests/util/concepts.cpp → tests/unit-tests/util/concepts.t.cpp

@ -1,12 +1,12 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2014, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* Washington University in St. Louis,
* Beijing Institute of Technology,
* The University of Memphis
* Copyright (c) 2013-2015 Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* Washington University in St. Louis,
* Beijing Institute of Technology,
* The University of Memphis.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*

4
tests/unit-tests/util/test-config-file.cpp → tests/unit-tests/util/config-file.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -29,7 +29,7 @@
namespace ndn {
namespace tests {
BOOST_FIXTURE_TEST_SUITE(UtilTestConfigFile, util::TestHomeEnvironmentFixture)
BOOST_FIXTURE_TEST_SUITE(UtilConfigFile, util::TestHomeEnvironmentFixture)
BOOST_AUTO_TEST_CASE(TestParse)
{

4
tests/unit-tests/util/test-digest.cpp → tests/unit-tests/util/digest.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -28,7 +28,7 @@ namespace ndn {
namespace util {
namespace test {
BOOST_AUTO_TEST_SUITE(UtilTestDigest)
BOOST_AUTO_TEST_SUITE(UtilDigest)
BOOST_AUTO_TEST_CASE(Sha256Digest)
{

0
tests/unit-tests/util/test-dns.cpp → tests/unit-tests/util/dns.t.cpp

18
tests/unit-tests/util/ethernet.cpp → tests/unit-tests/util/ethernet.t.cpp

@ -1,12 +1,12 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2014, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* Washington University in St. Louis,
* Beijing Institute of Technology,
* The University of Memphis
* Copyright (c) 2013-2015 Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* Washington University in St. Louis,
* Beijing Institute of Technology,
* The University of Memphis.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -31,8 +31,9 @@
namespace ndn {
namespace util {
namespace tests {
BOOST_AUTO_TEST_SUITE(UtilTestEthernet)
BOOST_AUTO_TEST_SUITE(UtilEthernet)
BOOST_AUTO_TEST_CASE(BasicChecks)
{
@ -111,5 +112,6 @@ BOOST_AUTO_TEST_CASE(StdHash)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace util
} // namespace ndn

36
tests/unit-tests/util/test-event-emitter.cpp → tests/unit-tests/util/event-emitter.t.cpp

@ -1,6 +1,11 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* Washington University in St. Louis,
* Beijing Institute of Technology
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -17,42 +22,16 @@
* <http://www.gnu.org/licenses/>.
*
* See AUTHORS.md for complete list of ndn-cxx authors and contributors.
*
* This code is actually copied from NFD project (NDN Forwarding Daemon).
* We acknowledge the permission of the authors of NFD.
*/
/**
* Copyright (c) 2014 Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* Washington University in St. Louis,
* Beijing Institute of Technology
*
* This file is part of NFD (Named Data Networking Forwarding Daemon).
* See AUTHORS.md for complete list of NFD authors and contributors.
*
* NFD is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*
* NFD 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 General Public License along with
* NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
**/
#include "util/event-emitter.hpp"
#include "boost-test.hpp"
namespace ndn {
namespace util {
namespace tests {
using ndn::util::EventEmitter;
BOOST_AUTO_TEST_SUITE(UtilEventEmitter)
class EventEmitterTester : noncopyable
@ -272,4 +251,5 @@ BOOST_AUTO_TEST_CASE(HandlerByRef)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace util
} // namespace ndn

16
tests/unit-tests/util/face-uri.cpp → tests/unit-tests/util/face-uri.t.cpp

@ -1,12 +1,12 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2014-2015, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* Washington University in St. Louis,
* Beijing Institute of Technology,
* The University of Memphis.
* Copyright (c) 2013-2015 Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* Washington University in St. Louis,
* Beijing Institute of Technology,
* The University of Memphis.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -36,7 +36,7 @@ namespace tests {
using ndn::tests::NetworkConfigurationDetector;
BOOST_AUTO_TEST_SUITE(UtilTestFaceUri)
BOOST_AUTO_TEST_SUITE(UtilFaceUri)
class CanonizeFixture : noncopyable
{

6
tests/unit-tests/util/test-in-memory-storage-fifo.cpp → tests/unit-tests/util/in-memory-storage-fifo.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -23,10 +23,11 @@
#include "security/key-chain.hpp"
#include "boost-test.hpp"
#include "../test-make-interest-data.hpp"
#include "../make-interest-data.hpp"
namespace ndn {
namespace util {
namespace tests {
BOOST_AUTO_TEST_SUITE(UtilInMemoryStorage)
BOOST_AUTO_TEST_SUITE(Fifo)
@ -75,5 +76,6 @@ BOOST_AUTO_TEST_CASE(ArrivalQueue2)
BOOST_AUTO_TEST_SUITE_END() // Fifo
BOOST_AUTO_TEST_SUITE_END() // UtilInMemoryStorage
} // namespace tests
} // namespace util
} // namespace ndn

6
tests/unit-tests/util/test-in-memory-storage-lfu.cpp → tests/unit-tests/util/in-memory-storage-lfu.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -23,10 +23,11 @@
#include "security/key-chain.hpp"
#include "boost-test.hpp"
#include "../test-make-interest-data.hpp"
#include "../make-interest-data.hpp"
namespace ndn {
namespace util {
namespace tests {
BOOST_AUTO_TEST_SUITE(UtilInMemoryStorage)
BOOST_AUTO_TEST_SUITE(Lfu)
@ -130,5 +131,6 @@ BOOST_AUTO_TEST_CASE(FrequencyQueue2)
BOOST_AUTO_TEST_SUITE_END() // Lfu
BOOST_AUTO_TEST_SUITE_END() // UtilInMemoryStorage
} // namespace tests
} // namesapce util
} // namespace ndn

6
tests/unit-tests/util/test-in-memory-storage-lru.cpp → tests/unit-tests/util/in-memory-storage-lru.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -23,10 +23,11 @@
#include "security/key-chain.hpp"
#include "boost-test.hpp"
#include "../test-make-interest-data.hpp"
#include "../make-interest-data.hpp"
namespace ndn {
namespace util {
namespace tests {
BOOST_AUTO_TEST_SUITE(UtilInMemoryStorage)
BOOST_AUTO_TEST_SUITE(Lru)
@ -132,5 +133,6 @@ BOOST_AUTO_TEST_CASE(UsedTimeQueue2)
BOOST_AUTO_TEST_SUITE_END() // Lru
BOOST_AUTO_TEST_SUITE_END() // UtilInMemoryStorage
} // namespace tests
} // namespace util
} // namespace ndn

6
tests/unit-tests/util/test-in-memory-storage-persistent.cpp → tests/unit-tests/util/in-memory-storage-persistent.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -23,10 +23,11 @@
#include "security/key-chain.hpp"
#include "boost-test.hpp"
#include "../test-make-interest-data.hpp"
#include "../make-interest-data.hpp"
namespace ndn {
namespace util {
namespace tests {
BOOST_AUTO_TEST_SUITE(UtilInMemoryStorage)
BOOST_AUTO_TEST_SUITE(Persistent)
@ -60,5 +61,6 @@ BOOST_AUTO_TEST_CASE(InsertAndDouble)
BOOST_AUTO_TEST_SUITE_END() // Persistent
BOOST_AUTO_TEST_SUITE_END() // UtilInMemoryStorage
} // namespace tests
} // namespace util
} // namespace ndn

2
tests/unit-tests/util/indented-stream.cpp → tests/unit-tests/util/indented-stream.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*

4
tests/unit-tests/util/test-io.cpp → tests/unit-tests/util/io.t.cpp

@ -26,8 +26,9 @@
#include "boost-test.hpp"
namespace ndn {
namespace tests {
BOOST_FIXTURE_TEST_SUITE(UtilTestIo, security::IdentityManagementFixture)
BOOST_FIXTURE_TEST_SUITE(UtilIo, security::IdentityManagementFixture)
BOOST_AUTO_TEST_CASE(Basic)
{
@ -48,4 +49,5 @@ BOOST_AUTO_TEST_CASE(Basic)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

2
tests/unit-tests/util/notification-stream.cpp → tests/unit-tests/util/notification-stream.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*

34
tests/unit-tests/util/notification-subscriber.cpp → tests/unit-tests/util/notification-subscriber.t.cpp

@ -1,6 +1,12 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2015 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* Washington University in St. Louis,
* Beijing Institute of Technology,
* The University of Memphis.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -19,32 +25,6 @@
* See AUTHORS.md for complete list of ndn-cxx authors and contributors.
*/
/**
* Original copyright notice from NFD:
*
* Copyright (c) 2014, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* Washington University in St. Louis,
* Beijing Institute of Technology,
* The University of Memphis
*
* This file is part of NFD (Named Data Networking Forwarding Daemon).
* See AUTHORS.md for complete list of NFD authors and contributors.
*
* NFD is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*
* NFD 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 General Public License along with
* NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
*/
#include "util/notification-subscriber.hpp"
#include "util/notification-stream.hpp"
#include "simple-notification.hpp"

2
tests/unit-tests/util/placeholders.cpp → tests/unit-tests/util/placeholders.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*

2
tests/unit-tests/util/placeholders2.cpp → tests/unit-tests/util/placeholders2.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*

6
tests/unit-tests/util/test-random.cpp → tests/unit-tests/util/random.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -27,8 +27,9 @@
#include <cmath>
namespace ndn {
namespace tests {
BOOST_AUTO_TEST_SUITE(UtilTestRandom)
BOOST_AUTO_TEST_SUITE(UtilRandom)
class PseudoRandomWord32
{
@ -108,4 +109,5 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(GoodnessOfFit, RandomGenerator, RandomGenerators)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

9
tests/unit-tests/util/test-regex.cpp → tests/unit-tests/util/regex.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -32,10 +32,12 @@
#include "boost-test.hpp"
using namespace std;
namespace ndn {
namespace tests {
BOOST_AUTO_TEST_SUITE(UtilTestRegex)
using std::string;
BOOST_AUTO_TEST_SUITE(UtilRegex)
BOOST_AUTO_TEST_CASE(ComponentMatcher)
{
@ -464,4 +466,5 @@ BOOST_AUTO_TEST_CASE(TopMatcherAdvanced)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

8
tests/unit-tests/util/test-scheduler.cpp → tests/unit-tests/util/scheduler.t.cpp

@ -30,7 +30,9 @@ namespace util {
namespace scheduler {
namespace tests {
BOOST_FIXTURE_TEST_SUITE(UtilTestScheduler, ::ndn::tests::UnitTestTimeFixture)
using namespace ndn::tests;
BOOST_FIXTURE_TEST_SUITE(UtilScheduler, UnitTestTimeFixture)
BOOST_AUTO_TEST_CASE(Events)
{
@ -83,7 +85,7 @@ BOOST_AUTO_TEST_CASE(SelfCancel)
BOOST_REQUIRE_NO_THROW(advanceClocks(time::milliseconds(100), 10));
}
class SelfRescheduleFixture : public ::ndn::tests::UnitTestTimeFixture
class SelfRescheduleFixture : public UnitTestTimeFixture
{
public:
SelfRescheduleFixture()
@ -203,7 +205,7 @@ BOOST_FIXTURE_TEST_CASE(CancelAll, CancelAllFixture)
BOOST_CHECK_EQUAL(count, 0);
}
class ScopedEventFixture : public ::ndn::tests::UnitTestTimeFixture
class ScopedEventFixture : public UnitTestTimeFixture
{
public:
ScopedEventFixture()

0
tests/unit-tests/util/segment-fetcher.cpp → tests/unit-tests/util/segment-fetcher.t.cpp

0
tests/unit-tests/util/signal.cpp → tests/unit-tests/util/signal.t.cpp

2
tests/unit-tests/util/test-in-memory-storage-common.cpp

@ -26,7 +26,7 @@
#include "security/key-chain.hpp"
#include "boost-test.hpp"
#include "../test-make-interest-data.hpp"
#include "../make-interest-data.hpp"
#include <boost/mpl/list.hpp>

4
tests/unit-tests/util/test-time-unit-test-clock.cpp → tests/unit-tests/util/time-unit-test-clock.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -29,7 +29,7 @@
namespace ndn {
namespace tests {
BOOST_AUTO_TEST_SUITE(UtilTestTimeUnitTestClock)
BOOST_AUTO_TEST_SUITE(UtilTimeUnitTestClock)
class UnitTestTimeFixture
{

6
tests/unit-tests/util/test-time.cpp → tests/unit-tests/util/time.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@ -24,8 +24,9 @@
#include "boost-test.hpp"
namespace ndn {
namespace tests {
BOOST_AUTO_TEST_SUITE(UtilTestTime)
BOOST_AUTO_TEST_SUITE(UtilTime)
BOOST_AUTO_TEST_CASE(SystemClock)
{
@ -74,4 +75,5 @@ BOOST_AUTO_TEST_CASE(SteadyClock)
BOOST_AUTO_TEST_SUITE_END()
} // namespace tests
} // namespace ndn

2
tests/unit-tests/test-version.cpp → tests/unit-tests/version.t.cpp

@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2013-2014 Regents of the University of California.
* Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*

6
tests/wscript

@ -27,16 +27,16 @@ def build(bld):
name="unit-test-objects",
features="cxx",
source=bld.path.ant_glob(['unit-tests/**/*.cpp'],
excl=['**/*-osx.cpp', '**/*-sqlite3.cpp']),
excl=['**/*-osx.t.cpp', '**/*-sqlite3.t.cpp']),
use='ndn-cxx tests-base BOOST',
includes='.',
install_path=None)
if bld.env['HAVE_OSX_SECURITY']:
unit_tests.source += bld.path.ant_glob('unit-tests/**/*-osx.cpp')
unit_tests.source += bld.path.ant_glob('unit-tests/**/*-osx.t.cpp')
# In case we want to make it optional later
unit_tests.source += bld.path.ant_glob('unit-tests/**/*-sqlite3.cpp')
unit_tests.source += bld.path.ant_glob('unit-tests/**/*-sqlite3.t.cpp')
# unit test app
bld(features='cxx cxxprogram',

Loading…
Cancel
Save