util-linux/tests
Mauricio Faria de Oliveira ff84ba8b03 rename: tests: add more symlink checks
Add a few checks to the symlink test, including for the fix
in commit 477239ce0d ("rename: fix regression for symlink
with non-existing target").

Tested with './tests/run.sh rename/symlink' before/after that
commit with FAILED/OK results (and '--show-diff') as expected:

After:
       rename: symlink check                  ... OK

Before:
       rename: symlink check                  ... FAILED (rename/symlink)

With --show-diff:

    diff-{{{
    --- /home/mfo/git/util-linux/tests/expected/rename/symlink	2020-07-14 15:21:06.412792160 -0300
    +++ /home/mfo/git/util-linux/tests/output/rename/symlink	2020-07-14 15:45:10.980927233 -0300
    @@ -3,5 +3,3 @@
     rename_slink.3: `old' -> `new'
     `rename_slink.1' -> `rename_symlink.1'
     target
    -`rename_slink.2' -> `rename_symlink.2'
    -target
    }}}-diff

    diff-{{{
    --- /home/mfo/git/util-linux/tests/expected/rename/symlink.err	2020-07-14 15:37:42.466207786 -0300
    +++ /home/mfo/git/util-linux/tests/output/rename/symlink.err	2020-07-14 15:45:10.984927251 -0300
    @@ -1 +1,2 @@
    +rename: rename_slink.2: not accessible: No such file or directory
     rename: rename_slink.3: No such file or directory
    }}}-diff

Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
2020-07-14 15:51:47 -03:00
..
expected rename: tests: add more symlink checks 2020-07-14 15:51:47 -03:00
helpers test_tiocsti: check ioctl() return code [coverity scan] 2020-07-14 11:43:38 +02:00
ts rename: tests: add more symlink checks 2020-07-14 15:51:47 -03:00
.gitignore tests: make compatible with autotools 2012-08-03 21:24:51 +02:00
Makemodule.am tests: add --parsable, remove TS_OPT_parsable 2019-10-09 13:04:34 +02:00
commands.sh tests: add new test for chfn gecos 2019-12-16 13:22:29 +01:00
functions.sh tests: turn off detect_leaks on s390x, use more asan options 2020-07-03 13:26:08 +00:00
run.sh build-sys: add --enable-ubsan to make it possible to build util-linux with UBSan 2020-07-03 11:17:53 +02:00