Enforce clean source by applying Test::EOL on ourself
Olivier Mengué [Sat, 8 Sep 2012 06:57:20 +0000 (08:57 +0200)]
To avoid an other shame (see commit 1ec979a85aff74) and ensure future Win32
portability, apply all Test::EOL strictures on ourself.

dist.ini
t/10-use-self.t [new file with mode: 0644]

index c11e0c0..f128997 100644 (file)
--- a/dist.ini
+++ b/dist.ini
@@ -10,7 +10,7 @@ copyright_holder = Tomas Doran
 
 [@Filter]
 -bundle = @FLORA
--remove = EOLTests ; in our tests we need windows line endings
+-remove = EOLTests ; we test ourself in t/10-use-self.t
 dist = Test-EOL
 repository_at = catagits
 
diff --git a/t/10-use-self.t b/t/10-use-self.t
new file mode 100644 (file)
index 0000000..f9f757b
--- /dev/null
@@ -0,0 +1,3 @@
+# Check that our own source is clean
+use Test::EOL;
+all_perl_files_ok({ trailing_whitespace => 1 });