From: Masatake YAMATO Date: Fri, 15 Oct 2021 02:04:27 +0000 (+0900) Subject: lsfd: (test) add a case for testing SIZE column X-Git-Tag: v2.38-rc1~144^2~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7af3d7ca32b5b8cc6af3ae327557d20718d1e9c;p=thirdparty%2Futil-linux.git lsfd: (test) add a case for testing SIZE column Signed-off-by: Masatake YAMATO --- diff --git a/tests/expected/lsfd/mkfds-ro-regular-file b/tests/expected/lsfd/mkfds-ro-regular-file index bcbfc352ee..5eb1e0da14 100644 --- a/tests/expected/lsfd/mkfds-ro-regular-file +++ b/tests/expected/lsfd/mkfds-ro-regular-file @@ -8,3 +8,5 @@ UID[RUN]: 0 UID[STR]: 0 USER[RUN]: 0 USER[STR]: 0 +SIZE[RUN]: 0 +SIZE[STR]: 0 diff --git a/tests/ts/lsfd/mkfds-ro-regular-file b/tests/ts/lsfd/mkfds-ro-regular-file index 3340b0e106..77df054d6c 100755 --- a/tests/ts/lsfd/mkfds-ro-regular-file +++ b/tests/ts/lsfd/mkfds-ro-regular-file @@ -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