1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00
VILLASnode/fpga/tests/unit/global.hpp
Niklas Eiling 2967fb8ac9 fix fpga.cpp unit test failing due to changed DeviceList interface
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-12-12 14:08:34 +01:00

21 lines
490 B
C++

/* Global include for tests.
*
* Author: Steffen Vogel <post@steffenvogel.de>
* SPDX-FileCopyrightText: 2017 Steffen Vogel <post@steffenvogel.de>
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <cstdlib>
#include <villas/fpga/card.hpp>
class FpgaState {
public:
// List of all available FPGA cards, only first will be tested at the moment
std::list<std::shared_ptr<villas::fpga::Card>> cards;
};
// Global state to be shared by unittests
extern FpgaState state;