yosys/tests/various/plugin.sh

7 lines
306 B
Bash
Raw Normal View History

2020-04-09 11:45:20 -05:00
set -e
rm -f plugin.so
CXXFLAGS=$(../../yosys-config --cxxflags)
CXXFLAGS=${CXXFLAGS// -I\/usr\/local\/share\/yosys\/include/ -I..\/..\/share\/include}
../../yosys-config --exec --cxx ${CXXFLAGS} --ldflags -shared -o plugin.so plugin.cc
../../yosys -m ./plugin.so -p "test" | grep -q "Plugin test passed!"