From: Antoine Musso Date: Sat, 20 Jan 2007 23:35:37 +0000 (+0000) Subject: * add a lame verbose statement X-Git-Tag: 1.31.0-rc.0~54259 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=9c41d26fdb277f451ff9e6ae62f17bc2feaa0995;p=lhc%2Fweb%2Fwiklou.git * add a lame verbose statement * add a test for svn:eol-style=native property --- diff --git a/Makefile b/Makefile index 0cfba45ad4..e0763a6e63 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,5 @@ test: Test.php prove -r t + +verbose: + prove -v -r t | egrep -v '^ok' diff --git a/t/maint/eol-style.t b/t/maint/eol-style.t new file mode 100644 index 0000000000..749613e9f7 --- /dev/null +++ b/t/maint/eol-style.t @@ -0,0 +1,29 @@ +#!/usr/bin/env perl +# +# Based on php-tag.t +# +use strict; +use warnings; + +use Test::More; +use File::Find; + +my $ext = qr/(?: php | inc | txt | sql | t)/x; +my @files; + +find( sub { push @files, $File::Find::name if -f && /\. $ext $/x }, '.' ); + +plan tests => scalar @files ; + +for my $file (@files) { + my $res = `svn propget svn:eol-style $file 2>&1` ; + + if( $res =~ 'native' ) { + ok 1 => "$file svn:eol-style is 'native'"; + } elsif( $res =~ substr( $file, 2 ) ) { + # not under version control + next; + } else { + ok 0 => "svn:eol-style not native $file"; + } +}