mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
be more flexible with a lack of -ldb on a system (just skip test 010).
This commit is contained in:
@@ -65,6 +65,8 @@ _filter_dbtest()
|
|||||||
. ./common.rc
|
. ./common.rc
|
||||||
. ./common.filter
|
. ./common.filter
|
||||||
|
|
||||||
|
[ -x $here/src/dbtest ] || _notrun "dbtest was not built for this platform"
|
||||||
|
|
||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
cd $TEST_DIR
|
cd $TEST_DIR
|
||||||
$here/src/dbtest -l 5 -n 3000 | _filter_dbtest
|
$here/src/dbtest -l 5 -n 3000 | _filter_dbtest
|
||||||
|
|||||||
+7
-14
@@ -180,21 +180,14 @@ libacl="/usr/lib/libacl.a"
|
|||||||
AC_SUBST(libacl)
|
AC_SUBST(libacl)
|
||||||
|
|
||||||
dnl Checks for GNU database manager header and library.
|
dnl Checks for GNU database manager header and library.
|
||||||
AC_CHECK_HEADER(gdbm.h,, [
|
libgdbm=""
|
||||||
echo
|
have_db=true
|
||||||
echo 'FATAL ERROR: could not find a valid GNU database manager header.'
|
AC_CHECK_HEADER(gdbm/ndbm.h,, [ have_db=false ])
|
||||||
echo 'Install either the gdbm-devel (rpm) or the libgdbmg1-dev (deb) package.'
|
if test $have_db = "true" -a -f /usr/lib/libgdbm.a; then
|
||||||
exit 1
|
libgdbm="/usr/lib/libgdbm.a"
|
||||||
])
|
fi
|
||||||
AC_CHECK_LIB(gdbm, gdbm_open,, [
|
|
||||||
echo
|
|
||||||
echo 'FATAL ERROR: could not find a valid GNU database manager library.'
|
|
||||||
echo 'Install either the gdbm-devel (rpm) or the libgdbmg1-dev (deb) package.'
|
|
||||||
exit 1
|
|
||||||
])
|
|
||||||
libgdbm="/usr/lib/libgdbm.a"
|
|
||||||
AC_SUBST(libgdbm)
|
AC_SUBST(libgdbm)
|
||||||
|
AC_SUBST(have_db)
|
||||||
|
|
||||||
dnl alternate root and usr prefixes
|
dnl alternate root and usr prefixes
|
||||||
test -z "$ROOT_PREFIX" && ROOT_PREFIX=""
|
test -z "$ROOT_PREFIX" && ROOT_PREFIX=""
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ LIBATTR = @libattr@
|
|||||||
LIBGDBM = @libgdbm@
|
LIBGDBM = @libgdbm@
|
||||||
LIBUUID = @libuuid@
|
LIBUUID = @libuuid@
|
||||||
LIBHANDLE = @libhdl@
|
LIBHANDLE = @libhdl@
|
||||||
|
HAVE_DB = @have_db@
|
||||||
CPPFLAGS = -I/usr/include/xfs -I/usr/include/attr
|
CPPFLAGS = -I/usr/include/xfs -I/usr/include/attr
|
||||||
|
|
||||||
BUILDRULES = $(TOPDIR)/include/buildrules
|
BUILDRULES = $(TOPDIR)/include/buildrules
|
||||||
|
|||||||
+5
-1
@@ -33,9 +33,13 @@
|
|||||||
TOPDIR = ..
|
TOPDIR = ..
|
||||||
include $(TOPDIR)/include/builddefs
|
include $(TOPDIR)/include/builddefs
|
||||||
|
|
||||||
TARGETS = alloc bstat dbtest devzero dirstress fault feature fsstress \
|
TARGETS = alloc bstat devzero dirstress fault feature fsstress \
|
||||||
fill fill2 holes ioctl loggen lstat64 nametest permname \
|
fill fill2 holes ioctl loggen lstat64 nametest permname \
|
||||||
randholes truncfile usemem runas
|
randholes truncfile usemem runas
|
||||||
|
ifeq ($(HAVE_DB), true)
|
||||||
|
TARGETS += dbtest
|
||||||
|
endif
|
||||||
|
|
||||||
CFILES = $(TARGETS:=.c) random.c
|
CFILES = $(TARGETS:=.c) random.c
|
||||||
HFILES = global.h
|
HFILES = global.h
|
||||||
LDIRT = $(TARGETS)
|
LDIRT = $(TARGETS)
|
||||||
|
|||||||
Reference in New Issue
Block a user