mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
perl: Disable tests
They're on the critical path for stdenv rebuilds.
This commit is contained in:
parent
9ff0b303ff
commit
da7a12b908
@ -64,29 +64,5 @@ stdenv.mkDerivation rec {
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
# some network-related tests don't work, mostly probably due to our sandboxing
|
||||
testsToSkip = ''
|
||||
lib/Net/hostent.t \
|
||||
dist/IO/t/{io_multihomed.t,io_sock.t} \
|
||||
dist/Net-Ping/t/*.t \
|
||||
cpan/autodie/t/truncate.t \
|
||||
t/porting/{maintainers.t,regen.t} \
|
||||
cpan/Socket/t/get{name,addr}info.t \
|
||||
'' + optionalString stdenv.isFreeBSD ''
|
||||
cpan/CPANPLUS/t/04_CPANPLUS-Module.t \
|
||||
cpan/CPANPLUS/t/20_CPANPLUS-Dist-MM.t \
|
||||
'' + " ";
|
||||
|
||||
postPatch = optionalString (!stdenv.isDarwin) /* this failed on Darwin, no idea why */ ''
|
||||
for test in ${testsToSkip}; do
|
||||
echo "Removing test" $test
|
||||
rm "$test"
|
||||
pat=`echo "$test" | sed 's,/,\\\\/,g'` # just escape slashes
|
||||
sed "/^$pat/d" -i MANIFEST
|
||||
done
|
||||
'';
|
||||
|
||||
passthru.libPrefix = "lib/perl5/site_perl";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user