]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: (test) add a case for testing SIZE column
authorMasatake YAMATO <yamato@redhat.com>
Fri, 15 Oct 2021 02:04:27 +0000 (11:04 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 21 Oct 2021 12:06:39 +0000 (21:06 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/expected/lsfd/mkfds-ro-regular-file
tests/ts/lsfd/mkfds-ro-regular-file

index bcbfc352ee3fcfab0de61de99ee426379e634aa6..5eb1e0da140a5fc7077c1517f26f7fa08645ddb2 100644 (file)
@@ -8,3 +8,5 @@ UID[RUN]: 0
 UID[STR]: 0
 USER[RUN]: 0
 USER[STR]: 0
+SIZE[RUN]: 0
+SIZE[STR]: 0
index 3340b0e106ed7430374eaa1ee61b029d23e11d9c..77df054d6c5f3baa2466c3b32dafe8e46e45e896 100755 (executable)
@@ -59,6 +59,12 @@ EXPR=
        [ "${LSFD_USER}" == $(id -u -n) ]
        echo 'USER[STR]:' $?
 
+       LSFD_SIZE=$(${TS_CMD_LSFD} --raw -n -o SIZE -Q "${EXPR}")
+       echo 'SIZE[RUN]:' $?
+       [ "${LSFD_SIZE}" == $(stat -c %s /etc/passwd) ]
+       echo 'SIZE[STR]:' $?
+
+
        kill -CONT ${PID}
        wait ${MKFDS_PID}
     fi