mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
tests: Move RFNoC mock nodes to public headers
The mock RFNoC nodes that were previously only part of UHD are now part of the public headers (however, the mock nodes are not compiled as part of UHD). This makes them available to out-of-tree RFNoC modules that want to write unit tests for their block controllers.
This commit is contained in:
parent
03b2884c4f
commit
ac896f0224
@ -20,6 +20,7 @@ UHD_INSTALL(FILES
|
||||
lc_block_control.hpp
|
||||
logpwr_block_control.hpp
|
||||
mock_block.hpp
|
||||
mock_nodes.hpp
|
||||
moving_average_block_control.hpp
|
||||
null_block_control.hpp
|
||||
radio_control.hpp
|
||||
|
||||
@ -4,8 +4,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#ifndef INCLUDED_LIBUHD_TESTS_MOCK_NODES_HPP
|
||||
#define INCLUDED_LIBUHD_TESTS_MOCK_NODES_HPP
|
||||
#pragma once
|
||||
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/node.hpp>
|
||||
@ -13,7 +12,8 @@
|
||||
#include <uhd/types/stream_cmd.hpp>
|
||||
#include <list>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
|
||||
namespace uhd { namespace rfnoc { namespace test {
|
||||
|
||||
constexpr int MAX_DECIM = 512;
|
||||
constexpr double DEFAULT_RATE = 1e9;
|
||||
@ -594,4 +594,5 @@ private:
|
||||
size_t _input_ports;
|
||||
size_t _output_ports;
|
||||
};
|
||||
#endif /* INCLUDED_LIBUHD_TESTS_MOCK_NODES_HPP */
|
||||
|
||||
}}} // namespace uhd::rfnoc::test
|
||||
@ -4,9 +4,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhd/utils/log.hpp>
|
||||
@ -14,6 +14,8 @@
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
const std::string STREAM_CMD_KEY = "stream_cmd";
|
||||
|
||||
|
||||
@ -4,18 +4,19 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/addsub_block_control.hpp>
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhdlib/utils/narrow.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,13 +4,13 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/ddc_block_control.hpp>
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/duc_block_control.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhd/rfnoc/null_block_control.hpp>
|
||||
#include <uhdlib/utils/narrow.hpp>
|
||||
@ -18,6 +18,7 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,18 +4,19 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/duc_block_control.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhdlib/utils/narrow.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,11 +4,11 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include "ferrum_radio_mock.hpp"
|
||||
#include "x4xx_fbx_mpm_mock.hpp"
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/utils/log.hpp>
|
||||
#include <uhd/utils/math.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
@ -18,6 +18,7 @@
|
||||
|
||||
using namespace uhd;
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
using namespace std::chrono_literals;
|
||||
using namespace uhd::usrp::fbx;
|
||||
using namespace uhd::experts;
|
||||
|
||||
@ -4,16 +4,17 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/fft_block_control.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,16 +4,17 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/fft_block_control.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,18 +4,19 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/fir_filter_block_control.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhdlib/utils/narrow.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,17 +4,18 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/fosphor_block_control.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhdlib/utils/narrow.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,16 +4,17 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/keep_one_in_n_block_control.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,17 +4,18 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/lc_block_control.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,12 +4,12 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/logpwr_block_control.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhd/rfnoc/register_iface_holder.hpp>
|
||||
#include <uhdlib/utils/narrow.hpp>
|
||||
@ -17,6 +17,7 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,11 +4,11 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/moving_average_block_control.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhd/rfnoc/null_block_control.hpp>
|
||||
@ -17,6 +17,7 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,11 +4,11 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhd/rfnoc/null_block_control.hpp>
|
||||
#include <uhdlib/utils/narrow.hpp>
|
||||
@ -16,6 +16,7 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,13 +4,13 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/convert.hpp>
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/ddc_block_control.hpp>
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhd/rfnoc/replay_block_control.hpp>
|
||||
#include <uhdlib/utils/narrow.hpp>
|
||||
@ -18,6 +18,7 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,11 +4,11 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/multichan_register_iface.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhd/rfnoc/register_iface_holder.hpp>
|
||||
@ -19,6 +19,7 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,16 +4,17 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhd/rfnoc/split_stream_block_control.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,11 +4,11 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhd/rfnoc/switchboard_block_control.hpp>
|
||||
#include <uhdlib/utils/narrow.hpp>
|
||||
@ -16,6 +16,7 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,11 +4,11 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/multichan_register_iface.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhd/rfnoc/register_iface_holder.hpp>
|
||||
@ -18,6 +18,7 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,11 +4,11 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/actions.hpp>
|
||||
#include <uhd/rfnoc/defaults.hpp>
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhd/rfnoc/window_block_control.hpp>
|
||||
#include <uhdlib/utils/narrow.hpp>
|
||||
@ -16,6 +16,7 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
// Redeclare this here, since it's only defined outside of UHD_API
|
||||
noc_block_base::make_args_t::~make_args_t() = default;
|
||||
|
||||
@ -4,11 +4,11 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "../rfnoc_graph_mock_nodes.hpp"
|
||||
#include "x4xx_radio_mock.hpp"
|
||||
#include "x4xx_zbx_mpm_mock.hpp"
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/utils/log.hpp>
|
||||
#include <uhd/utils/math.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
@ -18,6 +18,7 @@
|
||||
|
||||
using namespace uhd;
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
using namespace std::chrono_literals;
|
||||
using namespace uhd::usrp::zbx;
|
||||
using namespace uhd::experts;
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/node.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhd/utils/log.hpp>
|
||||
@ -16,6 +16,7 @@
|
||||
|
||||
using uhd::rfnoc::detail::graph_t;
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
namespace uhd { namespace rfnoc { namespace detail {
|
||||
|
||||
|
||||
@ -4,9 +4,9 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
//
|
||||
|
||||
#include "rfnoc_graph_mock_nodes.hpp"
|
||||
#include <uhd/rfnoc/detail/graph.hpp>
|
||||
#include <uhd/rfnoc/mock_block.hpp>
|
||||
#include <uhd/rfnoc/mock_nodes.hpp>
|
||||
#include <uhd/rfnoc/noc_block_base.hpp>
|
||||
#include <uhd/rfnoc/node_accessor.hpp>
|
||||
#include <uhd/rfnoc/rfnoc_types.hpp>
|
||||
@ -17,6 +17,9 @@
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
|
||||
using namespace uhd::rfnoc;
|
||||
using namespace uhd::rfnoc::test;
|
||||
|
||||
/*! Mock invalid node
|
||||
*
|
||||
* This block has an output prop that is always twice the input prop. This block
|
||||
|
||||
Loading…
Reference in New Issue
Block a user