Re: Testing init.d script

2018-12-26 Thread Kip Warner
On Wed, 2018-12-26 at 12:09 +, Colin Watson wrote: > Unit tests can normally use some kind of temporary test harness > instead of the full-blown init script, and that's usually the best > first line of defence since it's typically simpler and faster. > > Of course it's also worth testing the i

Re: Testing init.d script

2018-12-26 Thread Colin Watson
On Tue, Dec 25, 2018 at 08:52:19PM -0800, Kip Warner wrote: > My package has an LSB friendly init.d script it distributes to manage > the daemon it ships as a system service. I'd like to use it during unit > testing so the daemon can be started, stopped, and various unit tests > performed on it bet