yosys: enable tests
This commit is contained in:
parent
b819ce615d
commit
26d26f77a6
|
@ -2,6 +2,7 @@
|
||||||
, pkgconfig, bison, flex
|
, pkgconfig, bison, flex
|
||||||
, tcl, readline, libffi, python3
|
, tcl, readline, libffi, python3
|
||||||
, protobuf, zlib
|
, protobuf, zlib
|
||||||
|
, verilog
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with builtins;
|
with builtins;
|
||||||
|
@ -49,6 +50,7 @@ stdenv.mkDerivation rec {
|
||||||
--replace 'LD = gcc' 'LD = $(CXX)' \
|
--replace 'LD = gcc' 'LD = $(CXX)' \
|
||||||
--replace 'ABCMKARGS = CC="$(CXX)" CXX="$(CXX)"' 'ABCMKARGS =' \
|
--replace 'ABCMKARGS = CC="$(CXX)" CXX="$(CXX)"' 'ABCMKARGS =' \
|
||||||
--replace 'echo UNKNOWN' 'echo ${substring 0 10 (elemAt srcs 0).rev}'
|
--replace 'echo UNKNOWN' 'echo ${substring 0 10 (elemAt srcs 0).rev}'
|
||||||
|
patchShebangs tests
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
@ -62,6 +64,13 @@ stdenv.mkDerivation rec {
|
||||||
(cd misc && ${protobuf}/bin/protoc --cpp_out ../backends/protobuf/ ./yosys.proto)
|
(cd misc && ${protobuf}/bin/protoc --cpp_out ../backends/protobuf/ ./yosys.proto)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkInputs = [ verilog ];
|
||||||
|
# checkPhase defaults to VERBOSE=y, which gets passed down to abc,
|
||||||
|
# which then does $(VERBOSE)gcc, which then complains about not
|
||||||
|
# being able to find ygcc. Life is pain.
|
||||||
|
checkFlags = [ " " ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Framework for RTL synthesis tools";
|
description = "Framework for RTL synthesis tools";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
|
Loading…
Reference in a new issue