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
This commit is contained in:
Tim Haines 2023-05-25 17:48:52 -05:00 committed by GitHub
parent 682f0b2a54
commit 9a99c94b75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,3 +183,12 @@ def cmake_args(self):
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",
)