openrasmol: convert to new stand-alone test process (#38630)

This commit is contained in:
Tamara Dahlgren 2023-07-01 10:55:20 -07:00 committed by GitHub
parent 43996e84c3
commit 4aed051b73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,11 +58,13 @@ def install(self, spec, prefix):
bash = which("bash") bash = which("bash")
bash("./rasmol_install.sh", "--prefix={0}".format(prefix)) bash("./rasmol_install.sh", "--prefix={0}".format(prefix))
def test(self): def test_rasmol(self):
testdir = self.test_suite.current_test_data_dir """run rasmol on sample"""
opts = [] opts = [
opts.append("-insecure") "-insecure",
opts.append("-script") "-script",
opts.append(join_path(testdir, "test.rsc")) join_path(self.test_suite.current_test_data_dir, "test.rsc"),
opts.append(join_path(self.prefix.sample, "1crn.pdb")) join_path(self.prefix.sample, "1crn.pdb"),
self.run_test("rasmol", options=opts) ]
rasmol = which(self.prefix.bin.rasmol)
rasmol(*opts)