[svn:parrot] r49375 - in trunk: . t/codingstd

plobsing at svn.parrot.org plobsing at svn.parrot.org
Wed Sep 29 03:00:10 UTC 2010


Author: plobsing
Date: Wed Sep 29 03:00:01 2010
New Revision: 49375
URL: https://trac.parrot.org/parrot/changeset/49375

Log:
make new codingstd test a little more codingstd conformant

Modified:
   trunk/MANIFEST
   trunk/t/codingstd/c_enum.t   (contents, props changed)

Modified: trunk/MANIFEST
==============================================================================
--- trunk/MANIFEST	Wed Sep 29 02:23:16 2010	(r49374)
+++ trunk/MANIFEST	Wed Sep 29 03:00:01 2010	(r49375)
@@ -1,7 +1,7 @@
 # ex: set ro:
 # $Id$
 #
-# generated by tools/dev/mk_manifest_and_skip.pl Sat Sep 25 01:48:30 2010 UT
+# generated by tools/dev/mk_manifest_and_skip.pl Wed Sep 29 02:26:09 2010 UT
 #
 # See below for documentation on the format of this file.
 #
@@ -1476,6 +1476,7 @@
 t/codingstd/c_arg_assert.t                                  [test]
 t/codingstd/c_code_coda.t                                   [test]
 t/codingstd/c_cppcomments.t                                 [test]
+t/codingstd/c_enum.t                                        [test]
 t/codingstd/c_function_docs.t                               [test]
 t/codingstd/c_header_guards.t                               [test]
 t/codingstd/c_indent.t                                      [test]

Modified: trunk/t/codingstd/c_enum.t
==============================================================================
--- trunk/t/codingstd/c_enum.t	Wed Sep 29 02:23:16 2010	(r49374)
+++ trunk/t/codingstd/c_enum.t	Wed Sep 29 03:00:01 2010	(r49375)
@@ -9,6 +9,25 @@
 use Test::More tests => 1;
 use Parrot::Distribution;
 
+=head1 NAME
+
+t/codingstd/c_enum.t - checks for rules related to enums in C source
+
+=head1 SYNOPSIS
+
+    # test all files
+    % prove t/codingstd/c_enum.t
+
+    # test specific files
+    % perl t/codingstd/c_enum.t src/foo.c include/parrot/bar.h
+
+
+=head1 DESCRIPTION
+
+Checks that all C language source files use enums appropriately (eg: C89-compliant).
+
+=cut
+
 my $DIST = Parrot::Distribution->new;
 my @files = @ARGV ? <@ARGV> : $DIST->get_c_language_files();
 
@@ -43,3 +62,10 @@
 trailing commas in enums are not legal C89
 END_DESCRIPTION
 }
+
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:


More information about the parrot-commits mailing list