summaryrefslogtreecommitdiff
path: root/morphlib/buildsystem_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-30 16:16:02 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-30 16:16:02 +0100
commit609a64acedf6ec4697bf129b29f3c1187ae5d7e9 (patch)
treed91ef482d87a40ab15a298655d6ebfd90d716799 /morphlib/buildsystem_tests.py
parentebb7afe4def25b96708fda330b154de092342250 (diff)
downloadmorph-609a64acedf6ec4697bf129b29f3c1187ae5d7e9.tar.gz
Add indexing access to the various commands in build systems
Diffstat (limited to 'morphlib/buildsystem_tests.py')
-rw-r--r--morphlib/buildsystem_tests.py24
1 files changed, 21 insertions, 3 deletions
diff --git a/morphlib/buildsystem_tests.py b/morphlib/buildsystem_tests.py
index 22214b2b..5d21b8ba 100644
--- a/morphlib/buildsystem_tests.py
+++ b/morphlib/buildsystem_tests.py
@@ -33,9 +33,27 @@ def create_manual_project(srcdir):
def create_autotools_project(srcdir):
touch(os.path.join(srcdir, 'configure.in'))
+
+
+class BuildSystemTests(unittest.TestCase):
+
+ def setUp(self):
+ self.bs = morphlib.buildsystem.BuildSystem()
+
+ def test_has_configure_commands(self):
+ self.assertEqual(self.bs['configure-commands'], [])
+
+ def test_has_build_commands(self):
+ self.assertEqual(self.bs['build-commands'], [])
+
+ def test_has_test_commands(self):
+ self.assertEqual(self.bs['test-commands'], [])
+
+ def test_has_install_commands(self):
+ self.assertEqual(self.bs['install-commands'], [])
-class ManualBuildSystem(unittest.TestCase):
+class ManualBuildSystemTests(unittest.TestCase):
def setUp(self):
self.bs = morphlib.buildsystem.ManualBuildSystem()
@@ -53,7 +71,7 @@ class ManualBuildSystem(unittest.TestCase):
self.assertFalse(self.bs.used_by_project(self.tempdir))
-class DummyBuildSystem(unittest.TestCase):
+class DummyBuildSystemTests(unittest.TestCase):
def setUp(self):
self.bs = morphlib.buildsystem.DummyBuildSystem()
@@ -71,7 +89,7 @@ class DummyBuildSystem(unittest.TestCase):
self.assertFalse(self.bs.used_by_project(self.tempdir))
-class AutotoolsBuildSystem(unittest.TestCase):
+class AutotoolsBuildSystemTests(unittest.TestCase):
def setUp(self):
self.bs = morphlib.buildsystem.ManualBuildSystem()