diff options
author | alalazo <massimiliano.culpo@googlemail.com> | 2016-06-04 10:44:37 +0200 |
---|---|---|
committer | alalazo <massimiliano.culpo@googlemail.com> | 2016-06-04 10:44:37 +0200 |
commit | 2207ab8f23d099f535e95eec6b604862a86e7275 (patch) | |
tree | 808e866e13a65e9a9ca2cbf411faac5dc0288f48 | |
parent | 0e71b5dde8fb8c235122b16368cb075a35be9bfb (diff) | |
download | spack-2207ab8f23d099f535e95eec6b604862a86e7275.tar.gz spack-2207ab8f23d099f535e95eec6b604862a86e7275.tar.bz2 spack-2207ab8f23d099f535e95eec6b604862a86e7275.tar.xz spack-2207ab8f23d099f535e95eec6b604862a86e7275.zip |
unit test : inspect_path
-rw-r--r-- | lib/spack/spack/test/modules.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/spack/spack/test/modules.py b/lib/spack/spack/test/modules.py index 0465c3e67f..94d508853c 100644 --- a/lib/spack/spack/test/modules.py +++ b/lib/spack/spack/test/modules.py @@ -101,6 +101,7 @@ configuration_conflicts = { } } + class HelperFunctionsTests(unittest.TestCase): def test_update_dictionary_extending_list(self): target = { @@ -128,6 +129,14 @@ class HelperFunctionsTests(unittest.TestCase): self.assertTrue(len(target['bar']) == 4) self.assertEqual(target['baz'], 'foobaz') + def test_inspect_path(self): + env = spack.modules.inspect_path('/usr') + names = [item.name for item in env] + self.assertTrue('PATH' in names) + self.assertTrue('LIBRARY_PATH' in names) + self.assertTrue('LD_LIBRARY_PATH' in names) + self.assertTrue('CPATH' in names) + class TclTests(MockPackagesTest): def setUp(self): |