Commit f1249653 authored by Chris Lamb's avatar Chris Lamb 💬

tests/shuffle: Test that --shuffle-dirents works as directed.

Signed-off-by: Chris Lamb's avatarChris Lamb <lamby@debian.org>
parent 5bb2bbe5
#!/bin/sh
. ./common
Expect_num_variations () {
Mount ${1}
N="$(for X in $(seq 500); do Get_entries; echo; done | sort -u | wc -l)"
if test ${N} ${2}
then
Fail "${1} ${3} (saw ${N} variations)"
fi
Unmount
}
Expect_num_variations --shuffle-dirents=yes "= 1" \
"should always return the same result"
Expect_num_variations --shuffle-dirents=no "!= 1" \
"should not always return the same result"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment