dssp: added smoke tests (#21366)

This commit is contained in:
a-saitoh-fj 2021-01-29 18:29:42 +09:00 committed by GitHub
parent e3a0c48599
commit 9761c13878
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,16 @@ class Dssp(AutotoolsPackage):
depends_on('m4', type='build') depends_on('m4', type='build')
depends_on('boost@1.48:') depends_on('boost@1.48:')
# pdb data download.
# 1ALK.pdb - PDB (protein data bank) : https://www.rcsb.org/
resource(
name="pdb_data",
url="https://files.rcsb.org/download/1ALK.pdb",
sha256="99f4cd7ab63b35d64eacc85dc1491af5a03a1a0a89f2c9aadfb705c591b4b6c9",
expand=False,
placement='pdb'
)
def configure_args(self): def configure_args(self):
args = [ args = [
"--with-boost=%s" % self.spec['boost'].prefix] "--with-boost=%s" % self.spec['boost'].prefix]
@ -30,3 +40,11 @@ def configure_args(self):
def edit(self): def edit(self):
makefile = FileFilter(join_path(self.stage.source_path, 'Makefile')) makefile = FileFilter(join_path(self.stage.source_path, 'Makefile'))
makefile.filter('.*-Werror .*', ' -Wno-error \\') makefile.filter('.*-Werror .*', ' -Wno-error \\')
@run_after('install')
def cache_test_sources(self):
self.cache_extra_test_sources('pdb')
def test(self):
pdb_path = join_path(self.install_test_root, 'pdb')
self.run_test('mkdssp', options=['1ALK.pdb', '1alk.dssp'], work_dir=pdb_path)