File: 92-file_port.t

package info (click to toggle)
libdevel-nytprof-perl 4.06-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,152 kB
  • sloc: perl: 4,451; ansic: 89; makefile: 19
file content (23 lines) | stat: -rw-r--r-- 698 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/perl

use strict;
use warnings;

use Test::More;

plan skip_all => "Currently a developer-only test"
    unless -d '.svn';

eval "require Test::Portability::Files;";
plan skip_all => "Test::Portability::Files required for testing filename portability. ${ $@=~s/ \(\@INC contains.*//, \$@ }"
    if $@;

plan skip_all => "Set NYTPROF_TEST_PORTABILITY_FILES env var to enable test"
    unless $ENV{'NYTPROF_TEST_PORTABILITY_FILES'};

Test::Portability::Files->import(); # calls plan()
#options(use_file_find => 1); # test all files not just those in MANIFEST (lots of .svn/* errors)
#options(all_tests => 1);     # to be hyper-strict (e.g., lots of DOS 8.3 length errors)
run_tests();

1;