* Perl builder: run tests by default.

svn path=/nixpkgs/trunk/; revision=14041
This commit is contained in:
Eelco Dolstra 2009-02-12 15:56:35 +00:00
parent 09bb1e1116
commit 61e7bd7372
2 changed files with 15 additions and 10 deletions

View File

@ -2,14 +2,10 @@ source $stdenv/setup
PERL5LIB="$PERL5LIB${PERL5LIB:+:}$out/lib/site_perl" PERL5LIB="$PERL5LIB${PERL5LIB:+:}$out/lib/site_perl"
oldIFS=$IFS
IFS=:
perlFlags= perlFlags=
for i in $PERL5LIB; do for i in $(IFS=:; echo $PERL5LIB); do
perlFlags="$perlFlags -I$i" perlFlags="$perlFlags -I$i"
done done
IFS=$oldIFS
echo "Perl flags: $perlFlags"
oldPreConfigure="$preConfigure" oldPreConfigure="$preConfigure"
preConfigure=preConfigure preConfigure=preConfigure

View File

@ -2,8 +2,17 @@ perl:
attrs: attrs:
perl.stdenv.mkDerivation (attrs // { perl.stdenv.mkDerivation (
name = "perl-" + attrs.name; {
builder = ./builder.sh; doCheck = true;
buildInputs = [(if attrs ? buildInputs then attrs.buildInputs else []) perl]; checkTarget = "test";
}) }
//
attrs
//
{
name = "perl-" + attrs.name;
builder = ./builder.sh;
buildInputs = [(if attrs ? buildInputs then attrs.buildInputs else []) perl];
}
)