projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae115fa
)
tests: use `yosys-config --datdir` instead of hard-coded
author
Eddie Hung
<eddie@fpgeh.com>
Wed, 22 Apr 2020 15:29:45 +0000
(08:29 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Wed, 22 Apr 2020 15:29:45 +0000
(08:29 -0700)
tests/various/plugin.sh
patch
|
blob
|
history
diff --git
a/tests/various/plugin.sh
b/tests/various/plugin.sh
index d6d4aee595f047e794806b6a910800339288b5e5..2880c8c06f285cb6fbeb3895f0a63798e188db0e 100644
(file)
--- a/
tests/various/plugin.sh
+++ b/
tests/various/plugin.sh
@@
-1,6
+1,8
@@
set -e
rm -f plugin.so
CXXFLAGS=$(../../yosys-config --cxxflags)
-CXXFLAGS=${CXXFLAGS// -I\/usr\/local\/share\/yosys\/include/ -I..\/..\/share\/include}
+DATDIR=$(../../yosys-config --datdir)
+DATDIR=${DATDIR//\//\\\/}
+CXXFLAGS=${CXXFLAGS//$DATDIR/..\/..\/share}
../../yosys-config --exec --cxx ${CXXFLAGS} --ldflags -shared -o plugin.so plugin.cc
../../yosys -m ./plugin.so -p "test" | grep -q "Plugin test passed!"