mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-07-23 17:48:52 +00:00
test: skip sandbox tests if not enabled
This commit is contained in:
parent
328095ae43
commit
300e3d889a
3 changed files with 9 additions and 1 deletions
|
@ -22,8 +22,12 @@ if BOOKMARKFS_UTIL
|
|||
|
||||
check_util_lib_CPPFLAGS = -I$(top_srcdir)/src
|
||||
check_util_lib_LDADD = $(top_builddir)/src/libbookmarkfs_util.la
|
||||
check_util_lib_SOURCES = check_lib.c check_watcher.c check_sandbox.c \
|
||||
check_util_lib_SOURCES = check_lib.c check_watcher.c \
|
||||
check_hashmap.c check_util.c
|
||||
|
||||
if SANDBOX
|
||||
check_util_lib_SOURCES += check_sandbox.c
|
||||
endif # SANDBOX
|
||||
endif # BOOKMARKFS_UTIL
|
||||
|
||||
if BOOKMARKFS_MOUNT
|
||||
|
|
|
@ -59,8 +59,10 @@ dispatch_subcmds (
|
|||
status = subcmd_prng(argc, argv);
|
||||
} else if (0 == strcmp("watcher", cmd)) {
|
||||
status = check_watcher(argc, argv);
|
||||
#ifdef BOOKMARKFS_SANDBOX
|
||||
} else if (0 == strcmp("sandbox", cmd)) {
|
||||
status = check_sandbox(argc, argv);
|
||||
#endif
|
||||
} else if (0 == strcmp("hashmap", cmd)) {
|
||||
status = check_hashmap(argc, argv);
|
||||
} else {
|
||||
|
|
|
@ -11,6 +11,8 @@ AT_SETUP([util lib: sandbox])
|
|||
AT_KEYWORDS([lib sandbox])
|
||||
|
||||
ATX_CHECK_LIB([
|
||||
ATX_FEAT_PREREQ([sandbox])
|
||||
|
||||
tmpdir=./$(ath_fn_rand_u64_hex).tmp.d
|
||||
|
||||
mkdir $tmpdir
|
||||
|
|
Loading…
Add table
Reference in a new issue