Hi!, I'm new to dejagnu and would like to know, as I see the `debug.exp' file under `/usr/share/dejagnu', what is the 'tcl debugger' mentioned in this file that we can use to debug the scripts? Is it referring to `tkcon', `tcl-pro-debug', or other I don't know about?
Also, if I want to test a C program, I understand I can use `expect' functions (maybe together with utility functions declared in, say, `dg.exp') to compile and examine it's output, but what about testing it at API level (the internal functions it's made of)? I've had some success including `dejagnu.h' in a test file, moving all my code into a convenience library I now link this test file against, and using `dejagnu.h' functions from within such test-file to somewhat get to see the expected output when I run `make check'. I did setup a `Makefile.am' under `testsuite' to compile this test program and called `host-execute' on it, but I'm now guessing the "normal" workflow is to compile whatever the test files via tcl/expect/dejagnu, maybe use `dg.exp' functions to check the result, and also `framework.exp' functions (i.e: `setup_xfail', `check-conditional-xfail', etc) to have it automatically responding to the output? Is this more or less how it works? Note that for now I'm not interested in cross-compilation or remote debugging, but simply using dejagnu to test my program as thoroughly as possible, so I'd really appreciate any comments or insights, because nor I've had much previous experience with tcl/expect, neither I still fully understand dejagnu's architecture. Also, a comment or two regarding `config/gdb-comm.exp' and `config/gdb-stub.exp' would be really appreciated, if only to figure out how these are supposed to be used. If it would be the case that some small c project is known to exist doing just what I'm trying to, a pointer to it would be really helpful. I know of gcc, coreutils, and gdb, gnu poke (mostly tests interactively), and `ctlseqs' found in sourceware's git repository (doesn't test the API but program's output), but the formers are way too optimized for a newcomer to understand anyways. Even I get back to these every now and then as I learn new things about dejagnu/tcl/expect on their respective manuals/books, I suspect I'm far from making full sense of it. Thanks,