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-docs.xml | 26 +++++++++-- .../node-startup-controller/test-example.xml | 51 ++++++++++++++++++++++ 2 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 docs/reference/node-startup-controller/test-example.xml (limited to 'docs/reference/node-startup-controller') diff --git a/docs/reference/node-startup-controller/node-startup-controller-docs.xml b/docs/reference/node-startup-controller/node-startup-controller-docs.xml index 311799b..9d8b6ae 100644 --- a/docs/reference/node-startup-controller/node-startup-controller-docs.xml +++ b/docs/reference/node-startup-controller/node-startup-controller-docs.xml @@ -81,9 +81,29 @@ Installing - - Testing - + + Testing + + Testing + + Instructions on how to test the Node Startup Controller + + + + + Example tests + + + + Last User Context management tests + + + Legacy App Handling tests + + + Target Startup Monitoring tests + + 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