summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Haines <thaines.astro@gmail.com>2023-05-25 17:48:52 -0500
committerGitHub <noreply@github.com>2023-05-25 18:48:52 -0400
commit9a99c94b754daf078e7566b39ccc0362eb8ebd5d (patch)
treecc01fe151213bb20fb81fffa823944c0c66cd3ae
parent682f0b2a543c56a191a2d8f3b785c97f7a5cb488 (diff)
downloadspack-9a99c94b754daf078e7566b39ccc0362eb8ebd5d.tar.gz
spack-9a99c94b754daf078e7566b39ccc0362eb8ebd5d.tar.bz2
spack-9a99c94b754daf078e7566b39ccc0362eb8ebd5d.tar.xz
spack-9a99c94b754daf078e7566b39ccc0362eb8ebd5d.zip
Dyninst: add standalone test (#37876)
* Dyninst: add standalone test * Add docstring with description * Don't use join_path for builtin path objects * Whitespace * Update format of docstring
-rw-r--r--var/spack/repos/builtin/packages/dyninst/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dyninst/package.py b/var/spack/repos/builtin/packages/dyninst/package.py
index 4079212ecf..4bf1c35400 100644
--- a/var/spack/repos/builtin/packages/dyninst/package.py
+++ b/var/spack/repos/builtin/packages/dyninst/package.py
@@ -183,3 +183,12 @@ class Dyninst(CMakePackage):
args.append("-DENABLE_STATIC_LIBS=NO")
return args
+
+ def test_ptls(self):
+ """Run parseThat on /bin/ls to rewrite with basic instrumentation"""
+ parseThat = which(self.prefix.bin.parseThat)
+ os.environ["DYNINSTAPI_RT_LIB"] = join_path(self.prefix.lib, "libdyninstAPI_RT.so")
+ parseThat(
+ "--binary-edit={0:s}".format(join_path(self.test_suite.stage, "ls.rewritten")),
+ "/bin/ls",
+ )