diff options
author | Mario Melara <maamelara@gmail.com> | 2016-05-28 10:13:22 -0700 |
---|---|---|
committer | Mario Melara <maamelara@gmail.com> | 2016-05-28 10:13:22 -0700 |
commit | 98a4a9f2cc67c141deb7903f577c60c21912667c (patch) | |
tree | 91a4a74c615137ba5597693c226055adb33b9b25 | |
parent | becec8ac7e17a9d56f1d5b0640c1f56be8f64a7f (diff) | |
download | spack-98a4a9f2cc67c141deb7903f577c60c21912667c.tar.gz spack-98a4a9f2cc67c141deb7903f577c60c21912667c.tar.bz2 spack-98a4a9f2cc67c141deb7903f577c60c21912667c.tar.xz spack-98a4a9f2cc67c141deb7903f577c60c21912667c.zip |
Adding test for external modules
-rw-r--r-- | lib/spack/spack/test/concretize.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/spack/spack/test/concretize.py b/lib/spack/spack/test/concretize.py index 963481054e..77ff026c7a 100644 --- a/lib/spack/spack/test/concretize.py +++ b/lib/spack/spack/test/concretize.py @@ -253,6 +253,13 @@ class ConcretizeTest(MockPackagesTest): 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') |