LSB init script tests

Links, Specification:Diff, Specification:TODO, Tests

Links

Comparison of gLSB 1.3.0 and gLSB-1.9

Colors: Changes since 12 August 2003 are marked in red while before 12 August 2003 are marked in green.

TODO

LSB Runtime Environment Tests

Assertions

Tests

Test items

For the actual tests see the assertions and the actual tests

Note that only *Start* is tested since some distributions determine the stop themselves (runlevel: those where it had not been started, required-stop: those who were there at required-start [does this always makes sense?]). (Distro: e.g. SuSE/UL)

General

install_initd and remove_initd tests

/lib/lsb/init-functions tests

Brain storming

lsb-test-daemon is a PERL daemon which writes its pid
to /var/run/lsb-test-daemon.pid or to pidfile (given by the -p option)
and writes to a log file

start lsb-test-daemon -- should be started
start again -- should not be started (lsb-test-daemon has to check)
start again with -f -- should be startet
start with -p option -- should be startet
shart again -- should not be startet
pidofproc should return all pids (written in the PID file)
killproc lsb-test-daemon -KILL
pidofproc should return no PID (no running process)
killproc lsb-test-daemon -- should kill lsb-test-daemon even if TERM is catched
killproc lsb-term-daemon -TERM -- should not kill lsb-test-daemon (TERM is catched)

LSB Application Tests

To come