mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-06-07 19:58:50 +00:00
test: check-bookmarkfs-util -> check-util-lib
This commit is contained in:
parent
97ddb47cc8
commit
f6ff129f23
4 changed files with 7 additions and 7 deletions
|
@ -16,11 +16,11 @@ check_HEADERS = check_lib.h
|
||||||
check_PROGRAMS =
|
check_PROGRAMS =
|
||||||
|
|
||||||
if BOOKMARKFS_UTIL
|
if BOOKMARKFS_UTIL
|
||||||
check_PROGRAMS += check-bookmarkfs-util
|
check_PROGRAMS += check-util-lib
|
||||||
|
|
||||||
check_bookmarkfs_util_CPPFLAGS = -I$(top_srcdir)/src
|
check_util_lib_CPPFLAGS = -I$(top_srcdir)/src
|
||||||
check_bookmarkfs_util_LDADD = $(top_builddir)/src/libbookmarkfs_util.la
|
check_util_lib_LDADD = $(top_builddir)/src/libbookmarkfs_util.la
|
||||||
check_bookmarkfs_util_SOURCES = check_lib.c check_watcher.c
|
check_util_lib_SOURCES = check_lib.c check_watcher.c
|
||||||
endif # BOOKMARKFS_UTIL
|
endif # BOOKMARKFS_UTIL
|
||||||
|
|
||||||
# Autotest setup
|
# Autotest setup
|
||||||
|
|
|
@ -16,7 +16,7 @@ AT_KEYWORDS([lib hash])
|
||||||
# see <https://github.com/Cyan4973/xxHash/tree/dev/tests>.
|
# see <https://github.com/Cyan4973/xxHash/tree/dev/tests>.
|
||||||
ATX_CHECK_LIB([
|
ATX_CHECK_LIB([
|
||||||
calc_digest() {
|
calc_digest() {
|
||||||
echo "$2" | check-bookmarkfs-util hash -s$1
|
echo "$2" | check-util-lib hash -s$1
|
||||||
}
|
}
|
||||||
|
|
||||||
seed=$(ath_fn_rand_u64_hex)
|
seed=$(ath_fn_rand_u64_hex)
|
||||||
|
|
|
@ -15,7 +15,7 @@ AT_KEYWORDS([lib prng])
|
||||||
# For reliable testing of PRNGs, see <https://prng.di.unimi.it/#quality>.
|
# For reliable testing of PRNGs, see <https://prng.di.unimi.it/#quality>.
|
||||||
ATX_CHECK_LIB([
|
ATX_CHECK_LIB([
|
||||||
gen_num() {
|
gen_num() {
|
||||||
check-bookmarkfs-util prng -s$1 -n$2
|
check-util-lib prng -s$1 -n$2
|
||||||
}
|
}
|
||||||
|
|
||||||
gen_seed() {
|
gen_seed() {
|
||||||
|
|
|
@ -19,7 +19,7 @@ ATX_CHECK_LIB([
|
||||||
tmpdir=./$(ath_fn_rand_u64_hex).tmp.d
|
tmpdir=./$(ath_fn_rand_u64_hex).tmp.d
|
||||||
|
|
||||||
mkdir $tmpdir
|
mkdir $tmpdir
|
||||||
check-bookmarkfs-util watcher $args $tmpdir
|
check-util-lib watcher $args $tmpdir
|
||||||
])
|
])
|
||||||
|
|
||||||
AT_CLEANUP
|
AT_CLEANUP
|
||||||
|
|
Loading…
Add table
Reference in a new issue