head	1.19;
access;
symbols
	netbsd-11-0-RC4:1.19
	netbsd-11-0-RC3:1.19
	netbsd-11-0-RC2:1.19
	netbsd-11-0-RC1:1.19
	perseant-exfatfs-base-20250801:1.19
	netbsd-11:1.19.0.10
	netbsd-11-base:1.19
	netbsd-10-1-RELEASE:1.19
	perseant-exfatfs-base-20240630:1.19
	perseant-exfatfs:1.19.0.8
	perseant-exfatfs-base:1.19
	netbsd-8-3-RELEASE:1.12
	netbsd-9-4-RELEASE:1.17
	netbsd-10-0-RELEASE:1.19
	netbsd-10-0-RC6:1.19
	netbsd-10-0-RC5:1.19
	netbsd-10-0-RC4:1.19
	netbsd-10-0-RC3:1.19
	netbsd-10-0-RC2:1.19
	netbsd-10-0-RC1:1.19
	netbsd-10:1.19.0.6
	netbsd-10-base:1.19
	netbsd-9-3-RELEASE:1.17
	cjep_sun2x-base1:1.19
	cjep_sun2x:1.19.0.4
	cjep_sun2x-base:1.19
	cjep_staticlib_x-base1:1.19
	netbsd-9-2-RELEASE:1.17
	cjep_staticlib_x:1.19.0.2
	cjep_staticlib_x-base:1.19
	netbsd-9-1-RELEASE:1.17
	phil-wifi-20200421:1.18
	phil-wifi-20200411:1.18
	is-mlppp:1.18.0.2
	is-mlppp-base:1.18
	phil-wifi-20200406:1.18
	netbsd-8-2-RELEASE:1.12
	netbsd-9-0-RELEASE:1.17
	netbsd-9-0-RC2:1.17
	netbsd-9-0-RC1:1.17
	phil-wifi-20191119:1.17
	netbsd-9:1.17.0.2
	netbsd-9-base:1.17
	phil-wifi-20190609:1.17
	netbsd-8-1-RELEASE:1.12
	netbsd-8-1-RC1:1.12
	pgoyette-compat-merge-20190127:1.13.2.1
	pgoyette-compat-20190127:1.14
	pgoyette-compat-20190118:1.13
	pgoyette-compat-1226:1.13
	pgoyette-compat-1126:1.13
	pgoyette-compat-1020:1.13
	pgoyette-compat-0930:1.13
	pgoyette-compat-0906:1.13
	netbsd-7-2-RELEASE:1.11
	pgoyette-compat-0728:1.13
	netbsd-8-0-RELEASE:1.12
	phil-wifi:1.13.0.4
	phil-wifi-base:1.13
	pgoyette-compat-0625:1.13
	netbsd-8-0-RC2:1.12
	pgoyette-compat-0521:1.13
	pgoyette-compat-0502:1.13
	pgoyette-compat-0422:1.13
	netbsd-8-0-RC1:1.12
	pgoyette-compat-0415:1.13
	pgoyette-compat-0407:1.13
	pgoyette-compat-0330:1.13
	pgoyette-compat-0322:1.13
	pgoyette-compat-0315:1.13
	netbsd-7-1-2-RELEASE:1.11
	pgoyette-compat:1.13.0.2
	pgoyette-compat-base:1.13
	netbsd-7-1-1-RELEASE:1.11
	matt-nb8-mediatek:1.12.0.12
	matt-nb8-mediatek-base:1.12
	perseant-stdc-iso10646:1.12.0.10
	perseant-stdc-iso10646-base:1.12
	netbsd-8:1.12.0.8
	netbsd-8-base:1.12
	prg-localcount2-base3:1.12
	prg-localcount2-base2:1.12
	prg-localcount2-base1:1.12
	prg-localcount2:1.12.0.6
	prg-localcount2-base:1.12
	pgoyette-localcount-20170426:1.12
	bouyer-socketcan-base1:1.12
	pgoyette-localcount-20170320:1.12
	netbsd-7-1:1.11.0.8
	netbsd-7-1-RELEASE:1.11
	netbsd-7-1-RC2:1.11
	netbsd-7-nhusb-base-20170116:1.11
	bouyer-socketcan:1.12.0.4
	bouyer-socketcan-base:1.12
	pgoyette-localcount-20170107:1.12
	netbsd-7-1-RC1:1.11
	pgoyette-localcount-20161104:1.12
	netbsd-7-0-2-RELEASE:1.11
	localcount-20160914:1.12
	netbsd-7-nhusb:1.11.0.6
	netbsd-7-nhusb-base:1.11
	pgoyette-localcount-20160806:1.12
	pgoyette-localcount-20160726:1.12
	pgoyette-localcount:1.12.0.2
	pgoyette-localcount-base:1.12
	netbsd-7-0-1-RELEASE:1.11
	netbsd-7-0:1.11.0.4
	netbsd-7-0-RELEASE:1.11
	netbsd-7-0-RC3:1.11
	netbsd-7-0-RC2:1.11
	netbsd-7-0-RC1:1.11
	netbsd-5-2-3-RELEASE:1.3
	netbsd-5-1-5-RELEASE:1.3
	netbsd-6-0-6-RELEASE:1.8.8.1
	netbsd-6-1-5-RELEASE:1.8.8.1
	netbsd-7:1.11.0.2
	netbsd-7-base:1.11
	yamt-pagecache-base9:1.10
	yamt-pagecache-tag8:1.8.6.1
	netbsd-6-1-4-RELEASE:1.8.8.1
	netbsd-6-0-5-RELEASE:1.8.8.1
	tls-earlyentropy:1.10.0.8
	tls-earlyentropy-base:1.11
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.10
	riastradh-drm2-base3:1.10
	netbsd-6-1-3-RELEASE:1.8.8.1
	netbsd-6-0-4-RELEASE:1.8.8.1
	netbsd-5-2-2-RELEASE:1.3
	netbsd-5-1-4-RELEASE:1.3
	netbsd-6-1-2-RELEASE:1.8.8.1
	netbsd-6-0-3-RELEASE:1.8.8.1
	netbsd-5-2-1-RELEASE:1.3
	netbsd-5-1-3-RELEASE:1.3
	netbsd-6-1-1-RELEASE:1.8.8.1
	riastradh-drm2-base2:1.10
	riastradh-drm2-base1:1.10
	riastradh-drm2:1.10.0.4
	riastradh-drm2-base:1.10
	netbsd-6-1:1.8.8.1.0.6
	netbsd-6-0-2-RELEASE:1.8.8.1
	netbsd-6-1-RELEASE:1.8.8.1
	netbsd-6-1-RC4:1.8.8.1
	netbsd-6-1-RC3:1.8.8.1
	agc-symver:1.10.0.6
	agc-symver-base:1.10
	netbsd-6-1-RC2:1.8.8.1
	netbsd-6-1-RC1:1.8.8.1
	yamt-pagecache-base8:1.10
	netbsd-5-2:1.3.0.4
	netbsd-6-0-1-RELEASE:1.8.8.1
	yamt-pagecache-base7:1.10
	netbsd-5-2-RELEASE:1.3
	netbsd-5-2-RC1:1.3
	matt-nb6-plus-nbase:1.8.8.1
	yamt-pagecache-base6:1.10
	netbsd-6-0:1.8.8.1.0.4
	netbsd-6-0-RELEASE:1.8.8.1
	netbsd-6-0-RC2:1.8.8.1
	tls-maxphys:1.10.0.2
	tls-maxphys-base:1.11
	matt-nb6-plus:1.8.8.1.0.2
	matt-nb6-plus-base:1.8.8.1
	netbsd-6-0-RC1:1.8.8.1
	yamt-pagecache-base5:1.10
	yamt-pagecache-base4:1.10
	netbsd-6:1.8.0.8
	netbsd-6-base:1.8
	netbsd-5-1-2-RELEASE:1.3
	netbsd-5-1-1-RELEASE:1.3
	yamt-pagecache-base3:1.8
	yamt-pagecache-base2:1.8
	yamt-pagecache:1.8.0.6
	yamt-pagecache-base:1.8
	cherry-xenmp:1.8.0.4
	cherry-xenmp-base:1.8
	bouyer-quota2-nbase:1.8
	bouyer-quota2:1.8.0.2
	bouyer-quota2-base:1.8
	matt-mips64-premerge-20101231:1.8
	matt-nb5-mips64-premerge-20101231:1.3
	matt-nb5-pq3:1.3.0.14
	matt-nb5-pq3-base:1.3
	netbsd-5-1:1.3.0.12
	netbsd-5-1-RELEASE:1.3
	netbsd-5-1-RC4:1.3
	matt-nb5-mips64-k15:1.3
	netbsd-5-1-RC3:1.3
	netbsd-5-1-RC2:1.3
	netbsd-5-1-RC1:1.3
	netbsd-5-0-2-RELEASE:1.3
	matt-nb5-mips64-premerge-20091211:1.3
	matt-premerge-20091211:1.4
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.3
	matt-nb4-mips64-k7-u2a-k9b:1.3
	matt-nb5-mips64-u1-k1-k5:1.3
	matt-nb5-mips64:1.3.0.10
	netbsd-5-0-1-RELEASE:1.3
	jym-xensuspend-nbase:1.4
	netbsd-5-0:1.3.0.8
	netbsd-5-0-RELEASE:1.3
	netbsd-5-0-RC4:1.3
	netbsd-5-0-RC3:1.3
	netbsd-5-0-RC2:1.3
	jym-xensuspend:1.4.0.2
	jym-xensuspend-base:1.4
	netbsd-5-0-RC1:1.3
	netbsd-5:1.3.0.6
	netbsd-5-base:1.3
	matt-mips64-base2:1.3
	wrstuden-revivesa-base-3:1.3
	wrstuden-revivesa-base-2:1.3
	wrstuden-revivesa-base-1:1.3
	yamt-pf42-base4:1.3
	yamt-pf42-base3:1.3
	hpcarm-cleanup-nbase:1.3
	hpcarm-cleanup-base:1.1
	yamt-pf42-baseX:1.2
	yamt-pf42-base2:1.3
	wrstuden-revivesa:1.3.0.2
	wrstuden-revivesa-base:1.3
	yamt-pf42:1.2.0.4
	yamt-pf42-base:1.2
	matt-armv6:1.2.0.2
	matt-armv6-nbase:1.2
	keiichi-mipv6-nbase:1.2
	keiichi-mipv6:1.1.0.2
	keiichi-mipv6-base:1.2;
