Our shell-script-based automated tests have served us well, but I get
more and more trouble from different versions of netcat. Also, it's
harder than it ought to be to produce reliable shell code. I want to
change to a tool that's more solid. It doesn't have to be any more
complicated than what we've got, but it should:
- use a more principled language than shell, such as maybe python
- not depend on external tools like netcat
- reliably detect a closed socket, and not have to time out
In the past I've searched around a bit for a tool like this but didn't
find much that was interesting. Right now I'm leaning toward something
like
http://github.com/kr/cubby/blob/master/check.py, along with a
handful of suitable helper functions to start and stop beanstalkd and
talk to it. However, I'd love to know if there's already a great,
simple tool out there that can fill this role.
Is there one?
I also think it would be interesting to have something that works like
python's doctest module, but for network conversations rather than
python interpreter conversations. Some day I might make such a tool if
it doesn't already exist.
On an unrelated note, how do you all feel about C99?
kr