mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-07-23 01:28:55 +00:00
Tests that require PRNG are by default seeded from `/dev/urandom`. However, the user should be able to override with a given seed to reproduce a failing test. Instead of messing with command-line arguments, a cleaner approach is to fetch the seed from an environment variable.
24 lines
571 B
Text
24 lines
571 B
Text
dnl
|
|
dnl Copyright (C) 2025 CismonX <admin@cismon.net>
|
|
dnl
|
|
dnl Copying and distribution of this file, with or without modification,
|
|
dnl are permitted in any medium without royalty,
|
|
dnl provided the copyright notice and this notice are preserved.
|
|
dnl This file is offered as-is, without any warranty.
|
|
dnl
|
|
|
|
AT_SETUP([fs: directory entries])
|
|
AT_KEYWORDS([fs dents])
|
|
|
|
ATX_CHECK_FS_NEW_ANY(, , [
|
|
ATX_RUN_REPEAT([8], [
|
|
name=$(ath_fn_rand_u64_hex)
|
|
|
|
mkdir $name
|
|
ATX_RUN([
|
|
check-fs dents -n 1024 $name
|
|
])
|
|
])
|
|
])
|
|
|
|
AT_CLEANUP
|