Up to [cvs.NetBSD.org] / src / share / mk
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.24 / (download) - annotate - [select for diffs], Sat Feb 23 22:01:51 2013 UTC (18 months ago) by jmmv
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, netbsd-7, agc-symver-base, agc-symver, HEAD
Changes since 1.23: +44 -2 lines
Diff to previous 1.23 (colored)
Autogenerate Kyuafiles next to Atffiles when MKKYUA is set. This is suboptimal: the current high-level definitions of test programs in the Makefiles do not carry enough information to support all the features of Kyuafiles. For example, it is not possible to register test programs that do *not* use the ATF libraries, which is something that has been frequently requested around here; nor it is possible to attach arbitrary metadata to test programs from the Makefile, which is handy particularly for ATF-less test programs. For these reasons, consider this a transitional step. Note that, with this change, you should now be able to use the 'kyua' tool to run the tests in /usr/tests.
Revision 1.23 / (download) - annotate - [select for diffs], Sat Feb 23 21:20:14 2013 UTC (18 months ago) by jmmv
Changes since 1.22: +6 -4 lines
Diff to previous 1.22 (colored)
Stop assuming that test programs and directories are the same thing during Atffile generation. This is needed to be able to generate Kyuafiles (coming later), as these clearly differentiate between the definition of test programs and the recursion into other subdirectories (or files). In particular: rename ATFFILE_EXTRA_TPS to ATFFILE_EXTRA_SUBDIRS and change the logic in bsd.test.mk to keep track of subdirectories aside from _TESTS when creating the Atffile.
Revision 1.22 / (download) - annotate - [select for diffs], Sat Feb 16 15:00:44 2013 UTC (18 months, 1 week ago) by jmmv
Changes since 1.21: +8 -2 lines
Diff to previous 1.21 (colored)
Add ATFFILE_EXTRA_TPS. The new ATFFILE_EXTRA_TPS variable can hold a set of test programs or subdirectories to be added to the generated Atffile, without needing these to be built by the current Makefile. This is to be used in conjunction with MK* knobs and external/ so that a 3rd-party component can place its tests in the corresponding tests/ directory and have the parent Atffile recognize them. An alternative would be to use 'tp-glob' in the Atffile and list the names of the directories/tests that may or may not exist. However, this would require providing manually-crafted Atffiles -- and because the majority are auto-generated, there would be some confusion.
Revision 1.21 / (download) - annotate - [select for diffs], Sat Aug 25 22:21:16 2012 UTC (2 years ago) by jmmv
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)
Fix "make test" to actually print the desired message when atf-run fails. It was being skipped due to the set -e in the code snippet and the failure to properly capture atf-run's exit code.
Revision 1.20 / (download) - annotate - [select for diffs], Fri Aug 24 20:28:19 2012 UTC (2 years ago) by jmmv
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored)
Make DPADD and LDADD specific to the test programs. This allows mixing C and C++ test programs in the same Makefile, and prevents regular programs from being polluted by libraries that they may not need. Suggested by Garrett Cooper in private mail, although I redid his patch.
Revision 1.19 / (download) - annotate - [select for diffs], Sat Sep 10 16:57:35 2011 UTC (2 years, 11 months ago) by apb
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Changes since 1.18: +8 -9 lines
Diff to previous 1.18 (colored)
Move all "clean" and "cleandir" processing to a new bsd.clean.mk file, as proposed in tech-toolchain.
Revision 1.18 / (download) - annotate - [select for diffs], Sat May 14 17:47:28 2011 UTC (3 years, 3 months ago) by jmmv
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)
Remove any stale .fifo files when doing 'test'. These may be leaked if the user aborts the execution of atf-run with Ctrl+C, which will prevent a subsequent 'make test' from working at all.
Revision 1.17 / (download) - annotate - [select for diffs], Sun Mar 27 14:22:02 2011 UTC (3 years, 5 months ago) by plunky
Changes since 1.16: +5 -1 lines
Diff to previous 1.16 (colored)
if not including <bsd.prog.mk> then we need to clean up our own mess
Revision 1.16 / (download) - annotate - [select for diffs], Sun Feb 20 20:16:01 2011 UTC (3 years, 6 months ago) by jmmv
CVS Tags: bouyer-quota2-nbase
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (colored)
Define LIBATF_C and LIBATF_CXX to point to their corresponding .a files and use these to properly set DPADD for test programs.
Revision 1.15 / (download) - annotate - [select for diffs], Wed Feb 16 10:13:00 2011 UTC (3 years, 6 months ago) by jmmv
CVS Tags: bouyer-quota2-base
Changes since 1.14: +11 -12 lines
Diff to previous 1.14 (colored)
Miscellaneous improvements from Garrett Cooper: - Add to variables only once, instead of from within a loop. - Use :tl instead of :M to match against strings for readability. - Use CLEANFILES instead of a custom clean target. Full release built successfully after this change.
Revision 1.14 / (download) - annotate - [select for diffs], Sun Feb 6 19:38:48 2011 UTC (3 years, 6 months ago) by jmmv
Changes since 1.13: +10 -1 lines
Diff to previous 1.13 (colored)
Fix the 'test' target to force atf to use its own files from DESTDIR instead of the installed ones. This is achieved by overriding all ATF_* environment variables and making them point inside DESTDIR.
Revision 1.13 / (download) - annotate - [select for diffs], Mon Aug 23 16:03:03 2010 UTC (4 years ago) by joerg
CVS Tags: matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Changes since 1.12: +2 -7 lines
Diff to previous 1.12 (colored)
Revision 1.12 / (download) - annotate - [select for diffs], Mon Aug 2 07:08:26 2010 UTC (4 years ago) by jmmv
Changes since 1.11: +1 -3 lines
Diff to previous 1.11 (colored)
Move the TESTSBASE definition from bsd.test.mk to bsd.own.mk. Per joerg@'s suggestion.
Revision 1.11 / (download) - annotate - [select for diffs], Tue Jul 13 21:11:41 2010 UTC (4 years, 1 month ago) by jmmv
Changes since 1.10: +37 -2 lines
Diff to previous 1.10 (colored)
Implement Atffile automatic generation. This change adds the ATFFILE variable, which can take the following values: - yes: The source directory contains a static Atffile to be installed. - auto: The Atffile is automatically generated. - no: Do not install any Atffile (replaces the previous NOATFFILE variable). The ugly bit of this is that I have to add a TESTS_SUBDIRS variable that lists the subdirectories that contain test cases (so that they can be listed in the Atffiles, without including auxiliary directories without tests). This is a subset of SUBDIR. Addresses a minor part of PR bin/43394.
Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 18 13:14:21 2010 UTC (4 years, 2 months ago) by jmmv
Changes since 1.9: +10 -4 lines
Diff to previous 1.9 (colored)
Prevent build breakage if TESTSDIR is not defined (as in tests/modules/k_helper).
Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 18 10:10:57 2010 UTC (4 years, 2 months ago) by jmmv
Changes since 1.8: +53 -1 lines
Diff to previous 1.8 (colored)
Add a experimental "make test" target make test may yield misleading results but should work in many cases. This target is supposed to simplify the execution of tests but does not preclude developers from running the installed versions. Addresses PR misc/38326.
Revision 1.8 / (download) - annotate - [select for diffs], Fri Jun 4 08:35:09 2010 UTC (4 years, 2 months ago) by jmmv
Changes since 1.7: +5 -12 lines
Diff to previous 1.7 (colored)
Simplify build of shell-based test cases: atf-compile is gone.
Revision 1.7 / (download) - annotate - [select for diffs], Thu May 1 15:36:36 2008 UTC (6 years, 3 months ago) by jmmv
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase
Changes since 1.6: +13 -3 lines
Diff to previous 1.6 (colored)
Add support for a TESTS_C variable to make use of the new C-only binding that comes with atf-0.5. Also fix linkage of C++ tests.
Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 2 11:31:42 2008 UTC (6 years, 5 months ago) by jmmv
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored)
Fix build of tests when USETOOLS=no. Reported by veego@ in current-users and notified to me by martin@.
Revision 1.5 / (download) - annotate - [select for diffs], Sun Feb 10 12:28:54 2008 UTC (6 years, 6 months ago) by jmmv
CVS Tags: hpcarm-cleanup-base
Branch point for: keiichi-mipv6
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored)
Allow Makefiles to skip the installation of an Atffile by defining NOATFFILE. This is to be able to get the definition of TESTSBASE, which maybe should be part of bsd.own.mk...
Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 5 17:50:47 2008 UTC (6 years, 6 months ago) by drochner
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)
include bsd.init.mk so that eg USETOOLS is available to client Makefiles, approved by jmmv
Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 4 14:15:57 2008 UTC (6 years, 6 months ago) by jmmv
Changes since 1.2: +9 -2 lines
Diff to previous 1.2 (colored)
Rebuild shell-based tests if the atf-compile host tool has changed. The contents of the generated scripts may change (as will happen with ATF 0.4), so this dependency is important to have. Dunno how to deal with the non-tools case other than adding an entry in UPDATING, but if you are not using tools, you can expect all kinds of breakage.
Revision 1.2 / (download) - annotate - [select for diffs], Wed Nov 21 15:40:09 2007 UTC (6 years, 9 months ago) by jmmv
CVS Tags: pc532-eol-2008, matt-armv6-base, cube-autoconf-base, cube-autoconf
Branch point for: matt-armv6
Changes since 1.1: +1 -2 lines
Diff to previous 1.1 (colored)
No need to set a value for TESTSDIR any more as this is explicitly set wherever it is needed.
Revision 1.1 / (download) - annotate - [select for diffs], Mon Nov 12 15:05:16 2007 UTC (6 years, 9 months ago) by jmmv
Add the bsd.test.mk file This file simplifies the build of test programs, either written in C++ or in sh. It hides the internals of atf, e.g. by silently linking against -latf or calling atf-compile. It also takes care of installing an Atffile for each new test directory.
This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.