rename virtual
module to provider_index
This commit is contained in:
parent
1f5a21decf
commit
ce6ac93abe
@ -42,7 +42,7 @@
|
||||
import spack.error
|
||||
import spack.config
|
||||
import spack.spec
|
||||
from spack.virtual import ProviderIndex
|
||||
from spack.provider_index import ProviderIndex
|
||||
from spack.util.naming import *
|
||||
|
||||
#
|
||||
|
@ -102,23 +102,26 @@
|
||||
from StringIO import StringIO
|
||||
from operator import attrgetter
|
||||
|
||||
import yaml
|
||||
from yaml.error import MarkedYAMLError
|
||||
|
||||
import llnl.util.tty as tty
|
||||
from llnl.util.filesystem import join_path
|
||||
from llnl.util.lang import *
|
||||
from llnl.util.tty.color import *
|
||||
|
||||
import spack
|
||||
import spack.architecture
|
||||
import spack.compilers as compilers
|
||||
import spack.error
|
||||
import spack.parse
|
||||
import yaml
|
||||
from llnl.util.filesystem import join_path
|
||||
from llnl.util.lang import *
|
||||
from llnl.util.tty.color import *
|
||||
from spack.build_environment import get_path_from_module, load_module
|
||||
from spack.util.naming import mod_to_class
|
||||
from spack.util.prefix import Prefix
|
||||
from spack.util.string import *
|
||||
from spack.version import *
|
||||
from spack.virtual import ProviderIndex
|
||||
from yaml.error import MarkedYAMLError
|
||||
from spack.provider_index import ProviderIndex
|
||||
|
||||
|
||||
# Valid pattern for an identifier in Spack
|
||||
identifier_re = r'\w[\w-]*'
|
||||
|
@ -32,6 +32,8 @@
|
||||
from spack.test.tally_plugin import Tally
|
||||
"""Names of tests to be included in Spack's test suite"""
|
||||
|
||||
# All the tests Spack knows about.
|
||||
# Keep these one per line so that it's easy to see changes in diffs.
|
||||
test_names = [
|
||||
'architecture',
|
||||
'build_system_guess',
|
||||
@ -74,11 +76,10 @@
|
||||
'url_parse',
|
||||
'url_substitution',
|
||||
'versions',
|
||||
'virtual',
|
||||
'provider_index',
|
||||
'yaml',
|
||||
]
|
||||
|
||||
|
||||
def list_tests():
|
||||
"""Return names of all tests that can be run for Spack."""
|
||||
return test_names
|
||||
|
@ -26,15 +26,15 @@
|
||||
import unittest
|
||||
|
||||
import spack
|
||||
from spack.virtual import ProviderIndex
|
||||
from spack.provider_index import ProviderIndex
|
||||
|
||||
|
||||
class VirtualTest(unittest.TestCase):
|
||||
class ProviderIndexTest(unittest.TestCase):
|
||||
|
||||
def test_write_and_read(self):
|
||||
p = ProviderIndex(spack.repo.all_package_names())
|
||||
|
||||
ostream = StringIO ()
|
||||
ostream = StringIO()
|
||||
p.to_yaml(ostream)
|
||||
|
||||
istream = StringIO(ostream.getvalue())
|
Loading…
Reference in New Issue
Block a user