summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin.mock/packages/simple-standalone-test/package.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/var/spack/repos/builtin.mock/packages/simple-standalone-test/package.py b/var/spack/repos/builtin.mock/packages/simple-standalone-test/package.py
index 9c65773aa5..1adfb9507a 100644
--- a/var/spack/repos/builtin.mock/packages/simple-standalone-test/package.py
+++ b/var/spack/repos/builtin.mock/packages/simple-standalone-test/package.py
@@ -7,16 +7,24 @@ from spack.package import *
class SimpleStandaloneTest(Package):
- """This package has a simple stand-alone test features."""
+ """This package has simple stand-alone test features."""
homepage = "http://www.example.com/simple_test"
url = "http://www.unit-test-should-replace-this-url/simple_test-1.0.tar.gz"
- version("1.0", md5="0123456789abcdef0123456789abcdef")
+ version("1.0", md5="123456789abcdef0123456789abcdefg")
+ version("0.9", md5="0123456789abcdef0123456789abcdef")
- provides("standalone-test")
+ provides("standalone-ifc")
def test_echo(self):
"""simple stand-alone test"""
echo = which("echo")
echo("testing echo", output=str.split, error=str.split)
+
+ def test_skip(self):
+ """simple skip test"""
+ if self.spec.satisfies("@1.0:"):
+ raise SkipTest("This test is not available from v1.0 on")
+
+ print("Ran test_skip")