mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 13:18:56 +00:00
tests: add a quick plugin test
This commit is contained in:
parent
60ffc21e64
commit
f11dd6e208
3 changed files with 22 additions and 0 deletions
6
tests/various/plugin.sh
Normal file
6
tests/various/plugin.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
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!"
|
Loading…
Add table
Add a link
Reference in a new issue