summaryrefslogtreecommitdiff
path: root/morphlib/buildsystem_tests.py
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-12-07 15:02:21 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2016-03-25 20:57:32 +0000
commit9404317020ff0455cbfd3ca7976d546af823759b (patch)
tree75bf789db3643366f17fd78434f8a85512aa6756 /morphlib/buildsystem_tests.py
parent575c40c7c28bca4ff18979b6e1b76d5cdfa9841f (diff)
downloadmorph-9404317020ff0455cbfd3ca7976d546af823759b.tar.gz
Remove support for definitions version 6
Change-Id: I603b5172902b5249874ea3bb90de59db5a908185
Diffstat (limited to 'morphlib/buildsystem_tests.py')
-rw-r--r--morphlib/buildsystem_tests.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/morphlib/buildsystem_tests.py b/morphlib/buildsystem_tests.py
index 6b6bf30f..e834fd3f 100644
--- a/morphlib/buildsystem_tests.py
+++ b/morphlib/buildsystem_tests.py
@@ -13,9 +13,6 @@
# with this program. If not, see <http://www.gnu.org/licenses/>.
-import os
-import shutil
-import tempfile
import unittest
import morphlib
@@ -51,32 +48,3 @@ class BuildSystemTests(unittest.TestCase):
}
self.bs.from_dict('test', commands_dict)
self.assertEqual(self.bs.configure_commands, 'foo')
-
-
-class LookupBuildSystemTests(unittest.TestCase):
-
- def lookup(self, name):
- return morphlib.buildsystem.lookup_build_system(name)
-
- def test_raises_keyerror_for_unknown_name(self):
- self.assertRaises(KeyError, self.lookup, 'unknown')
-
- def test_looks_up_manual(self):
- self.assertEqual(type(self.lookup('manual')),
- morphlib.buildsystem.ManualBuildSystem)
-
- def test_looks_up_autotools(self):
- self.assertEqual(type(self.lookup('autotools')),
- morphlib.buildsystem.AutotoolsBuildSystem)
-
- def test_looks_up_cmake(self):
- self.assertEqual(type(self.lookup('cmake')),
- morphlib.buildsystem.CMakeBuildSystem)
-
- def test_looks_up_qmake(self):
- self.assertEqual(type(self.lookup('qmake')),
- morphlib.buildsystem.QMakeBuildSystem)
-
- def test_looks_up_dummy(self):
- self.assertEqual(type(self.lookup('dummy')),
- morphlib.buildsystem.DummyBuildSystem)