summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/biobambam2/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/biobambam2/package.py b/var/spack/repos/builtin/packages/biobambam2/package.py
index c50f11c47a..1ea3a3a088 100644
--- a/var/spack/repos/builtin/packages/biobambam2/package.py
+++ b/var/spack/repos/builtin/packages/biobambam2/package.py
@@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+import os
+
from spack.package import *
@@ -38,6 +40,12 @@ class Biobambam2(AutotoolsPackage):
install test subdirectory for use during `spack test run`."""
self.cache_extra_test_sources(self.test_src_dir)
+ # Fix test scripts to run installed binaries
+ scripts_dir = join_path(install_test_root(self), self.test_src_dir)
+ for path in os.listdir(scripts_dir):
+ if path.endswith(".sh"):
+ filter_file(r"../src/", r"", join_path(scripts_dir, path))
+
def test_short_sort(self):
"""run testshortsort.sh to check alignments sorted by coordinate"""
test_dir = join_path(self.test_suite.current_test_cache_dir, self.test_src_dir)