diff options
author | Antoine Musso <hashar@users.mediawiki.org> | 2007-01-20 23:35:37 +0000 |
---|---|---|
committer | Antoine Musso <hashar@users.mediawiki.org> | 2007-01-20 23:35:37 +0000 |
commit | 9c41d26fdb277f451ff9e6ae62f17bc2feaa0995 (patch) | |
tree | cd29da9db2b32aa4247b6efa05ad2c4461d171c2 /t | |
parent | d03c0c2c6b89203c6ededcb2893b1ec3d83e6fdc (diff) | |
download | mediawikicore-9c41d26fdb277f451ff9e6ae62f17bc2feaa0995.tar.gz mediawikicore-9c41d26fdb277f451ff9e6ae62f17bc2feaa0995.zip |
* add a lame verbose statement
* add a test for svn:eol-style=native property
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/19537
Diffstat (limited to 't')
-rw-r--r-- | t/maint/eol-style.t | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/t/maint/eol-style.t b/t/maint/eol-style.t new file mode 100644 index 000000000000..749613e9f720 --- /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"; + } +} |