From bb96c5209f5acdde59aed7d68804134df772738d Mon Sep 17 00:00:00 2001 From: Jonathan Maw Date: Wed, 1 Aug 2012 10:22:54 +0100 Subject: Add testing skeleton Lays out the structure of the test document XML --- .../node-startup-controller/test-example.xml | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 docs/reference/node-startup-controller/test-example.xml (limited to 'docs/reference/node-startup-controller/test-example.xml') diff --git a/docs/reference/node-startup-controller/test-example.xml b/docs/reference/node-startup-controller/test-example.xml new file mode 100644 index 0000000..59ab2a5 --- /dev/null +++ b/docs/reference/node-startup-controller/test-example.xml @@ -0,0 +1,51 @@ + + + + + Example test + + An example of how tests should be structured + + + + Test environment and setup + + Automated testing isn't possible. To make things easier, we have code snippets which + can be copied exactly, to get the required result. + + cp /lib/systemd/system/{graphical,focussed}.target + systemctl start boot-manager.target + + + + + + Test Overview + + A broad explanation of the different test cases in the scenario, i.e. + + Add a shutdown client + Tell the shutdown client to shut down + + + + + + Test steps + + Add a shutdown client + + /usr/local/lib/boot-manager-1/legacy-app-handler -u cups.service -m 1 + Check the DLT log for appropriate output + + Tell the shutdown client to shut down + + kill -HUP $(pidof nsm-dummy) + Check the DLT log for appropriate output + + + + + -- cgit v1.2.1