-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: deptypes: add some notes to the test suite
- Loading branch information
Showing
4 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,6 +146,7 @@ def test_concretize_with_provides_when(self): | |
def test_virtual_is_fully_expanded_for_callpath(self): | ||
# force dependence on fake "zmpi" by asking for MPI 10.0 | ||
spec = Spec('callpath ^[email protected]') | ||
# XXX(deptype): handle deptypes. | ||
self.assertTrue('mpi' in spec.dependencies) | ||
self.assertFalse('fake' in spec) | ||
|
||
|
@@ -161,6 +162,7 @@ def test_virtual_is_fully_expanded_for_callpath(self): | |
|
||
def test_virtual_is_fully_expanded_for_mpileaks(self): | ||
spec = Spec('mpileaks ^[email protected]') | ||
# XXX(deptype): handle deptypes. | ||
self.assertTrue('mpi' in spec.dependencies) | ||
self.assertFalse('fake' in spec) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,6 +147,7 @@ def test_conflicting_spec_constraints(self): | |
# Normalize then add conflicting constraints to the DAG (this is an | ||
# extremely unlikely scenario, but we test for it anyway) | ||
mpileaks.normalize() | ||
# XXX(deptype): handle deptypes. | ||
mpileaks.dependencies['mpich'] = Spec('[email protected]') | ||
mpileaks.dependencies['callpath'].dependencies['mpich'] = Spec('[email protected]') | ||
|
||
|
@@ -197,10 +198,12 @@ def test_normalize_with_virtual_spec(self): | |
def check_links(self, spec_to_check): | ||
for spec in spec_to_check.traverse(): | ||
for dependent in spec.dependents.values(): | ||
# XXX(deptype): handle deptypes. | ||
self.assertTrue( | ||
spec.name in dependent.dependencies, | ||
"%s not in dependencies of %s" % (spec.name, dependent.name)) | ||
|
||
# XXX(deptype): handle deptypes. | ||
for dependency in spec.dependencies.values(): | ||
self.assertTrue( | ||
spec.name in dependency.dependents, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters