#!/usr/bin/bash
set -e
unset AUTHOR_TEST CPAN_EXPECT_TIMEOUT CPAN_RUN_SHELL_TEST_WITHOUT_EXPECT   ftp_proxy http_proxy no_proxy   PERL5_CPAN_IS_RUNNING PERL5_CPAN_IS_RUNNING_IN_RECURSION PERL_CORE VERBOSE
# Some tests write into temporary files/directories. The easiest solution
# is to copy the tests into a writable directory and execute them from there.
DIR=$(mktemp -d)
pushd "${DIR}"
/usr/bin/cp -a /usr/libexec/perl-CPAN/* ./
prove -I .
popd
/usr/bin/rm -rf "${DIR}"
