summaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAge
* Revert "Make einfo routines private"William Hubbs2013-10-21
| | | | | | This reverts commit de88aff0a839844526ae262f8961ec4372fed238. I was advised that splashutils links to libeinfo, so we do have a consumer for this library.
* Make einfo routines privateWilliam Hubbs2013-09-26
| | | | | | The libeinfo library has no consumers other than OpenRC, so there is no reason for it to be maintained as a library. The einfo routines are now an object that links with the rc binary.
* split out librc-independent helpers into a dedicated header fileMike Frysinger2012-05-06
| | | | | | | Many of these helpers are not special to librc, so split them out so they can be used in all source trees (including libeinfo). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Rename proc_getent to rc_proc_getent and make it globalChristian Ruppert2012-01-15
|
* make shell math operations style more succulentMike Frysinger2011-11-19
| | | | | | | | | | | Convert the style: var=$((${var} + 1)) to: : $(( var += 1 )) The latter is easier to read imo. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Add a new function, bool rc_getfile(const char *, char **, size_t *)Mike Frysinger2011-07-13
| | | | | | | | | | | | | | <snip> Read the entire @file into the buffer and set @len to the size of the buffer when finished. For C strings, this will be strlen(buffer) + 1. Don't forget to free the buffer afterwards! </snip> We also fix bug 374899 by adding this new function. X-Gentoo-Bug: 374899 X-Gentoo-Bug-URL: http://bugs.gentoo.org/374899
* tests: filter valid parisc relocsMike Frysinger2011-02-14
| | | | | | | | Parisc generates a few relocs against internal symbols which are OK. X-Gentoo-Bug: 258913 X-Gentoo-Bug-URL: http://bugs.gentoo.org/258913 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: check for trailing blank newlinesMike Frysinger2011-01-17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Build cleanup: librc.funcs.hidden.list is generated by testsuite.Robin H. Johnson2011-01-17
|
* Bug #351570: Hidden function fixes: rc_conf_value.Robin H. Johnson2011-01-17
| | | | | | | | | | | Refactor rc_conf_value into librc for use in library context. Also requires moving: - rc_conf internal static - Defines: PROFILE_ENV, SYS_WHITELIST, USR_WHITELIST, RC_PATH_PREFIX moved to rc.h with new RC_ prefix added. - Defines: RC_CONF, RC_CONF_OLD moved to rc.h. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* tests: check for common style issuesMike Frysinger2011-01-17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Factor out new function rc_deptree_load_file to aid in debugging deptree ↵Robin H. Johnson2011-01-17
| | | | files from users. Loads from a given filename instead of the hardcoded RC_DEPTREE_CACHE define.
* Implement explicit selection of subsystem types.Robin H. Johnson2011-01-05
| | | | | | | | | | | - Fixes bugs #347583, #349389, both of which were triggered by cgroups being detected as the LXC subsystem type. - Makes it much easier to select "prefix" type. - "rc -S" will now print a warning if you have not configured rc_sys in /etc/rc.conf - All other semantics of rc_sys are unchanged in this patch. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Use rc_getline instead of assuming a fixed kernel cmdline length.Roy Marples2009-06-21
| | | | | | This is now requires as COMMAND_LINE_SIZE isn't exposed by kernel headers anymore. Fixes #177.
* Add runlevel stacking, #88Roy Marples2009-05-02
| | | | | This implementation has the limitation that you cannot have a stacked runlevel and service of the same name in a runlevel.
* Ignore test resultsRoy Marples2009-05-02
|
* Fix unit test.Roy Marples2009-02-23
|
* Style.Roy Marples2009-02-23
|
* make ignore now configures the sv:ignore property.Roy Marples2008-12-04
|
* Punt .gitignore files.Roy Marples2008-12-04
|
* Fix tests, #Gentoo 240350.Roy Marples2008-10-07
|
* Add older_than function to complement newer_than function. Also make the ↵Roy Marples2008-07-03
| | | | userland instance reversed to be compatable with current baselayout, which truely does suck.
* More unit fixes.Roy Marples2008-07-03
|
* More unit fixes.Roy Marples2008-07-03
|
* Fix test.Roy Marples2008-07-03
|
* Add an is_older_than unit test, thanks to zzamRoy Marples2008-07-03
|
* Put some dir locations in rc.h so that 3rd party apps can become awware of them.Roy Marples2008-03-28
|
* Remove rc_service_start/stop from librc as they block and unmask signals. ↵Roy Marples2008-03-28
| | | | The application may not wish this behaviour and should fork/exec the service itself.
* We should sort using LC_ALL=C to avoid locale issues.Roy Marples2008-03-26
|
* setup a bit of a test frameworkMike Frysinger2008-03-24
|
* fixup testingMike Frysinger2008-03-24
|
* ignore generated filesMike Frysinger2008-03-24
|
* add check/test rulesMike Frysinger2008-03-24
|
* Massive whitespace cleanupRoy Marples2007-11-28
|
* No need for bash hereRoy Marples2007-09-26
|
* add some tests to make sure our exported symbols are saneMike Frysinger2007-09-26