3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-23 06:13:41 +00:00

tests: add a quick plugin test

This commit is contained in:
Eddie Hung 2020-04-09 09:45:20 -07:00
parent 60ffc21e64
commit f11dd6e208
3 changed files with 22 additions and 0 deletions

15
tests/various/plugin.cc Normal file
View file

@ -0,0 +1,15 @@
#include "kernel/rtlil.h"
YOSYS_NAMESPACE_BEGIN
struct TestPass : public Pass {
TestPass() : Pass("test", "test") { }
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
{
size_t argidx = 1;
extra_args(args, argidx, design);
log("Plugin test passed!\n");
}
} TestPass;
YOSYS_NAMESPACE_END