From: Karel Zak Date: Fri, 12 Nov 2021 11:14:39 +0000 (+0100) Subject: tests: (hardlink) add info about number of files to test X-Git-Tag: v2.38-rc1~169 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4686cd1867cae16bb9b994bfe37feeeb7c934bc;p=thirdparty%2Futil-linux.git tests: (hardlink) add info about number of files to test Signed-off-by: Karel Zak --- diff --git a/tests/expected/hardlink/options-maximum-size-8191 b/tests/expected/hardlink/options-maximum-size-8191 index 4479c33f8b..592272a75c 100644 --- a/tests/expected/hardlink/options-maximum-size-8191 +++ b/tests/expected/hardlink/options-maximum-size-8191 @@ -1,3 +1,4 @@ +Number of test files: 26 Mode: real Method: sha256 Files: 26 diff --git a/tests/expected/hardlink/options-maximum-size-8192 b/tests/expected/hardlink/options-maximum-size-8192 index 726893d707..1d28c33b56 100644 --- a/tests/expected/hardlink/options-maximum-size-8192 +++ b/tests/expected/hardlink/options-maximum-size-8192 @@ -1,3 +1,4 @@ +Number of test files: 26 Mode: real Method: sha256 Files: 26 diff --git a/tests/ts/hardlink/options b/tests/ts/hardlink/options index 9c77315a4d..fc1a0d6525 100755 --- a/tests/ts/hardlink/options +++ b/tests/ts/hardlink/options @@ -25,6 +25,7 @@ ts_init "$*" ts_check_test_command "$TS_CMD_HARDLINK" ts_check_prog xz ts_check_prog tar +ts_check_prog wc SRCDIR="$TS_OUTDIR/testdir1" @@ -78,6 +79,7 @@ ts_finalize_subtest ts_init_subtest "maximum-size-8191" create_srcdir +echo "Number of test files: $(find "$SRCDIR" -type f | wc -l)" >> $TS_OUTPUT $TS_CMD_HARDLINK --maximum-size 8191 "$SRCDIR" | \ sed 's/^Duration:.*/Duration: [Redacted]/' >> $TS_OUTPUT 2>> $TS_ERRLOG show_srcdir >> $TS_OUTPUT 2>> $TS_ERRLOG @@ -85,6 +87,7 @@ ts_finalize_subtest ts_init_subtest "maximum-size-8192" create_srcdir +echo "Number of test files: $(find "$SRCDIR" -type f | wc -l)" >> $TS_OUTPUT $TS_CMD_HARDLINK --maximum-size 8192 "$SRCDIR" | \ sed 's/^Duration:.*/Duration: [Redacted]/' >> $TS_OUTPUT 2>> $TS_ERRLOG show_srcdir >> $TS_OUTPUT 2>> $TS_ERRLOG