locks; strict;
comment	@# @;


1.19
date	2020.04.26.09.08.40;	author maxv;	state Exp;
branches;
next	1.18;
commitid	GnN2TfqPW1RiiS5C;

1.18
date	2020.03.01.18.08.15;	author christos;	state Exp;
branches;
next	1.17;
commitid	M7sRI2w4ldl05JYB;

1.17
date	2019.04.15.23.41.23;	author christos;	state Exp;
branches;
next	1.16;
commitid	nAcPImGNE0FkfvjB;

1.16
date	2019.04.06.03.06.29;	author thorpej;	state Exp;
branches;
next	1.15;
commitid	chRwfB5w5i8JGeiB;

1.15
date	2019.02.23.03.10.06;	author kamil;	state Exp;
branches;
next	1.14;
commitid	I1ydg9kW8xavZPcB;

1.14
date	2019.01.25.18.33.59;	author christos;	state Exp;
branches;
next	1.13;
commitid	1M27DDVB0rwU6c9B;

1.13
date	2018.01.08.14.17.15;	author martin;	state Exp;
branches
	1.13.2.1
	1.13.4.1;
next	1.12;
commitid	3izKBXDeabIsY4mA;

1.12
date	2016.01.23.21.22.49;	author christos;	state Exp;
branches;
next	1.11;
commitid	0voYFcZKKnOpl6Sy;

