diff options
author | Mario Melara <maamelara@gmail.com> | 2016-05-18 17:26:06 -0700 |
---|---|---|
committer | Mario Melara <maamelara@gmail.com> | 2016-05-18 17:26:06 -0700 |
commit | b25da51638c6c3abd97a1f77cc4feffd144a62d1 (patch) | |
tree | 12db7e877df3cc5bf81e9cc628d541285e02b3fa /lib | |
parent | 6926f4d0da05ee2839e455af32d52098d9828be7 (diff) | |
download | spack-b25da51638c6c3abd97a1f77cc4feffd144a62d1.tar.gz spack-b25da51638c6c3abd97a1f77cc4feffd144a62d1.tar.bz2 spack-b25da51638c6c3abd97a1f77cc4feffd144a62d1.tar.xz spack-b25da51638c6c3abd97a1f77cc4feffd144a62d1.zip |
Changed unsatisfiable architecture test
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/test/spec_dag.py | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/lib/spack/spack/test/spec_dag.py b/lib/spack/spack/test/spec_dag.py index 3c005c4ead..99a986a528 100644 --- a/lib/spack/spack/test/spec_dag.py +++ b/lib/spack/spack/test/spec_dag.py @@ -29,6 +29,7 @@ You can find the dummy packages here:: spack/lib/spack/spack/test/mock_packages """ import spack +import spack.architecture import spack.package from llnl.util.lang import list_modules @@ -240,21 +241,12 @@ class SpecDagTest(MockPackagesTest): self.assertRaises(spack.spec.UnsatisfiableCompilerSpecError, spec.normalize) -#ifdef NEW def test_unsatisfiable_architecture(self): - self.set_pkg_dep('mpileaks', 'mpich arch=bgqos_0') - spec = Spec('mpileaks ^mpich arch=sles_10_ppc64 ^callpath ^dyninst ^libelf ^libdwarf') - self.assertRaises(spack.spec.UnsatisfiableArchitectureSpecError, spec.normalize) -#else /* not NEW */ - def test_unsatisfiable_target(self): platform = spack.architecture.sys_type() - if len(platform.targets) > 1: - first = platform.targets.values()[0].name - second = platform.targets.values()[1].name - self.set_pkg_dep('mpileaks', 'mpich='+first) - spec = Spec('mpileaks ^mpich='+ second +' ^callpath ^dyninst ^libelf ^libdwarf') - self.assertRaises(spack.spec.UnsatisfiableTargetSpecError, spec.normalize) -#endif /* not NEW */ + + self.set_pkg_dep('mpileaks', 'mpich target=%s' % platform.target('default_target')) + spec = Spec('mpileaks ^mpich target=sles_10_ppc64 ^callpath ^dyninst ^libelf ^libdwarf') + self.assertRaises(spack.spec.UnsatisfiableArchitectureSpecError, spec.normalize) def test_invalid_dep(self): |