summaryrefslogtreecommitdiff
path: root/common/tests/test-path.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix various memory leaks exposed by 'make leakcheck'Stef Walter2013-07-231-42/+48
|
* Support expanding $XDG_CONFIG_HOME in user config pathsStef Walter2013-07-181-0/+6
| | | | | | | | | | If ~/.config is specified as a prefix to a configured path, then it is expanded to the $XDG_CONFIG_HOME if that exists Add --with-user-config ./configure option to configure a different user config directory. Interpolate the right directories into documentation.
* tools: Use $TMPDIR instead of $TEMPStef Walter2013-07-181-30/+1
| | | | | | | | | | | | TMPDIR is a more standard environment variable for locating the temp directory on Unix. In addition since this is only used in tests, remove the code from the generic p11_path_expand() func. In general remove the possibility for forks to put $HOME or $TEMP environment variables in configured paths. This was possible due to code in p11_path_expand() but not something we supported. https://bugzilla.redhat.com/show_bug.cgi?id=985017
* path: Add p11_path_canon() functionStef Walter2013-07-031-0/+17
| | | | Cleans up a filename with readable characters.
* path: Add p11_path_prefix() functionStef Walter2013-07-031-0/+13
| | | | | Checks if a wellformed path is identical to or a prefix of another path.
* path: Add p11_path_parent() functionStef Walter2013-06-141-0/+17
| | | | | Gets the parent element of the path, removing the last component. Handles trailing and duplicate path separators correctly.
* path: Fix expanding of paths and testsStef Walter2013-06-141-20/+26
|
* Our own unit testing frameworkStef Walter2013-05-211-45/+23
| | | | | | | | * Support the TAP protocol * Much cleaner without having to carry around state * First class support for setup/teardown * Port the common tests * Wait on porting other tests until we've merged outstanding code
* Support /xxx/yyy as an absolute path with Win32Stef Walter2013-05-211-1/+1
| | | | | Because win32 code doesn't just run on windows, wine runs with unix style paths.
* More compatible path munging and handling codeStef Walter2013-04-031-0/+202
Centralize the path handling code, so we can remove unixy assumptions and have a chance of running on Windows. The current goal is to run all the tests on Windows. Includes some code from LRN <lrn1986@gmail.com> https://bugs.freedesktop.org/show_bug.cgi?id=63062