738ca054ba
of src/sys/kern/kern_module.c), the default was "off" for all kernels including rump kernels. While many (most?) kernel config files were updated to include the new option, rump kernels weren't so lucky. Thus, rump kernels still had autoload disabled. This commit uses rump_sysctl to change the module_autoload_on value to true (ie, enabled) before trying to test if autoloading actually works. For now, I am _not_ changing the default for all rump kernels. I'll leave that for another day, after all appropriate discussion has occurred.
29 lines
762 B
Makefile
29 lines
762 B
Makefile
# $NetBSD: Makefile,v 1.3 2015/12/27 06:36:36 pgoyette Exp $
|
|
#
|
|
|
|
TESTSDIR= ${TESTSBASE}/rump/modautoload
|
|
|
|
TESTS_C= t_modautoload
|
|
|
|
SRCS.t_modautoload+= t_modautoload.c
|
|
|
|
# Note: we link the rump kernel into the application to make this work
|
|
# on amd64. This is the reason we keep this test in its own
|
|
# subdirectory -- otherwise the LDADD lines would get a little hairy.
|
|
LDFLAGS+= -Wl,-E
|
|
LDADD+= -Wl,--whole-archive ${DESTDIR}/usr/lib/librumpvfs.a \
|
|
${DESTDIR}/usr/lib/librump.a \
|
|
-Wl,--no-whole-archive
|
|
LDADD+= -lrumpuser -lpthread
|
|
|
|
WARNS= 4
|
|
|
|
# To include a rump version of sysctlbyname()
|
|
|
|
.PATH: ${NETBSDSRCDIR}/lib/libc/gen
|
|
SRCS.t_modautoload+= sysctlbyname.c
|
|
SRCS.t_modautoload+= sysctlgetmibinfo.c
|
|
CPPFLAGS+= -DRUMP_ACTION
|
|
|
|
.include <bsd.test.mk>
|