summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Update NEWS for the 0.9.1 releaseJannis Pohlmann2012-08-061-0/+16
|
* Apply minor fixes for building the reference manualJannis Pohlmann2012-08-062-3/+5
|
* Make sure to set GTKDOC_CFLAGS/GTKDOC_LIBS properlyJannis Pohlmann2012-08-061-2/+18
|
* Unregister all shutdown consumers when receiving SIGTERMJannis Pohlmann2012-08-061-37/+88
| | | | | | | | | | systemd uses SIGTERM to stop its units. We want to cleanly shut down the NSC when receiving this signal. Part of that is to unregister all shutdown consumers. If we don't do this, the NSM will later during its shutdown phase call all shutdown consumers registered by the NSC. And if the NSC was no longer running, this would cause the NSM to wait for a timeout for every single one of these shutdown consumers. Obviously, that is not desirable.
* Add a type check to avoid a proxy to skeleton cast to failFrancisco Redondo Marchena2012-08-061-2/+3
| | | | | | | | We use the "consumer" property of the ShutdownClient class to store a proxy in the NSC code and a skeleton in the NSM dummy code. When releasing the consumer in shutdown_client_finalize(), we may therefor not cast to a ShutdownConsumerSkeleton unconditionally; otherwise the NSM dummy will segfault when releasing ShutdownClient objects.
* Fix Test legacy app handling purpose, error in logs and commandsFrancisco Redondo Marchena2012-08-032-17/+17
| | | | | | Fix in Test legacy app handling documentation the purpose, some error logs and some commands. Fix duplicate will in about.xml
* Fix a markup error in building.xmlJannis Pohlmann2012-08-031-0/+1
|
* Document the --enable-gtk-doc configure option in the manualJannis Pohlmann2012-08-031-0/+8
|
* Use passive language in test-test-environment-setup.xmlJonathan Maw2012-08-031-6/+6
| | | | | | Changes the single instance of "we" in this file. Minor grammatical fixes.
* Grammatical fix to test-nsm-dummy.xmlJonathan Maw2012-08-031-12/+12
| | | | | | It now uses passive language throughout. Other minor grammatical fixes
* Make the description of the NSM dummy more clear to unfamiliar readersJannis Pohlmann2012-08-031-2/+9
|
* Fix the link to test-luc-finish-onlyFrancisco Redondo Marchena2012-08-031-1/+1
|
* Revert "Depend on systemd 37 to be able to build on Fedora 16"Jannis Pohlmann2012-08-031-1/+1
| | | | This reverts commit 5dfb47b1b80d3aa91b8493491050b9d70c31c57b.
* Finish documentation of build commandsJannis Pohlmann2012-08-032-75/+94
|
* Fix conflicting part/refentry IDs to make the building page show upJannis Pohlmann2012-08-031-1/+1
|
* Add required command line utilities to build dependency docsJannis Pohlmann2012-08-031-0/+12
|
* Add library dependencies for building to the docsJannis Pohlmann2012-08-031-0/+25
|
* Depend on systemd 37 to be able to build on Fedora 16Jannis Pohlmann2012-08-031-1/+1
|
* Add parentheses in the shutdown mode rejection conditionalsJannis Pohlmann2012-08-032-2/+2
|
* Make shutdown mode registration similar in NSC and helper binaryJonathan Maw2012-08-032-4/+5
| | | | | | | | The shutdown mode checker in the Node Startup Controller now uses the same logging message as the legacy app handler helper binary. The shutdown mode checker in the helper binary now uses the condition statement from the Node Startup Controller
* Make legacy app handler refuse invalid shutdown modesJonathan Maw2012-08-031-0/+11
| | | | | | Added code to the register signal handler to refuse any register signal which is not a combination of NSM_SHUTDOWN_TYPE_NORMAL and NSM_SHUTDOWN_TYPE_FAST and log an error.
* Fix the title of the Test legacy application handler.Francisco Redondo Marchena2012-08-031-3/+3
| | | | | Replace the previous title by "Tests for legazy application handling". Fix some paragraphs.
* Better test case titles and always set the node state in TSM testsJonathan Maw2012-08-032-51/+61
| | | | | | | | | | | | | Test titles are made more descriptive by including the name of the node state which is being set. A link is included to the enum which defines the NSMNodeState. Tests are changed to always set the node state. This is done by starting the unit twice in most cases. In addition, the less-important lines in the DLT log output are no longer specified. Capitalization in titles has been cleaned up somewhat.
* Add the documentation for legacy app handling testsFrancisco Redondo Marchena2012-08-031-0/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the documentation for legacy app handling tests. The following tests are provided: 1. Register a normal and a fast shutdown consumer. - Check that node-startup-controller.service registers itself as a shutdown consumer. - Check that the registration for the shutdown consumer are ok. - Check that in the process of shutting down the fast consumers shutting down first and the normal consumers second. - Check that the shutdown consumers are unregister as a shutdown consumers when they have been shutting down. - Check that node-startup-controller.service unregisters itself as a shutdown consumer when it has been shutting down. 2. Register two normal shutdown consumers - Check that in the process of shutting down the consumers are shutting down in reverse order of registration. 3. Register a shutdown consumer twice within different modes and timeouts - Check that the re-registration modify the final mode to a combination of both modes (normal and fast) and the timeout has been set to the last registration value of timeout. - Check that in the process of shutting down the consumer is shutting down for the both modes. 4. Register a shutdown consumer with invalid arguments - Check that register a consumer without unit name fails. - Check that register a consumer within mode 0 fails - Check that register a consumer with a negative timeout fails.
* Document that timeout is non-mandatory parameter and its default valueFrancisco Redondo Marchena2012-08-031-2/+2
| | | | | | Modify in the documentation for legacy app handler that timeout is a non-mandatory legacy app handler argument and its default value is 1000 milliseconds.
* Add NSM dummy documentation pageJannis Pohlmann2012-08-031-0/+56
|
* Restructure and number the Target Startup Monitoring testsJonathan Maw2012-08-031-121/+171
| | | | Tests are restructured in the same way as the previous commit
* Number and restructure luc management test casesJonathan Maw2012-08-031-135/+199
| | | | | | | Test cases are restructured into: * Description * Test Commands * Desired behaviour and Output
* Add missing XML files to the reference manual Makefile.amJannis Pohlmann2012-08-033-0/+21
|
* Work on documentation of functional scope and interfacesJannis Pohlmann2012-08-033-6/+127
| | | | Also fix a mistyped systemd command.
* Rework reference manual a bit, start reworking test case layoutJannis Pohlmann2012-08-0211-408/+509
|
* Split test scenarios into separate pages, add legacy app skeletonJonathan Maw2012-08-025-299/+286
| | | | | | | | | | | | | | Each test scenario (i.e. luc, legacy app, tsm) has been split into a separate file. Setup steps which have to be performed for every scenario are moved into test-general-setup.xml Cross-references are used so that the test overview links to each test case, and the "Testing" page links to the general setup and also each test. test-example has been removed because it is no longer necessary.
* Add test scenarios for the Last User Context handlingJonathan Maw2012-08-022-0/+278
| | | | | | | | | | The following test scenarios are added to the documentation: * Registration of a simple dictionary * Registration does not happen on an isolated RegisterWithLUC() call * An isolated FinishLUCRegistration() call will not change the LUC * Registration of a complex dictionary * Registration can happen with a series of RegisterWithLUC() calls * Repeated registration of an app changes the order in the LUC
* Specify difference between NSM and NSM dummy in docmentationJonathan Maw2012-08-022-6/+15
| | | | | | | | | | | Explicitly states the difference between the Node State Manager Dummy and the real Node State Manager, i.e. * The NSM dummy toggles between successfully setting the node state and failing to set the node state. * The NSM dummy toggles between the LUC being required, and the LUC not being required. * The NSM dummy will shut down its fast shutdown clients, then its normal shutdown clients, on receiving the SIGHUP signal
* Add TSM test and improve layout of test documentJonathan Maw2012-08-023-31/+202
| | | | | | | | | | | | | | | The improvements to the layout of the test document are that the individual tests will now show up on the table of contents. The Target Startup Monitor (TSM) tests check that the following cases attempt to change the node state: * The Node Startup Controller starting * focussed.target starting * unfocussed.target starting * lazy.target starting The following case should not attempt to change the node state: * focussed.target stopping
* Add testing skeletonJonathan Maw2012-08-022-3/+74
| | | | Lays out the structure of the test document XML
* Change required version of systemd from 37 to 183Jannis Pohlmann2012-08-021-2/+2
|
* Fix build instructions to include creating the m4 directoryJannis Pohlmann2012-08-021-0/+1
|
* Unregister exported D-Bus objects on finalizationJonathan Maw2012-08-025-1/+10
| | | | | | | | | Adds unregistration to the following services: * legacy app handler * shutdown client * node startup controller * nsm dummy lifecycle control * nsm dummy consumer
* Rework log messages a bit to make them more readableJannis Pohlmann2012-08-0111-131/+138
|
* Use DLT_LOG_INFO rather than DLT_LOG_DEBUG for everythingJannis Pohlmann2012-08-018-34/+34
| | | | | | We can't get DLT to log our debug messages, setting LoggingLevel to 7 (LOG_DEBUG) in /etc/dlt.conf does not work as expected. So for now we'll have to resort to logging all debug messages as info messages.
* Adjust DLT log levels (info -> debug, some warnings, some errors)Jannis Pohlmann2012-08-0110-42/+42
|
* Exclusively use DLT facilities to build log stringsJannis Pohlmann2012-08-0110-301/+243
| | | | | We used to build the log strings using g_strdup_printf() but this results in a certain amount of overhead and extra code.
* Fix the name used for the LUCStarter::node-startup-controller propertyJannis Pohlmann2012-08-011-1/+1
|
* Replace g_debug/g_warning calls with DLT loggingJannis Pohlmann2012-08-012-14/+29
|
* Unregister the NSM dummy DLT connection at exitJannis Pohlmann2012-08-011-4/+12
|
* Fix small issues in Makefiles to make "make distcheck" happyJannis Pohlmann2012-07-311-2/+3
|
* Rename all remaining bits and piecesJannis Pohlmann2012-07-3127-148/+114
|
* Rename service files and boot-manager binaryJannis Pohlmann2012-07-316-24/+24
|
* Rename BMGR DLT app ID to NSC, rename MGR context to CTRLJannis Pohlmann2012-07-316-44/+44
|