1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-23 00:00:01 +01:00
VILLASnode/fpga/tests/global.hpp

21 lines
380 B
C++

#pragma once
#include <cstdlib>
#include <villas/fpga/card.hpp>
class FpgaState {
public:
FpgaState() {
// force criterion to only run one job at a time
setenv("CRITERION_JOBS", "1", 0);
}
// list of all available FPGA cards, only first will be tested at the moment
villas::fpga::CardList cards;
};
// global state to be shared by unittests
extern FpgaState state;