Adding test for external modules
This commit is contained in:
parent
becec8ac7e
commit
98a4a9f2cc
1 changed files with 7 additions and 0 deletions
|
@ -253,6 +253,13 @@ def test_external_package(self):
|
|||
self.assertTrue(spec['externaltool'].compiler.satisfies('gcc'))
|
||||
|
||||
|
||||
def test_external_package_module(self):
|
||||
spec = Spec('externalmodule')
|
||||
spec.concretize()
|
||||
self.assertEqual(spec['externalmodule'].external_module, 'external-module')
|
||||
self.assertFalse('externalprereq' in spec)
|
||||
self.assertTrue(spec['externalmodule'].compiler.satisfies('gcc'))
|
||||
|
||||
def test_nobuild_package(self):
|
||||
got_error = False
|
||||
spec = Spec('externaltool%clang')
|
||||
|
|
Loading…
Reference in a new issue