| 1 | BEGIN { |
| 2 | use Test::Tester 0.09scip-perl cpan Test-NoBreakpoints 0.17 Test/`Tester 0.09`/; |
| 3 | use Test::Morescip-perl cpan Test-NoBreakpoints 0.17 Test/More/; |
| 4 | our $testsscip-perl cpan Test-NoBreakpoints 0.17 main/$tests. = 46; |
| 5 | eval "use Test::NoWarnings"; |
| 6 | $testsscip-perl cpan Test-NoBreakpoints 0.17 main/$tests.++ unless( $@scip-perl cpan Test-NoBreakpoints 0.17 main/`$@`. ); |
| 7 | planscip-perl cpan Test-NoBreakpoints 0.17 main/plan(). tests => $testsscip-perl cpan Test-NoBreakpoints 0.17 main/$tests.; |
| 8 | chdirscip-perl cpan Test-NoBreakpoints 0.17 main/chdir(). 't' if -d 't'; |
| 9 | use libscip-perl cpan Test-NoBreakpoints 0.17 lib/ '../lib', '../blib/lib'; |
| 10 | } |
| 11 | |
| 12 | use Test::NoBreakpointsscip-perl cpan Test-NoBreakpoints 0.17 Test/NoBreakpoints/ ':all'; |
| 13 | |
| 14 | my $checklist = [ |
| 15 | { |
| 16 | ok => 1, |
| 17 | depth => 2, |
| 18 | name => 'no breakpoint test of ./00-load.t', |
| 19 | }, |
| 20 | { |
| 21 | ok => 1, |
| 22 | depth => 2, |
| 23 | name => 'no breakpoint test of ./01_use.t', |
| 24 | }, |
| 25 | { |
| 26 | ok => 1, |
| 27 | depth => 2, |
| 28 | name => 'no breakpoint test of ./02_pod.t', |
| 29 | }, |
| 30 | { |
| 31 | ok => 1, |
| 32 | depth => 2, |
| 33 | name => 'no breakpoint test of ./04_all_perl_files.t', |
| 34 | }, |
| 35 | { |
| 36 | ok => 0, |
| 37 | depth => 2, |
| 38 | name => 'no breakpoint test of ./05_no_breakpoints_ok.t', |
| 39 | diag => 'breakpoint found in ./05_no_breakpoints_ok.t: $DB::signal =1' . "\n", |
| 40 | }, |
| 41 | { |
| 42 | ok => 0, |
| 43 | depth => 2, |
| 44 | name => 'no breakpoint test of ./06_all_files_no_breakpoints_ok.t', |
| 45 | diag => 'breakpoint found in ./06_all_files_no_breakpoints_ok.t: $DB::signal =1' . "\n", |
| 46 | }, |
| 47 | { |
| 48 | ok => 0, |
| 49 | depth => 2, |
| 50 | name => 'no breakpoint test of ./baz/foo.t', |
| 51 | diag => 'breakpoint found in ./baz/foo.t: $DB::signal = 1' . "\n", |
| 52 | }, |
| 53 | { |
| 54 | ok => 0, |
| 55 | depth => 2, |
| 56 | name => 'no breakpoint test of ./baz/gzonk/foo.pl', |
| 57 | diag => 'breakpoint found in ./baz/gzonk/foo.pl: $DB::single = 2' . "\n", |
| 58 | }, |
| 59 | { |
| 60 | ok => 1, |
| 61 | depth => 2, |
| 62 | name => 'no breakpoint test of ./baz/quux/Foo.pm', |
| 63 | }, |
| 64 | { |
| 65 | ok => 1, |
| 66 | depth => 2, |
| 67 | name => 'no breakpoint test of ./release-kwalitee.t', |
| 68 | }, |
| 69 | { |
| 70 | ok => 1, |
| 71 | depth => 2, |
| 72 | name => 'no breakpoint test of ./release-no-tabs.t', |
| 73 | }, |
| 74 | { |
| 75 | ok => 1, |
| 76 | depth => 2, |
| 77 | name => 'no breakpoint test of ./release-pod-coverage.t', |
| 78 | }, |
| 79 | { |
| 80 | ok => 1, |
| 81 | depth => 2, |
| 82 | name => 'no breakpoint test of ./release-pod-syntax.t', |
| 83 | }, |
| 84 | ]; |
| 85 | |
| 86 | # test the tester for failure |
| 87 | check_testsscip-perl cpan Test-NoBreakpoints 0.17 main/check_tests().( |
| 88 | sub { all_files_no_breakpoints_okscip-perl cpan Test-NoBreakpoints 0.17 main/all_files_no_breakpoints_ok().( sortscip-perl cpan Test-NoBreakpoints 0.17 main/sort().(all_perl_filesscip-perl cpan Test-NoBreakpoints 0.17 main/all_perl_files().('.')) ) }, |
| 89 | $checklist, |
| 90 | 'all_files_no_breakpoints_ok finds correct breakpoints', |
| 91 | ); |