diff options
author | Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> | 2023-05-17 07:03:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 16:03:21 +0200 |
commit | 86b9ce1c88164013473b39773bb63e8e6eb45e57 (patch) | |
tree | 64e896a31f39195354ac6c6cdffa40387bcd8619 /var | |
parent | 05232034f5808b344f7e977d4fe3f441f175702c (diff) | |
download | spack-86b9ce1c88164013473b39773bb63e8e6eb45e57.tar.gz spack-86b9ce1c88164013473b39773bb63e8e6eb45e57.tar.bz2 spack-86b9ce1c88164013473b39773bb63e8e6eb45e57.tar.xz spack-86b9ce1c88164013473b39773bb63e8e6eb45e57.zip |
spack test: fix stand-alone test suite status reporting (#37602)
* Fix reporting of packageless specs as having no tests
* Add test_test_output_multiple_specs with update to simple-standalone-test (and tests)
* Refactored test status summary; added more tests or checks
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/simple-standalone-test/package.py | 14 |
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") |