[csw-devel] SF.net SVN: gar:[11521] csw/mgar/gar/v2/lib/python/opencsw_test.py

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Sun Nov 7 23:32:12 CET 2010


Revision: 11521
          http://gar.svn.sourceforge.net/gar/?rev=11521&view=rev
Author:   bdwalton
Date:     2010-11-07 22:32:12 +0000 (Sun, 07 Nov 2010)

Log Message:
-----------
checkpkg: initial test for new e filetype in pkgmap files

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/opencsw_test.py

Modified: csw/mgar/gar/v2/lib/python/opencsw_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/opencsw_test.py	2010-11-07 22:24:46 UTC (rev 11520)
+++ csw/mgar/gar/v2/lib/python/opencsw_test.py	2010-11-07 22:32:12 UTC (rev 11521)
@@ -63,6 +63,12 @@
 1 i preinstall 1488 45678 125630250
 """
 
+PKGMAP_3 = """1 d none /opt/csw/apache2/ap2mod 0755 root bin
+1 e build /opt/csw/apache2/ap2mod/suexec ? ? ? 1472 50478 1289099700
+1 d none /opt/csw/apache2/libexec 0755 root bin
+1 f none /opt/csw/apache2/libexec/mod_suexec.so 0755 root bin 6852 52597 1289092061
+"""
+
 SUBMITPKG_DATA_1 = {
     'NEW_PACKAGE': 'new package',
     'to': u'Release Manager <somebody at example.com>',
@@ -403,6 +409,9 @@
     pkgmap = opencsw.Pkgmap(PKGMAP_2.splitlines())
     self.assertTrue("cswcpsampleconf" in pkgmap.entries_by_class)
 
+  def test_4(self):
+    pkgmap = opencsw.Pkgmap(PKGMAP_3.splitlines())
+    self.assertTrue("build" in pkgmap.entries_by_class)
 
 class IndexByUnitTest(unittest.TestCase):
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list