summaryrefslogtreecommitdiffstats
path: root/tests/ts/rename
Commit message (Collapse)AuthorAgeFilesLines
* rename: use access(3) to check if a file existsSami Kerola2017-12-041-0/+31
| | | | | | | This is more lightweight than calling stat(3). In same go add a regression test to ensure changes like this will not break --no-overwrite option. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* Revert "tests: use stdbuf when stderr and stdout is randomly ordered"Ruediger Meier2017-06-011-2/+1Star
| | | | | | | | stdbuf does not seem to work reliable. Failed on travis/OSX This reverts commit 398b3148bedee936ee0b012b3b6e82b20547f218. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: use stdbuf when stderr and stdout is randomly orderedRuediger Meier2017-06-011-1/+2
| | | | | | glibc seems to flush stdout before stderr. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add fullpath tests to rename/subdirAndreas Henriksson2015-06-251-0/+24
| | | | Signed-off-by: Andreas Henriksson <andreas@fatal.se>
* tests: fix rename subdir check that was failing in travisSami Kerola2014-07-311-1/+3
| | | | | | | | | | | | | | | | | | Apparently some or all travis build servers has a bit older coreutils version. The coreutils v8.13 added a feature to readlink that allows user to specify multiple arguments. Earlier versions gave exactly the type of error travis_script log has. +readlink: extra operand `rename_aa/sublink.2' +Try `readlink --help' for more information. The commit 0f85e0535bd4e6d19fadca182e4d57660b6bb57b introduced the travis readlink issue, and has caused failures for 8 days in row (builds 192 - 213). Reference: https://travis-ci.org/karelzak/util-linux/builds Reviewed-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add rename(1) return value checkSami Kerola2014-07-181-0/+41
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add rename(1) checksSami Kerola2014-07-183-0/+124
Check basic file moves, symlink relinking, and both file moves and symlinks when operations are have directory in destination path. Reviewed-by: Ruediger Meier <sweet_f_a@gmx.de> Reviewed-by: Karel Zak <kzak@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>