Davide Pesavento
e277f8b9e8
tools: switch to Face::getIoContext()
...
Change-Id: I6be4c682d62e1061af45052d2141b9e5b9e897c5
2023-11-11 17:14:02 -05:00
Davide Pesavento
d7083a507f
tests: refactor EthernetFixture
...
Also, use BOOST_TEST_INFO_SCOPE in a few places.
Change-Id: I113f326207825949ed9d3d22ade0654976d49b76
2023-10-19 17:51:16 -04:00
Davide Pesavento
5d64263dcb
daemon: use asio::defer() instead of asio::post() where appropriate
...
Change-Id: I24d0fab6499d6430dd500ca157daa87f48960d15
2023-10-03 00:36:08 -04:00
Davide Pesavento
a9e1ab2664
build: require boost >= 1.71.0
...
Refs: #5276
Change-Id: Ie428541639dcf1113acfb9e9d0a80f9be87d6cd3
2023-10-02 22:42:02 -04:00
Davide Pesavento
ae43030f6f
Further reduce the use of std::bind()
...
And also avoid deprecated ndn-cxx type aliases
Change-Id: I87e903b9671a3cf1c1b9ab30d4594d595c3c6da9
2023-05-11 01:50:11 -04:00
Davide Pesavento
63b3ae818f
tools: fix compilation with latest ndn-cxx
...
Change-Id: Ifded624f3256452be98f288f9193dd26e464cd36
2023-03-27 14:05:04 -04:00
Davide Pesavento
aa9e3b2148
docs: fix capitalization in doxygen comments
...
Change-Id: Ibf5ee5119d12d60d382b0acef8dfd08277c18fcb
2022-10-29 21:45:24 -04:00
Davide Pesavento
20cafa8715
tests: minor code cleanups
...
Change-Id: I9759ba4b7eb467d4d1df4b379efad91bc4f5cc3a
2022-07-25 01:15:03 -04:00
Davide Pesavento
a9b09b6994
build: make precompiled headers more useful
...
This can reduce the compilation time of a release
build (without tests) by more than 40%
Refs: #5212
Change-Id: I977aff0c0c7becbfee8a8b55605b81d0c014829b
2022-06-13 16:30:11 -04:00
Davide Pesavento
e422f9e1e9
Refactor and modernize namespace declarations
...
Move all unit tests to namespace nfd::tests
Delete unused header core/algorithm.hpp
Change-Id: I5591f0c5f3bb5db67f8b45fae95471f8a555ca68
2022-06-11 20:10:26 -04:00
Davide Pesavento
a3a7a4e330
Use more C++17 features
...
Mainly structured bindings, inline variables, and class template
argument deduction, plus many more smaller things.
Change-Id: I810d17e0adb470426e4e30c898e03b3140ad052f
2022-06-04 20:26:02 -04:00
Davide Pesavento
b7bfcb904a
build: switch to C++17
...
Change-Id: Ie68020a04b7e20b74778b6d0370544ded55c5e26
2022-05-23 03:42:32 -04:00
Davide Pesavento
1b22a8c156
tests: drop redundant calls to Interest::setCanBePrefix(false)
...
Change-Id: I6afd1028ab370633c64a74ab4310396dab3c8a03
2022-03-07 21:23:23 -05:00
Davide Pesavento
c52cd5eec1
build: align minimum build dependencies with ndn-cxx
...
* boost 1.65.1
* gcc 7.4
* clang 6.0
* Xcode 10.0 (11.3 or later recommended)
Change-Id: I5e41f2a70d6c510dcb889a083a51504121b4627d
2022-03-05 20:40:54 -05:00
Davide Pesavento
a599d2aac9
Convert to span and avoid deprecated ndn-cxx functions
...
Change-Id: I45c50527fe53498b53a3d951458bdff8e7d7778c
2022-02-16 18:52:43 -05:00
Alexander Afanasyev
c414ca5895
tools: Allow batch command processing by nfdc
...
Change-Id: Ia6f70fed88f2d4c918e2ca2b786222840dbd9076
Refs: #5169
2021-12-21 14:27:26 -05:00
Davide Pesavento
412c982a63
Reduce usage of std::bind()
...
C++14 lambdas are easier to read, easier to debug,
and can usually be better optimized by the compiler.
Change-Id: I294f275904f91942a8de946fe63e77078a7608a6
2021-07-02 00:21:05 -04:00
Eric Newberry
7249fb4d52
docs+tests: finalize migration to typed naming conventions
...
refs #5044
Change-Id: Ia6f52ae0a31db33ca0f9fa6c4553b8fbbc7809bc
2021-04-05 18:16:44 -04:00
Eric Newberry
358414d82f
fw: remove reliance upon marker name components
...
refs #5044
Change-Id: Iea6c98e03dbd3e4463f7bb6fca0be4953a2cdc40
2021-03-25 21:10:38 -07:00
Alexander Afanasyev
4400e428d4
fw: Remove NACKs from multicast strategy
...
Change-Id: I49b833ec0ad990dfdf547aef80915e3fc83389ec
Refs: #5146
2021-02-19 18:45:55 -05:00
Davide Pesavento
2135375d36
tests: sync common testing infrastructure with ndn-cxx
...
Change-Id: I6feab5247231abc35b8daa96bca21ad17c9cc4b3
2020-11-20 00:43:44 -05:00
Alexander Afanasyev
a158370ecb
Adjust includes for the updated locations of ndn-cxx security headers
...
Change-Id: I5a94879966de2c166fed8dedda0ed1d65c33c300
2020-06-06 16:30:06 -04:00
Eric Newberry
4995bf960d
tools: erase all requested entries from CS in nfdc
...
This change modifies the behavior of nfdc cs
erase to erase up to the requested count of CS
entries, instead of requiring the user to
continually rerun the command to reach the
desired count of erases.
refs #4744
Change-Id: Ia9b6fa2b4f97769fe6fa911a7b0b5c641ce215dc
2020-04-21 15:31:53 -07:00
Davide Pesavento
b93fb6c831
ci: set ASan's detect_invalid_pointer_pairs to 2
...
Change-Id: Ibc9a4bd447a8ccebbf864c2da6c279ef5e272739
2020-04-13 20:54:43 -04:00
Eric Newberry
d656aff913
tools: create face during nfdc route add
...
refs #4332
Change-Id: I1a30bf87abd57bab08a2c027870e779392de0104
2020-04-08 20:55:11 -07:00
Eric Newberry
13ff259ec8
mgmt+tools: allow MTU overrides on existing faces
...
refs #5056
Change-Id: I464a0c68773290bf1cfd0bf2afc4344e79fbb614
2020-03-31 17:50:55 -07:00
Davide Pesavento
cf9e1c7789
tests: avoid deprecated boost headers
...
Change-Id: I1b79c9422109d2ce8832fd386b524bd9ffffa231
2019-12-22 17:56:07 -05:00
Ju Pan
57113d1369
Revert "tools: display EndpointId in 'nfdc fib list'"
...
This reverts commit 13839ac94a .
Refs: #4973
Change-Id: If03e8f22ff4c8c65b20b486302fda0ffc8192662
2019-08-07 21:21:47 +00:00
Ju Pan
13839ac94a
tools: display EndpointId in 'nfdc fib list'
...
Refs: #4816
Change-Id: Id656939d9595adbd8c96a78e9aedfdd8dda2a555
2019-06-19 12:08:43 -07:00
Junxiao Shi
47c343b9f2
tools: set CanBePrefix in autoconfig
...
Also, rewrite RoutablePrefixesDataset test suite to use
SegmentFetcher.
refs #4581
Change-Id: I68e0ffcd59dcbae0856bfa2977545f06482f3515
2019-05-25 07:53:01 +00:00
Junxiao Shi
73b4980eb6
tests: add FreshnessPeriod where MustBeFresh is used
...
Also, set MustBeFresh in autoconfig-server HubData test,
to reflect the behavior of autoconfig client.
refs #4913
Change-Id: I0af29378630a2208e98ef0913d83668a603e9a88
2019-05-25 07:52:26 +00:00
Davide Pesavento
14e71f0fe8
tests+tools: minor code cleanup
...
Change-Id: Ic3356d4a18a8e5eeb45fc076fc0563c3d1549c8a
2019-03-28 18:46:47 -04:00
Davide Pesavento
cf7db2fd83
tests: unit-tests-{core,tools} no longer require a global io_service
...
BaseFixture is moved to tests/daemon and renamed to GlobalIoFixture
Refs: #4528
Change-Id: If9184e9f7f1d6072b0103d3ea3ca6c31a9e505c8
2019-03-26 22:52:16 -04:00
Davide Pesavento
b7703adb88
tests: introduce ClockFixture
...
Identical to UnitTestTimeFixture, except that it does not derive
from BaseFixture, and thus does not depend on a global io_service.
Refs: #4528
Change-Id: Ia2e6c4835a1e461c73281e103109d5cc85be355e
2019-03-26 22:51:04 -04:00
Davide Pesavento
1d12d2fe4e
tests: IdentityManagementFixture no longer derives from BaseFixture
...
Also rename it to KeyChainFixture
Refs: #4528
Change-Id: Id86f4affc9c4c9ae159912430cc3e78557bf1ac2
2019-03-26 22:50:07 -04:00
Davide Pesavento
fa2aa50d8d
face+tools: fix compilation with Boost 1.69.0
...
Refs: #4890
Change-Id: I64c2e6ac99767fbd0b8afa9669eb6097148f8628
2019-03-22 21:44:29 -04:00
Davide Pesavento
3dade00499
core+daemon: eliminate scheduler::{schedule,cancel} wrappers
...
Also move core/global-io.hpp to daemon/global.hpp
Refs: #4528 , #4883
Change-Id: I0b99029f1a19d7451aab57099cd3303b7eb42ff3
2019-03-19 11:29:56 -06:00
Davide Pesavento
8b663a9528
tools: replace boost::any usage with ndn::any
...
Change-Id: I7048a64b7c17353037ea9a64a11366d2fae6fd49
2018-11-25 02:49:27 -05:00
Ju Pan
7570e778e4
tools: display satisfied and unsatisfied interests counters
...
refs: #4720
Change-Id: I69c2400a558997ff48f2b66883cc680dc497360a
2018-11-02 19:49:00 +00:00
Junxiao Shi
a4d7fe0f22
tools: implement 'nfdc cs erase' command
...
refs #4318
Change-Id: If4dc401a3efff44a5bf4b3074d21797f8384cf9f
2018-07-20 06:51:41 -06:00
Davide Pesavento
d657d53eea
build: require clang >= 3.6
...
Also fix an unused lambda capture warning with clang >= 5.0
Change-Id: I29c56cdf560da4a44efa038d4e65d868975aab6e
2018-06-26 21:16:10 -07:00
Eric Newberry
359135cfb2
tests: check against new SegmentFetcher error messages
...
refs #4364
Change-Id: I543930d76a01ef1eeef611fb589eb722342b5a86
2018-06-26 21:02:12 -07:00
Eric Newberry
4f8dd96fbf
tools: add mtu option to 'nfdc face create'
...
refs #4789
Change-Id: I9e31c5fb460ee99199332ffb6fadc9f0f33125e9
2018-06-20 22:16:57 -07:00
Davide Pesavento
1705744468
tests: stop using deprecated {get,set}FinalBlockId
...
Change-Id: Ibe3f7b394487773139ec4e17d2b87ca8cb06504a
2018-06-06 16:25:04 -04:00
Davide Pesavento
87fc0f8d6f
core: drop std::function and ndn::Exclude from common.hpp, add ndn::optional
...
Change-Id: Ie3983d8b6f9929430efd8ada8d942e3f95755cd4
2018-04-12 14:23:40 -04:00
Junxiao Shi
7a36ac7d9d
tools: include CS config in 'nfdc cs info'
...
Also, ForwarderGeneralModule::formatItemText now uses ItemAttributes.
refs #4050
Change-Id: I1b2bde29b82e4b3910d87b41efd90e273052b18d
2018-03-21 15:23:22 +00:00
Junxiao Shi
cdf7845986
tools: add 'nfdc cs config' command
...
refs #4050
Change-Id: Ifc49b78a286b1947452d3d7917b5937b95d1bfe5
2018-03-03 07:37:47 -08:00
Junxiao Shi
8dc473a724
tools: simplify on/off attribute printing
...
refs #4004
Change-Id: Idb666ff4dbeddc37f1cb10710ba3d75f7fe8bdb5
2018-03-03 07:35:50 -08:00
Davide Pesavento
d214744ab8
tools: alias 'nfdc cs' to 'nfdc cs info'
...
Change-Id: Ied1d34a84110ee0b6488d35d56fb1caecaf14117
Refs: #4498
2018-02-20 21:39:09 -05:00
Davide Pesavento
2a58815ee3
tools: extend nfdc help to cover more cases
...
Change-Id: I0cd182c8635b15c8ffb750c913e14fa99e595d45
Refs: #4503
2018-02-20 21:34:00 -05:00