Ken Hornstein <[email protected]> wrote: >> Andy Bradford <[email protected]> wrote: >> > I wrote a patch a few years ago to deal with this issue because I have >> > one sender that hasn't yet fixed---or even acknowledged for that matter >> > that they have a problem with---their software that injects messages >> > that have lines well over 11 million characters. >> >> Ken, is there some *unit testing* infrastructure that I've missed?
> Yes! Check out what "make check" does (also, there's a directory in
Right! Spoilt by Rust's unit tests being in file :-)
It was obvious, I was not paying enough attention.
> sources called "test", which I thought was kind of obvious?). I can't
> say it tests EVERYTHING, but it does a lot (it includes "fake" POP and
> SMTP servers to exercise that protocol support).
yes, I wandered through all of this now.
I was hoping for a unit test harness that would invoke a single function
(m_getfld)
with some variety of inputs, and nothing else. All of tests I care about
seem to use inc/show/.. as is.
I see now that m_getfld.c has had a lot of optimization... including comments
from Van Jacobson from 1986!
} If you hack on this and slow it down, I, my children and my
} children's children will curse you.
so I find five tests that seem to apply:
test/bad-input/test-header
test/inc/test-inc-scanout
test/mhshow/test-msg-buffer-boundaries
test/mhlist/test-mhlist
test/getfullname
and now that I'm looking at them better, a bunch fail when my one line change
(which broke attachments...) is applied. So I will make some progress here.
--
] Never tell me the odds! | ipv6 mesh networks [
] Michael Richardson, Sandelman Software Works | IoT architect [
] [email protected] http://www.sandelman.ca/ | ruby on rails [
] My working hours and your working hours may be different. [
] Please do not feel obligated to reply outside your normal working hours [
signature.asc
Description: PGP signature
