mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix RTDS IP unit test
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
parent
c678fe36fc
commit
eff0f2e83f
2 changed files with 4 additions and 3 deletions
|
@ -183,6 +183,7 @@ virtual
|
|||
}
|
||||
|
||||
private:
|
||||
// Get a VLNV identifier for which this IP / Node type can be used.
|
||||
virtual
|
||||
Vlnv getCompatibleVlnv() const
|
||||
{
|
||||
|
@ -193,7 +194,7 @@ private:
|
|||
Core* make() const
|
||||
{
|
||||
return new T;
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
} /* namespace ip */
|
||||
|
|
|
@ -46,12 +46,12 @@ Test(fpga, rtds, .description = "RTDS")
|
|||
{
|
||||
auto logger = villas::logging.get("unit-test:rtds");
|
||||
|
||||
std::list<villas::fpga::ip::Rtds*> rtdsIps;
|
||||
std::list<villas::fpga::ip::RtdsGtfpga*> rtdsIps;
|
||||
std::list<villas::fpga::ip::Dma*> dmaIps;
|
||||
|
||||
for (auto &ip : state.cards.front()->ips) {
|
||||
if (*ip == villas::fpga::Vlnv("acs.eonerc.rwth-aachen.de:user:rtds_axis:")) {
|
||||
auto rtds = reinterpret_cast<villas::fpga::ip::Rtds*>(ip.get());
|
||||
auto rtds = reinterpret_cast<villas::fpga::ip::RtdsGtfpga*>(ip.get());
|
||||
rtdsIps.push_back(rtds);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue