Commit 993afd3d authored by Stefan Behnel's avatar Stefan Behnel

new meta-option '--debug' in test runner to configure for easier debugging

parent b3fe8311
...@@ -1338,6 +1338,8 @@ def main(): ...@@ -1338,6 +1338,8 @@ def main():
help="working directory") help="working directory")
parser.add_option("--work-dir", dest="work_dir", default=os.path.join(os.getcwd(), 'BUILD'), parser.add_option("--work-dir", dest="work_dir", default=os.path.join(os.getcwd(), 'BUILD'),
help="working directory") help="working directory")
parser.add_option("--debug", dest="for_debugging", default=False, action="store_true",
help="configure for easier use with a debugger (e.g. gdb)")
options, cmd_args = parser.parse_args() options, cmd_args = parser.parse_args()
...@@ -1409,6 +1411,11 @@ def main(): ...@@ -1409,6 +1411,11 @@ def main():
else: else:
sys.stderr.write("Running tests without Cython.\n") sys.stderr.write("Running tests without Cython.\n")
if options.for_debugging:
options.cleanup_workdir = False
options.cleanup_sharedlibs = False
options.fork = False
if options.with_refnanny: if options.with_refnanny:
from pyximport.pyxbuild import pyx_to_dll from pyximport.pyxbuild import pyx_to_dll
libpath = pyx_to_dll(os.path.join("Cython", "Runtime", "refnanny.pyx"), libpath = pyx_to_dll(os.path.join("Cython", "Runtime", "refnanny.pyx"),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment