summaryrefslogtreecommitdiff
path: root/lib/spack/spack/test/spec_syntax.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/test/spec_syntax.py')
-rw-r--r--lib/spack/spack/test/spec_syntax.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/spack/spack/test/spec_syntax.py b/lib/spack/spack/test/spec_syntax.py
index 688c89022c..c9a2100b09 100644
--- a/lib/spack/spack/test/spec_syntax.py
+++ b/lib/spack/spack/test/spec_syntax.py
@@ -188,6 +188,32 @@ class TestSpecSyntax(object):
" ^_openmpi@1.2:1.4,1.6%intel@12.1~qt_4 debug=2"
" ^stackwalker@8.1_1e arch=test-redhat6-x86")
+ def test_yaml_specs(self):
+ self.check_parse(
+ "yaml-cpp@0.1.8%intel@12.1"
+ " ^boost@3.1.4")
+ tempspec = r"builtin.yaml-cpp%gcc"
+ self.check_parse(
+ tempspec.strip("builtin."),
+ spec=tempspec)
+ tempspec = r"testrepo.yaml-cpp%gcc"
+ self.check_parse(
+ tempspec.strip("testrepo."),
+ spec=tempspec)
+ tempspec = r"builtin.yaml-cpp@0.1.8%gcc"
+ self.check_parse(
+ tempspec.strip("builtin."),
+ spec=tempspec)
+ tempspec = r"builtin.yaml-cpp@0.1.8%gcc@7.2.0"
+ self.check_parse(
+ tempspec.strip("builtin."),
+ spec=tempspec)
+ tempspec = r"builtin.yaml-cpp@0.1.8%gcc@7.2.0" \
+ r" ^boost@3.1.4"
+ self.check_parse(
+ tempspec.strip("builtin."),
+ spec=tempspec)
+
def test_canonicalize(self):
self.check_parse(
"mvapich_foo"