File: fulltest

package info (click to toggle)
libmoo-perl 1.006001-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 772 kB
  • ctags: 202
  • sloc: perl: 2,348; sh: 18; makefile: 6
file content (23 lines) | stat: -rwxr-xr-x 422 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

TEST_DIRS='t xt'

while [ "$#" -gt "0" ]; do
  case $1 in
    --cover)
      cover -delete -silent
      export HARNESS_PERL_SWITCHES='-MDevel::Cover=-ignore,^x?t/,-blib,0'
      ;;
    *)
      echo "Invalid option: $1"
      exit 1
      ;;
    esac
  shift
done

if [ -n "$AUTHOR_TESTING" ] && [ "$AUTHOR_TESTING" -eq 0 ]; then
  TEST_DIRS='t'
fi

prove -l $TEST_DIRS && MOO_XS_DISABLE=1 prove -l $TEST_DIRS