You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
674 B

  1. #!/bin/sh
  2. PERL_TESTSDIR="/usr/share/perl/perl-tests"
  3. PERL_LIBDIR="/usr/lib/perl5/%%PERL_VERSION%%/"
  4. PERL_DISABLEDTESTS="%%PERL_DISABLEDTESTS%%"
  5. if [ ! -f "$PERL_TESTSDIR/__prepared" ]; then
  6. ln -s "$PERL_LIBDIR" "$PERL_TESTSDIR/lib"
  7. ln -s /usr/bin/perl "$PERL_TESTSDIR/perl"
  8. ln -s /usr/bin/perl "$PERL_TESTSDIR/t/perl"
  9. touch "$PERL_TESTSDIR/__prepared"
  10. for i in $PERL_DISABLEDTESTS; do
  11. echo "Disabling $i tests"
  12. sed 's!^'$i'.*$!!' -i $PERL_TESTSDIR/MANIFEST
  13. done
  14. cat $PERL_TESTSDIR/MANIFEST | grep -v '^$' > $PERL_TESTSDIR/MANIFEST_NEW
  15. rm $PERL_TESTSDIR/MANIFEST
  16. mv $PERL_TESTSDIR/MANIFEST_NEW $PERL_TESTSDIR/MANIFEST
  17. fi
  18. cd "$PERL_TESTSDIR/t"
  19. ./perl TEST