Hi,
I'm trying to temporarily fork off a daemon (BIND's named) within a
testsuite. Yet the testsuite hangs despite having started the daemon.
Below is an excerpt of the circumstances. Running testsuite -v shows
that the hang occurs not as one would assume during the fork of the
daemon but in the subsequent check for its pid. This occurs both when
making the daemon startup a separate AT_CHECK item as well as when
making it a simple shell statement. However, named starts properly
and, since I'm not killing it for now, continues to run past SIGINT of
the test suite .
I understand that things enclosed between AT_SETUP and AT_CLEANUP run
within their own subshell hence my plan was to start named, do some
tests and kill it within those two. Could it be that named is
capturing stdout/stderr irretrievably away from autotest or is forking
generally a problem?
Thanks,
-mat
atlocal
-------
TESTDIR='/Users/imfeldma/svn/zkt/tests'
SIGNER='/Users/imfeldma/svn/zkt/src/dnssec-signer'
ZKT='/Users/imfeldma/svn/zkt/src/dnssec-zkt'
NAMED_PROG='/usr/sbin/named'
DIG_PROG='/usr/bin/dig'
testsuite.at
------------
AT_INIT()
AT_BANNER([Testing in hierarchical context])
m4_include([hierarchical/hierarchical.at])
hierarchical.at
---------------
AT_SETUP([Signing recursively])
AT_CHECK([cd $TESTDIR/hierarchical && $SIGNER -N authoritative.conf],
[0], [], [])
AT_CLEANUP
AT_SETUP([Creating trusted keys section for the resolver])
AT_CHECK([cd $TESTDIR/hierarchical && $ZKT -T -r . >
resolver.trustedkeys], [0], [], [])
AT_CLEANUP
And then either:
AT_SETUP([Starting authoritative BIND])
cd $TESTDIR/hierarchical && $NAMED_PROG -c authoritative.conf
AT_CHECK([test -f $TESTDIR/hierarchical/authoritative.pid], [0], [], [])
AT_CLEANUP
or:
AT_SETUP([Starting authoritative BIND])
AT_CHECK([cd $TESTDIR/hierarchical && $NAMED_PROG -c
authoritative.conf], [0], [], [])
AT_CHECK([test -f $TESTDIR/hierarchical/authoritative.pid], [0], [], [])
AT_CLEANUP
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf