verilator: enable doCheck = true
Based on the work from yangm2 in #109493. Co-authored-by: yangm2 <yangm2@users.noreply.github.com> Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
5ceadb26b8
commit
3afaf7d263
@ -1,5 +1,6 @@
|
||||
{ lib, stdenv, fetchFromGitHub
|
||||
, perl, flex, bison, python3, autoconf
|
||||
, which, cmake
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -16,20 +17,21 @@ stdenv.mkDerivation rec {
|
||||
enableParallelBuilding = true;
|
||||
buildInputs = [ perl ];
|
||||
nativeBuildInputs = [ flex bison python3 autoconf ];
|
||||
checkInputs = [ which ];
|
||||
|
||||
# these tests need some interpreter paths patched early on...
|
||||
# see https://github.com/NixOS/nix/issues/1205
|
||||
doCheck = false;
|
||||
doCheck = stdenv.isLinux; # darwin tests are broken for now...
|
||||
checkTarget = "test";
|
||||
|
||||
preConfigure = ''
|
||||
autoconf
|
||||
'';
|
||||
preConfigure = "autoconf";
|
||||
|
||||
postPatch = ''
|
||||
preCheck = ''
|
||||
patchShebangs \
|
||||
src/flexfix \
|
||||
src/vlcovgen
|
||||
src/vlcovgen \
|
||||
bin/verilator \
|
||||
bin/verilator_coverage \
|
||||
test_regress/driver.pl \
|
||||
test_regress/t/*.pl
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user