1.11
date	2014.06.10.04.28.40;	author he;	state Exp;
branches;
next	1.10;
commitid	SD1EI7Ajtwu4LVDx;

1.10
date	2012.04.13.07.05.32;	author jruoho;	state Exp;
branches
	1.10.2.1
	1.10.8.1;
next	1.9;

1.9
date	2012.02.17.22.36.50;	author jmmv;	state Exp;
branches;
next	1.8;

1.8
date	2010.08.27.09.56.40;	author pooka;	state Exp;
branches
	1.8.6.1
	1.8.8.1;
next	1.7;

1.7
date	2010.08.21.13.57.41;	author pgoyette;	state Exp;
branches;
next	1.6;

1.6
date	2010.08.21.13.21.48;	author pgoyette;	state Exp;
branches;
next	1.5;

1.5
date	2010.07.13.21.13.28;	author jmmv;	state Exp;
branches;
next	1.4;

1.4
date	2008.11.12.12.36.29;	author ad;	state Exp;
branches;
next	1.3;

1.3
date	2008.05.01.15.38.17;	author jmmv;	state Exp;
branches;
next	1.2;

1.2
date	2008.03.02.11.22.10;	author jmmv;	state Exp;
branches
	1.2.2.1
	1.2.4.1;
next	1.1;

