The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package Module::Install::PRIVATE::Add_Test_Target;

use strict;

use vars qw( @ISA $VERSION );

use Module::Install::Base;
@ISA = qw( Module::Install::Base );

$VERSION = sprintf "%d.%02d%02d", q/0.10.0/ =~ /(\d+)/g;

# ---------------------------------------------------------------------------

sub Add_Test_Target
{
  my ($self, $target, $test) = @_;

  *main::MY::postamble = sub {
    return &Module::AutoInstall::postamble . <<EOF;
$target :: pure_all
\tPERL_DL_NONLAZY=1 \$(PERLRUN) "-I\$(INST_LIB)" "-I\$(INST_ARCHLIB)" $test
EOF
  };
}

1;