summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Change docs license to CC-BY-SA 4.0 and update licensing to GENIVI standardJonathan Maw2015-04-303-5/+45
| | | | | | | | | | | | | | | | The previous docs format, CC 1.0, is not recommended by GENIVI, and the preferred one is CC-BY-SA 4.0. Other license changes are: * Add Creative Commons copyright headers to documentation. * Add copyright headers to test code. * Add copyright headers to dbus XML that belongs to the NSC. * Update copyright headers to GENIVI's standard. Notable exceptions are: * dbus XML that is used to communicate with other services (e.g. common/nsm-consumer-dbus.xml) has not had copyright statements added, because the Node Startup Controller does not own that interface.
* Rename all remaining bits and piecesJannis Pohlmann2012-07-317-29/+30
|
* First step of renaming the Boot Manager to Node Startup ControllerJannis Pohlmann2012-07-314-2/+2
| | | | | This includes mostly files, directories and the package/tarball name. The classes and D-Bus interfaces will be renamed in the next step.
* Fix make distcheck, rework tests, reorganise filesJannis Pohlmann2012-07-303-27/+56
| | | | | | | | | | | | | | This commit fixes make distcheck by making the LUC handler test part of "make installcheck" and by disabling the legacy app tests in "make check". For the LUC handler test to not interfere with the LUC on the system, the boot-manager binary is now aware of a LUC_PATH environment variable that overrides the LUC_PATH string defined at build-time. This way we can use a different LUC file for the test. This commit also drops the nsm-dummy/dbus/ and nsm-dummy/systemd/ directories and moves the corresponding files to nsm-dummy/.
* Rename gvariant_writer.c to gvariant-writer.cJannis Pohlmann2012-07-242-1/+1
| | | | | We don't use underscores in filenames anywhere else so why would we do that here?
* Add a stand-alone legacy-app-handler helper, work on testsJannis Pohlmann2012-07-2410-46/+50
| | | | | | | | | | | | The new legacy-app-helper binary translates the shutdown mode strings into NSMShutdownType enum values and passes them on to the legacy app handler D-Bus service. Thus, this commit also updates the org.genivi.BootManager1.LegacyAppHandler interface to use an int for the shutdown mode. This commit furthermore drops the old command-line handling code in the boot manager and reworks the legacy-app-handler tests a little bit.
* Improve use of GError and writing to the LUCJannis Pohlmann2012-07-191-6/+8
| | | | | | Make use of convenience functions for clearing and propagating GErrors. Drop g_file_create() because g_file_replace_contents() handles the on-demand file creation for us.
* Use $(sysconfdir)/boot-manager/last-user-context to store the LUC fileJannis Pohlmann2012-07-192-7/+4
| | | | $(sysconfdir) is where system-wide configuration files belong.
* Merge into one process, change D-Bus interfaces and write LUC to fileJonathan Maw2012-07-176-126/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following changes were made: - Restructure the D-Bus interfaces: -- The old boot manager interface is removed, we are no longer interested in being a remote controller of systemd. -- The LUC Handler has been rewritten and renamed to org.genivi.BootManager1.BootManager. It has the following methods: --- BeginLUCRegistration() initializes the LUC registration sequence at shutdown. --- RegisterWithLUC(a{ias}) registers one or more apps with different LUC types. --- FinishLUCRegistration() finishes the LUC registration sequence and atomically replaces the previous LUC. -- The legacy application handler has been renamed to org.genivi.BootManager1.LegacyAppHandler. This interface is not for external use. It is meant only for the command- line interface to communicate with the boot manager. -- The LastUserContext property has been removed. - The last user context is now stored in a file rather than with GSettings. This was requested after the Gothenburg F2F, but is included because it is easier to make the change now than modify GSettings only to remove it later. - All services run as part of the same process (i.e. boot-manager). - All services run on the system bus. Because of this, the boot manager's command-line interface is handled differently, as the previous implementation, using GApplication, does not work on the system bus. The command-line interface now works by making a D-Bus call to the boot manager service, instead of using GApplication's remote command-line functionality. - The LUC Handler tests have been renamed to the boot manager tests, and are changed in line with the new interface methods. Note: The legacy app handler tests have not yet been modified to work with these changes.
* Define three systemd service unit files with ExecStartPost setJonathan Maw2012-07-067-1/+81
| | | | | | | | | | | | | | | Files org.genivi.LegacyAppHandler1.test{1,2,3}.service.in will build into appropriate *.service files. Each one will run legacy-app-handler with --register as an ExecStartPost. Each one is installed to /lib/systemd/system and has an ExecStart process which is to acquire a Bus Name. A .conf file has rules to allow processes to own org.genivi.LegacyAppHandler1.test{1,2,3}, and appears to work as planned.
* Include test-luc-handler in the tarballs generated by make distcheckJannis Pohlmann2012-06-141-0/+3
|
* Add tests for LUC handler register/deregisterJonathan Maw2012-06-141-5/+78
| | | | | The testing suite makes register/deregister calls to the LUC handler, and compares the LastUserContext after the request to what is expected.
* Add rudimentary test suite with a LUC Handler test scriptJannis Pohlmann2012-06-133-0/+53
For now the LUC Handler test only does the following: 1. reset the LUC to be empty 2. attempt to register one foreground app In the future we have to add more tests to it.