File: 92-file_port.t

package info (click to toggle)
libdevel-nytprof-perl 6.12%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,552 kB
  • sloc: perl: 5,616; javascript: 4,033; ansic: 107; makefile: 23
file content (20 lines) | stat: -rw-r--r-- 615 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl

use strict;
use warnings;

use Test::More;

eval "require Test::Portability::Files;";
plan skip_all => "Test::Portability::Files required for testing filename portability. ${ $@=~s/\.pm .*/.pm/, \$@ }"
    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;