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:
parent
682f0b2a54
commit
9a99c94b75
@ -183,3 +183,12 @@ def cmake_args(self):
|
|||||||
args.append("-DENABLE_STATIC_LIBS=NO")
|
args.append("-DENABLE_STATIC_LIBS=NO")
|
||||||
|
|
||||||
return args
|
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",
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user