You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by hw...@apache.org on 2010/08/03 19:05:46 UTC

svn commit: r981965 - in /labs/mouse/tests: data/expected_output/rat-tests data/expected_output/rat-tests.xml test_mouse.py

Author: hwright
Date: Tue Aug  3 17:05:46 2010
New Revision: 981965

URL: http://svn.apache.org/viewvc?rev=981965&view=rev
Log:
Add a couple of Mouse tests, along with their expected outputs.  We don't
actually run these tests, though, because they are currently expected to
fail.

Added:
    labs/mouse/tests/data/expected_output/rat-tests
    labs/mouse/tests/data/expected_output/rat-tests.xml
Modified:
    labs/mouse/tests/test_mouse.py

Added: labs/mouse/tests/data/expected_output/rat-tests
URL: http://svn.apache.org/viewvc/labs/mouse/tests/data/expected_output/rat-tests?rev=981965&view=auto
==============================================================================
--- labs/mouse/tests/data/expected_output/rat-tests (added)
+++ labs/mouse/tests/data/expected_output/rat-tests Tue Aug  3 17:05:46 2010
@@ -0,0 +1,79 @@
+
+*****************************************************
+Summary
+-------
+Notes: 2
+Binaries: 2
+Archives: 2
+Standards: 8
+
+Apache Licensed: 3
+Generated Documents: 0
+
+JavaDocs are generated and so license header is optional
+Generated files do not required license headers
+
+3 Unknown Licenses
+
+*******************************
+
+Unapproved licenses:
+
+  data/rat-tests/elements/Source.java
+  data/rat-tests/elements/sub/Empty.txt
+  data/rat-tests/violations/bad.txt
+
+*******************************
+
+Archives:
+
+ + data/rat-tests/artifacts/dummy.tar.gz
+ 
+ + data/rat-tests/elements/dummy.jar
+ 
+*****************************************************
+  Files with Apache License headers will be marked AL
+  Binary files (which do not require AL headers) will be marked B
+  Compressed archives will be marked A
+  Notices, licenses etc will be marked N
+  A     data/rat-tests/artifacts/dummy.tar.gz
+  B     data/rat-tests/binaries/Image-png.not
+  B     data/rat-tests/elements/Image.png
+  N     data/rat-tests/elements/LICENSE
+  N     data/rat-tests/elements/NOTICE
+ !????? data/rat-tests/elements/Source.java
+  AL    data/rat-tests/elements/Text.txt
+  AL    data/rat-tests/elements/Xml.xml
+  A     data/rat-tests/elements/dummy.jar
+ !????? data/rat-tests/elements/sub/Empty.txt
+   data/rat-tests/javadocs/ArchiveElement.html
+   data/rat-tests/javadocs/index.html
+  AL    data/rat-tests/javadocs/notjavadoc.html
+ !????? data/rat-tests/violations/bad.txt
+ 
+ *****************************************************
+ Printing headers for files without AL header...
+ 
+ 
+ =======================================================================
+ ==data/rat-tests/elements/Source.java
+ =======================================================================
+package elements;
+
+/*
+ * This file does intentionally *NOT* contain an ASL license header,
+ * because it is used in the test suite.
+ */
+public class Source {
+
+}
+
+ =======================================================================
+ ==data/rat-tests/elements/sub/Empty.txt
+ =======================================================================
+
+
+ =======================================================================
+ ==data/rat-tests/violations/bad.txt
+ =======================================================================
+This file has no license.

Added: labs/mouse/tests/data/expected_output/rat-tests.xml
URL: http://svn.apache.org/viewvc/labs/mouse/tests/data/expected_output/rat-tests.xml?rev=981965&view=auto
==============================================================================
--- labs/mouse/tests/data/expected_output/rat-tests.xml (added)
+++ labs/mouse/tests/data/expected_output/rat-tests.xml Tue Aug  3 17:05:46 2010
@@ -0,0 +1,12 @@
+<rat-report><resource name='data/rat-tests/artifacts/dummy.tar.gz'><type name='archive'/></resource><resource name='data/rat-tests/binaries/Image-png.not'><type name='binary'/></resource><resource name='data/rat-tests/elements/Image.png'><type name='binary'/></resource><resource name='data/rat-tests/elements/LICENSE'><type name='notice'/></resource><resource name='data/rat-tests/elements/NOTICE'><type name='notice'/></resource><resource name='data/rat-tests/elements/Source.java'><header-sample>package elements;
+
+/*
+ * This file does intentionally *NOT* contain an ASL license header,
+ * because it is used in the test suite.
+ */
+public class Source {
+
+}
+</header-sample><header-type name='?????'/><license-family name='?????'/><license-approval name='false'/><type name='standard'/></resource><resource name='data/rat-tests/elements/Text.txt'><header-sample></header-sample><license-family name='AL   '/><header-type name='AL   '/><license-family name='Apache License Version 2.0'/><license-approval name='true'/><type name='standard'/></resource><resource name='data/rat-tests/elements/Xml.xml'><header-sample></header-sample><license-family name='AL   '/><header-type name='AL   '/><license-family name='Apache License Version 2.0'/><license-approval name='true'/><type name='standard'/></resource><resource name='data/rat-tests/elements/dummy.jar'><type name='archive'/></resource><resource name='data/rat-tests/elements/sub/Empty.txt'><header-sample>
+</header-sample><header-type name='?????'/><license-family name='?????'/><license-approval name='false'/><type name='standard'/></resource><resource name='data/rat-tests/javadocs/ArchiveElement.html'><license-family name='GEN  '/><type name='standard'/></resource><resource name='data/rat-tests/javadocs/index.html'><license-family name='GEN  '/><type name='standard'/></resource><resource name='data/rat-tests/javadocs/notjavadoc.html'><header-sample></header-sample><license-family name='AL   '/><header-type name='AL   '/><license-family name='Apache License Version 2.0'/><license-approval name='true'/><type name='standard'/></resource><resource name='data/rat-tests/violations/bad.txt'><header-sample>This file has no license.
+</header-sample><header-type name='?????'/><license-family name='?????'/><license-approval name='false'/><type name='standard'/></resource></rat-report>
\ No newline at end of file

Modified: labs/mouse/tests/test_mouse.py
URL: http://svn.apache.org/viewvc/labs/mouse/tests/test_mouse.py?rev=981965&r1=981964&r2=981965&view=diff
==============================================================================
--- labs/mouse/tests/test_mouse.py (original)
+++ labs/mouse/tests/test_mouse.py Tue Aug  3 17:05:46 2010
@@ -121,6 +121,12 @@ class TestReport(unittest.TestCase):
   def test_greek_vanilla(self):
     self._check_plain_output('greek', 'greek_vanilla')
 
+#  def test_rat_xml(self):
+#    self._check_xml_output('rat-tests', 'rat-tests.xml')
+#
+#  def test_rat(self):
+#    self._check_plain_output('rat-tests', 'rat-tests')
+
 
 class TestFilters(unittest.TestCase):
   'Test filtering various files and patterns'



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org