From d4686cd1867cae16bb9b994bfe37feeeb7c934bc Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 12 Nov 2021 12:14:39 +0100 Subject: [PATCH] tests: (hardlink) add info about number of files to test Signed-off-by: Karel Zak --- tests/expected/hardlink/options-maximum-size-8191 | 1 + tests/expected/hardlink/options-maximum-size-8192 | 1 + tests/ts/hardlink/options | 3 +++ 3 files changed, 5 insertions(+) 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 -- 2.47.3