1.1
date	2008.02.10.12.40.10;	author jmmv;	state Exp;
branches
	1.1.2.1;
next	;

1.13.2.1
date	2019.01.26.22.00.38;	author pgoyette;	state Exp;
branches;
next	;
commitid	JKpcmvSjdT25dl9B;

1.13.4.1
date	2019.06.10.22.10.08;	author christos;	state Exp;
branches;
next	1.13.4.2;
commitid	jtc8rnCzWiEEHGqB;

1.13.4.2
date	2020.04.08.14.09.10;	author martin;	state Exp;
branches;
next	;
commitid	Qli2aW9E74UFuA3C;

1.10.2.1
date	2014.08.20.00.04.51;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.10.8.1
date	2014.08.10.06.57.27;	author tls;	state Exp;
branches;
next	;
commitid	GhXSSfNDp5TSCMLx;

1.8.6.1
date	2012.04.17.00.09.14;	author yamt;	state Exp;
branches;
next	;

1.8.8.1
date	2012.05.17.19.03.23;	author riz;	state Exp;
branches;
next	;

1.2.2.1
date	2008.03.02.11.22.10;	author matt;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2008.03.23.00.47.21;	author matt;	state Exp;
branches;
next	;

1.2.4.1
date	2008.05.18.12.36.01;	author yamt;	state Exp;
branches;
next	;

1.1.2.1
date	2008.03.24.07.16.33;	author keiichi;	state Exp;
branches;
next	;


desc
@@


1.19
log
@Add tests on the x86 PTEs. We scan the MMU page tables directly and verify
certain properties.
@
text
@# $NetBSD: Makefile,v 1.18 2020/03/01 18:08:15 christos Exp $

.include <bsd.own.mk>

TESTSDIR=	${TESTSBASE}/modules
CPPFLAGS+=	-D_KERNTYPES

# Ideally this test could be in the parent Makefile, which could not descend
# into this directory at all.  Unfortunately, the etc/mtree/NetBSD.dist file
# creates the 'modules' subdirectory unconditionally, which if left empty
# will confuse atf-run.  Therefore we must install, at the very least, the
# Atffile into it.
TESTS_C=	t_modctl
TESTS_C+=	t_builtin
TESTS_C+=	t_kcov
TESTS_C+=	t_ufetchstore
CPPFLAGS.t_ufetchstore.c+=-I${.CURDIR}/ufetchstore
.for i in t_modctl t_builtin t_kcov
LDADD.${i}=	-lprop
LDADD.${i}+=	-lrumpfs_kernfs ${LIBRUMPBASE}
.endfor

.if ${MACHINE} == "amd64"
TESTS_C+=	t_x86_pte
.endif

TESTS_SH=	t_abi_uvm
TESTS_SH+=	t_modload
TESTS_SH+= 	t_klua_pr_52864
TESTS_SH+=	t_threadpool

SUBDIR=		k_helper
SUBDIR+=	k_helper2
SUBDIR+=	k_helper3
SUBDIR+=	k_uvm
SUBDIR+=	threadpool_tester
SUBDIR+=	ufetchstore
.if ${MACHINE} == "amd64"
SUBDIR+=	x86_pte_tester
.endif

.include <bsd.test.mk>
@


1.18
log
@Centralize the base rump libraries into a variable used by all the other
Makefiles so that we can make changes to it centrally as needed and have
less mess. Fixes the sun2 build that needs rumpvfs after librump after
the latest changes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2019/04/15 23:41:23 christos Exp $
d23 4
d38 3
@


1.17
log
@Re-arrange the ufetchstore tests to look like the other ones.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2019/04/06 03:06:29 thorpej Exp $
d20 1
a20 1
LDADD.${i}+=	-lrumpfs_kernfs -lrumpvfs -lrump -lrumpuser -lrump -lpthread
@


1.16
log
@Overhaul the API used to fetch and store individual memory cells in
userspace.  The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms.  The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.

