regress/r1test: Support a `$debug' prefix variable.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 31 May 2014 22:05:19 +0000 (23:05 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 13 Jun 2014 08:57:41 +0000 (09:57 +0100)
commit898afc783a7bd5947405b4fd828a34dfbd9b99a8
tree85d0d7f7ffa46be8fbdf7c82fd493854b00472db
parente8e5aeacbdaf5654974626d548f30a4c86e5ced6
regress/r1test: Support a `$debug' prefix variable.

Amazingly, sometimes the tests don't pass.  When that happens, it's
handy to be able to debug the library and find out why.

It's a little tricky to attach GDB to the running process directly.  I
used the following:

$ debug="noip gdbserver localhost:666" ./r1test CASE

and then, in another terminal, something like

$ noip gdb adnstest_s
(gdb) target remote localhost:666

to debug the program.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
regress/r1test