diff options
author | Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> | 2023-06-14 07:27:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-14 07:27:49 -0700 |
commit | 40d6b84b4d3cc7d4f21df54308058bc6f0e5086c (patch) | |
tree | c9b484a981a5e1a478702b0c41f865532646ba94 /var | |
parent | 2db09f27afed826507988569ce9ac60476d0c870 (diff) | |
download | spack-40d6b84b4d3cc7d4f21df54308058bc6f0e5086c.tar.gz spack-40d6b84b4d3cc7d4f21df54308058bc6f0e5086c.tar.bz2 spack-40d6b84b4d3cc7d4f21df54308058bc6f0e5086c.tar.xz spack-40d6b84b4d3cc7d4f21df54308058bc6f0e5086c.zip |
dssp: convert to new stand-alone test process (#38368)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/dssp/package.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/var/spack/repos/builtin/packages/dssp/package.py b/var/spack/repos/builtin/packages/dssp/package.py index 3144aa07db..86a2df10b7 100644 --- a/var/spack/repos/builtin/packages/dssp/package.py +++ b/var/spack/repos/builtin/packages/dssp/package.py @@ -51,13 +51,9 @@ class Dssp(AutotoolsPackage): """Save off the pdb sources for stand-alone testing.""" self.cache_extra_test_sources("pdb") - def test(self): - """Perform stand-alone/smoke test on installed package.""" - pdb_path = join_path(self.test_suite.current_test_cache_dir, "pdb") - self.run_test( - "mkdssp", - options=["1ALK.pdb", "1alk.dssp"], - purpose="test: calculating structure for example", - installed=True, - work_dir=pdb_path, - ) + def test_mkdssp(self): + """calculate structure for example""" + pdb_path = self.test_suite.current_test_cache_dir.pdb + mkdssp = which(self.prefix.bin.mkdssp) + with working_dir(pdb_path): + mkdssp("1ALK.pdb", "1alk.dssp") |