Welcome to NetBSD 8.99.37.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2019/02/23 03:10:06 kamil Exp $
d16 6
a21 2
LDADD=		-lprop
LDADD+=		-lrumpfs_kernfs -lrumpvfs -lrump -lrumpuser -lrump -lpthread
a34 2
ATFFILE_EXTRA_SUBDIRS= t_ufetchstore

@


1.15
log
@Add KCOV - kernel code coverage tracing device

The KCOV driver implements collection of code coverage inside the kernel.
It can be enabled on a per process basis from userland, allowing the kernel
program counter to be collected during syscalls triggered by the same
process.

The device is oriented towards kernel fuzzers, in particular syzkaller.

Currently the only supported coverage type is -fsanitize-coverage=trace-pc.

The KCOV driver was initially developed in Linux. A driver based on the
same concept was then implemented in FreeBSD and OpenBSD.

Documentation is borrowed from OpenBSD and ATF tests from FreeBSD.

This patch has been prepared by Siddharth Muralee, improved by <maxv>
and polished by myself before importing into the mainline tree.

All ATF tests pass.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2019/01/25 18:33:59 christos Exp $
d29 3
@


1.14
log
@PR/53908: Alex Raschi: Test that require modules belong in modules; move the
threadpool test from kernel to modules.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2018/01/08 14:17:15 martin Exp $
d15 1
@


1.13
log
@PR 52864: add a test for this bug, from sevan@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2016/01/23 21:22:49 christos Exp $
d21 1
d27 1
@


1.13.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2019/04/15 23:41:23 christos Exp $
d15 2
a16 7
TESTS_C+=	t_kcov
TESTS_C+=	t_ufetchstore
CPPFLAGS.t_ufetchstore.c+=-I${.CURDIR}/ufetchstore
.for i in t_modctl t_builtin t_kcov
LDADD.${i}=	-lprop
LDADD.${i}+=	-lrumpfs_kernfs -lrumpvfs -lrump -lrumpuser -lrump -lpthread
.endfor
a20 1
TESTS_SH+=	t_threadpool
a25 2
SUBDIR+=	threadpool_tester
SUBDIR+=	ufetchstore
@


1.13.4.2
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
# $NetBSD$
d20 1
a20 1
LDADD.${i}+=	-lrumpfs_kernfs ${LIBRUMPBASE}
@


1.13.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2018/01/08 14:17:15 martin Exp $
a20 1
TESTS_SH+=	t_threadpool
a25 1
SUBDIR+=	threadpool_tester
@


1.12
log
@Define _KERNTYPES for things that need it.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2014/06/10 04:28:40 he Exp $
d20 1
@


1.11
log
@Fix static linking for the tests: -lrump is also used by -lrumpuser,
so we also need -lrump after -lrumpuser.  Fixes build for sun2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2012/04/13 07:05:32 jruoho Exp $
d6 1
@


1.10
log
@Add a helper program that loads a module and returns the errno from modctl(8).

XXX: As noted on tech-kern@@, the syscall should be modified to fail
     consistently with a given predefined errno on non-MODULAR kernels.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2012/02/17 22:36:50 jmmv Exp $
d15 1
a15 1
LDADD+=		-lrumpfs_kernfs -lrumpvfs -lrump -lrumpuser -lpthread
@


1.10.2.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
# $NetBSD$
d15 1
a15 1
LDADD+=		-lrumpfs_kernfs -lrumpvfs -lrump -lrumpuser -lrump -lpthread
@


1.10.8.1
log
@Rebase.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2014/06/10 04:28:40 he Exp $
d15 1
a15 1
LDADD+=		-lrumpfs_kernfs -lrumpvfs -lrump -lrumpuser -lrump -lpthread
@


1.9
log
@Add a test to ensure that PAGE_SIZE is available in kernel modules.
This test reproduces the error condition in PR port-macppc/46041 and
therefore it is an xfail in this particular platform.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2010/08/27 09:56:40 pooka Exp $
d22 1
@


1.8
log
@tests for builtin modules
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2010/08/21 13:57:41 pgoyette Exp $
d17 2
a18 1
TESTS_SH=	t_modload
d22 1
@


