summaryrefslogtreecommitdiff
path: root/morphlib/morphology_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-11-03 16:28:21 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-11-03 16:28:21 +0000
commita51329ba742b008712a7ad3e3f6c44b2cadc79f6 (patch)
tree44d3cfbb2d0bd6d9518ea3a4c06829163ec0dd6e /morphlib/morphology_tests.py
parent7823b58d77f3d103a203afcbe6cbdef1fe41f92a (diff)
downloadmorph-a51329ba742b008712a7ad3e3f6c44b2cadc79f6.tar.gz
Add chunks to chunk morphs
Diffstat (limited to 'morphlib/morphology_tests.py')
-rw-r--r--morphlib/morphology_tests.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/morphlib/morphology_tests.py b/morphlib/morphology_tests.py
index 36daa11f..a19c5f90 100644
--- a/morphlib/morphology_tests.py
+++ b/morphlib/morphology_tests.py
@@ -45,7 +45,17 @@ class MorphologyTests(unittest.TestCase):
"configure-commands": ["./configure"],
"build-commands": ["make"],
"test-commands": ["make check"],
- "install-commands": ["make install"]
+ "install-commands": ["make install"],
+ "chunks": {
+ "hello": [
+ "usr/bin/hello",
+ "usr/lib/libhello.so*"
+ ],
+ "hello-dev": [
+ "usr/include/*",
+ "usr/lib/*"
+ ]
+ }
}'''))
self.assertEqual(morph.name, 'hello')
self.assertEqual(morph.kind, 'chunk')
@@ -58,6 +68,12 @@ class MorphologyTests(unittest.TestCase):
self.assertEqual(morph.build_commands, ['make'])
self.assertEqual(morph.test_commands, ['make check'])
self.assertEqual(morph.install_commands, ['make install'])
+ self.assertEqual(morph.chunks,
+ {
+ u'hello': [u'usr/bin/hello',
+ u'usr/lib/libhello.so*'],
+ u'hello-dev': [u'usr/include/*', u'usr/lib/*'],
+ })
def test_build_system_defaults_to_None(self):
morph = morphlib.morphology.Morphology(