summaryrefslogtreecommitdiff
path: root/test/runwrapper
Commit message (Collapse)AuthorAgeFilesLines
* test: fix out of tree testsv2.2.53Mike Frysinger2018-06-181-1/+1
| | | | | The run script is in $srcdir, not $PWD (aka $builddir). This fixes `make distcheck`.
* setfacl: Preserve special mode bits on filesystems without POSIX ACL supportAndreas Gruenbacher2016-08-231-0/+1
| | | | | | | | | When the ACL to be set is equivalent to a file mode, on filesystems without POSIX ACL support, setfacl falls back to chmod(1) for setting the file mode to the equivalent of the ACL. Unfortunately it did not preserve the set-user-ID, set-group-ID, and sticky bits in that case; fix that.
* test: Add helper library to fake passwd/group filesJeff Mahoney2015-12-051-0/+6
The requirements for testing are currently that the system have several users and groups predefined. The chosen users and groups are typically found on every system so that's a safe bet. However, tests for the quote code may involve more esoteric names that include backslashes or other quoted characters. This patch adds a helper library that implements the passwd and group calls and redirects the reads to project-defined passwd and group files. That way, we know for certain that those usernames and groups will be found during testing. The helper library is enabled using LD_PRELOAD via a wrapper script. The library will not be installed as part of the project's make install. Since the local user might not be found in the local test.{group,passwd}, we extend test/run to use numeric uid/gids if the lookup fails.