1.8.8.1
log
@Pull up following revision(s) (requested by jmmv in ticket #8):
	tests/modules/t_abi_uvm.sh: revision 1.1
	tests/modules/k_uvm/k_uvm.c: revision 1.1
	tests/modules/k_uvm/Makefile: revision 1.1
	distrib/sets/lists/tests/module.mi: revision 1.6
	tests/modules/Makefile: revision 1.9
Add a test to ensure that PAGE_SIZE is available in kernel modules.
This test reproduces the error condition in PR port-macppc/46041 and
therefore it is an xfail in this particular platform.
@
text
@d1 1
a1 1
# $NetBSD$
d17 1
a17 2
TESTS_SH=	t_abi_uvm
TESTS_SH+=	t_modload
a20 1
SUBDIR+=	k_uvm
@


1.8.6.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2010/08/27 09:56:40 pooka Exp $
d17 1
a17 2
TESTS_SH=	t_abi_uvm
TESTS_SH+=	t_modload
a20 2
SUBDIR+=	k_helper3
SUBDIR+=	k_uvm
@


1.7
log
@Fix botched update.
@
text
@d1 1
a1 1
# $NetBSD$
d13 1
d15 1
@


1.6
log
@Add a new atf test-case to check that recursive module calls actually work.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2010/07/13 21:13:28 jmmv Exp $
d5 1
a5 2
KMOD=   	k_helper2
KMODULEDIR=	${DESTDIR}/${TESTSBASE}/modules/${KMOD}
d7 7
a13 1
SRCS=   	k_helper2.c
d15 4
a18 2
ATFFILE=	no
NOMAN=		# defined
a20 1
.include <bsd.kmodule.mk>
@


1.5
log
@Get rid of static Atffiles and let bsd.test.mk generate them on the fly.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2008/11/12 12:36:29 ad Exp $
d5 2
a6 1
TESTSDIR=	${TESTSBASE}/modules
d8 1
a8 7
# Ideally this test could be in the parent Makefile, which could not descend
# into this directory at all.  Unfortunately, the etc/mtree/NetBSD.dist file
# creates the 'modules' subdirectory unconditionally, which if left empty
# will confuse atf-run.  Therefore we must install, at the very least, the
# Atffile into it.
TESTS_C=	t_modctl
LDADD=		-lprop
d10 2
a11 3
TESTS_SH=	t_modload

SUBDIR=		k_helper
d14 1
@


1.4
log
@Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@@.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2008/05/01 15:38:17 jmmv Exp $
a18 1
.include <bsd.subdir.mk>
@


1.3
log
@Convert NetBSD-specific tests that were previously written in C++ to C now
that ATF provides a C-only binding (comes with 0.5).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2008/03/02 11:22:10 jmmv Exp $
a11 2
.if ${MKMODULAR} != no

a18 2
.endif

@


1.2
log
@Add tests for load-time parameter passing to modules, both at the syscall
level through modctl(2) and at the user level through the modload(8)
utility.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2008/02/10 12:40:10 jmmv Exp $
d14 1
a14 1
TESTS_CXX=	t_modctl
@


1.2.4.1
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2008/03/02 11:22:10 jmmv Exp $
d14 1
a14 1
TESTS_C=	t_modctl
@


1.2.2.1
log
@file Makefile was added on branch matt-armv6 on 2008-03-23 00:47:21 +0000
@
text
@d1 24
@


1.2.2.2
log
@sync with HEAD
@
text
@a0 24
# $NetBSD: Makefile,v 1.2 2008/03/02 11:22:10 jmmv Exp $

.include <bsd.own.mk>

TESTSDIR=	${TESTSBASE}/modules

# Ideally this test could be in the parent Makefile, which could not descend
# into this directory at all.  Unfortunately, the etc/mtree/NetBSD.dist file
# creates the 'modules' subdirectory unconditionally, which if left empty
# will confuse atf-run.  Therefore we must install, at the very least, the
# Atffile into it.
.if ${MKMODULAR} != no

TESTS_CXX=	t_modctl
LDADD=		-lprop

TESTS_SH=	t_modload

SUBDIR=		k_helper

.endif

.include <bsd.subdir.mk>
.include <bsd.test.mk>
@


1.1
log
@Add preliminary tests (basically a placeholder for now) for the new modules
framework.  At the moment, this just tests for plain load (i.e. no arguments
passed to load) and later unload of the module through the modctl(2) system
call.  The tools are not tested yet.
@
text
@d1 1
a1 1
# $NetBSD$
d15 3
@


1.1.2.1
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2008/03/02 11:22:10 jmmv Exp $
a14 3
LDADD=		-lprop

TESTS_SH=	t_modload
@
