[jhbuild/wip/tests: 1/4] tests: Remove broken WafModTypeTestCase and TestModTypeTestCase
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild/wip/tests: 1/4] tests: Remove broken WafModTypeTestCase and TestModTypeTestCase
- Date: Mon, 22 Aug 2011 16:44:30 +0000 (UTC)
commit bb9936bdefa7ed23634b3f35cb13f6fb44ad5e3f
Author: Colin Walters <walters verbum org>
Date: Thu Aug 11 12:37:26 2011 -0400
tests: Remove broken WafModTypeTestCase and TestModTypeTestCase
These both were previously pointing at nonexistent directories and
doing random internals hackery to make the build succeed.
This was pretty much pointless - we aren't testing waf's behavior
at that point.
It would be more useful to add a real waf module, like we have for
e.g. 'hello'. But this would imply checking waf into jhbuild git,
which...eh.
tests/tests.py | 69 --------------------------------------------------------
1 files changed, 0 insertions(+), 69 deletions(-)
---
diff --git a/tests/tests.py b/tests/tests.py
index 4f7aa5c..1768a3b 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -332,58 +332,6 @@ class AutotoolsModTypeTestCase(BuildTestCase):
'foo:Checking [error]'])
-class WafModTypeTestCase(BuildTestCase):
- '''Waf steps'''
-
- def setUp(self):
- super(WafModTypeTestCase, self).setUp()
- from jhbuild.modtypes.waf import WafModule
- self.modules = [WafModule('foo', branch=self.branch)]
- self.modules[0].waf_cmd = 'true' # set a command for waf that always exist
-
- def test_build(self):
- '''Building a waf module'''
- self.assertEqual(self.build(),
- ['foo:Checking out', 'foo:Configuring', 'foo:Building',
- 'foo:Installing'])
-
- def test_build_no_network(self):
- '''Building a waf module, without network'''
- self.assertEqual(self.build(nonetwork = True),
- ['foo:Configuring', 'foo:Building', 'foo:Installing'])
-
- def test_update(self):
- '''Updating a waf module'''
- self.assertEqual(self.build(nobuild = True), ['foo:Checking out'])
-
- def test_build_check(self):
- '''Building a waf module, with checks'''
- self.assertEqual(self.build(makecheck = True),
- ['foo:Checking out', 'foo:Configuring', 'foo:Building',
- 'foo:Checking', 'foo:Installing'])
-
- def test_build_clean_and_check(self):
- '''Building a waf module, with cleaning and checks'''
- self.assertEqual(self.build(makecheck = True, makeclean = True),
- ['foo:Checking out', 'foo:Configuring', 'foo:Cleaning',
- 'foo:Building', 'foo:Checking', 'foo:Installing'])
-
- def test_build_check_error(self):
- '''Building a waf module, with an error in make check'''
-
- def make_check_error(buildscript, *args):
- self.modules[0].do_check_orig(buildscript, *args)
- raise CommandError('Mock Command Error Exception')
- make_check_error.depends = self.modules[0].do_check.depends
- make_check_error.error_phases = self.modules[0].do_check.error_phases
- self.modules[0].do_check_orig = self.modules[0].do_check
- self.modules[0].do_check = make_check_error
-
- self.assertEqual(self.build(makecheck = True),
- ['foo:Checking out', 'foo:Configuring', 'foo:Building',
- 'foo:Checking [error]'])
-
-
class BuildPolicyTestCase(BuildTestCase):
'''Build Policy'''
@@ -421,23 +369,6 @@ class BuildPolicyTestCase(BuildTestCase):
nonetwork = True), [])
-class TestModTypeTestCase(BuildTestCase):
- '''Tests Module Steps'''
-
- def setUp(self):
- super(TestModTypeTestCase, self).setUp()
- from jhbuild.modtypes.testmodule import TestModule
- self.modules = [TestModule('foo', branch=self.branch, test_type='dogtail')]
-
- def test_run(self):
- '''Running a test module'''
- self.assertEqual(self.build(), ['foo:Checking out', 'foo:Testing'])
-
- def test_build_no_network(self):
- '''Running a test module, without network'''
- self.assertEqual(self.build(nonetwork = True), ['foo:Testing'])
-
-
class TwoModulesTestCase(BuildTestCase):
'''Building two dependent modules'''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]