History log of /freebsd-current/tests/Makefile
Revision Date Author Comments
# 4fbb9c43 07-Sep-2023 Dag-Erling Smørgrav <des@FreeBSD.org>

include: Add tests for N2867.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D41735


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 8161b823 01-Jan-2023 Alexander V. Chernikov <melifaro@FreeBSD.org>

testing: add python test examples

Simplify the adoption of python tests by proving some examples,
utilising commonly-used patterns.

Differential Revision: https://reviews.freebsd.org/D37902
Reviewed by: asomers
MFC after: 2 weeks


# 924226fb 26-Jun-2022 Alexander V. Chernikov <melifaro@FreeBSD.org>

testing: move atf-pytest-wrapper to /usr/libexec

Move pytest wrapper to the collection of the other atf wrappers
in libexec. It solves the problem of combining bits & pieces from
bsd.test.mk and bgs.prog.mk to address "test binary, but not the
suite binary".

Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D35604
MFC after: 2 weeks


# 8eb2bee6 25-Jun-2022 Alexander V. Chernikov <melifaro@FreeBSD.org>

testing: Add basic atf support to pytest.

Implementation consists of the pytest plugin implementing ATF format and
a simple C++ wrapper, which reorders the provided arguments from ATF format
to the format understandable by pytest. Each test has this wrapper specified
after the shebang. When kyua executes the test, wrapper calls pytest, which
loads atf plugin, does the work and returns the result. Additionally, a
separate python "package", `/usr/tests/atf_python` has been added to collect
code that may be useful across different tests.

Current limitations:
* Opaque metadata passing via X-Name properties. Require some fixtures to write
* `-s srcdir` parameter passed by the runner is ignored.
* No `atf-c-api(3)` or similar - relying on pytest framework & existing python libraries
* No support for `atf_tc_<get|has>_config_var()` & `atf_tc_set_md_var()`.
Can be probably implemented with env variables & autoload fixtures

Differential Revision: https://reviews.freebsd.org/D31084
Reviewed by: kp, ngie


# 64e33c5c 18-Jan-2022 Cy Schubert <cy@FreeBSD.org>

Revert "wpa: Import wpa 2.10."

This reverts commit 5eb81a4b4028113e3c319f21a1db6b67613ec7ab, reversing
changes made to c6806434e79079f4f9419c3ba4fec37efcaa1635 and
this reverts commit 679ff6112361d2660f4e0c3cda71198a5e773a25.

What happend is git rebase --rebase-merges doesn't do what is expected.


# 03f33dd0 17-Jan-2022 Cy Schubert <cy@FreeBSD.org>

wpa: Import wpa 2.10

The long awaited wpa 2.10 is finally here.


# f8262d7d 18-Mar-2021 Philip Paeps <philip@FreeBSD.org>

Import wpa_supplicant/hostapd commit 9d9b42306541

Start tracking upstream development of hostapd and wpa_supplicant more
closely. The last upstream release is from August 2019. Keeping up
with upstream development will make importing releases less exciting.

Discussed with: cy
Sponsored by: Rubicon Communications, LLC ("Netgate")


# bc64b5ce 23-May-2020 Conrad Meyer <cem@FreeBSD.org>

Import Zstd 1.4.5


# af6fbe51 23-Jan-2020 Ed Maste <emaste@FreeBSD.org>

Tag /usr/tests/local symlink with package=tests

As with the rest of /usr/tests, so that it is handled correctly on
pkgbase-installed/updated systems.

Sponsored by: The FreeBSD Foundation


# ea684039 05-Nov-2019 Conrad Meyer <cem@FreeBSD.org>

Import Zstd 1.4.4


# fa94c738 08-Aug-2019 Conrad Meyer <cem@FreeBSD.org>

import zstd 1.4.1


# 3f774a5e 18-Apr-2019 Conrad Meyer <cem@FreeBSD.org>

import zstd 1.4.0


# af73257b 28-Dec-2018 Conrad Meyer <cem@FreeBSD.org>

import zstd 1.3.8


# 706cfae4 22-Oct-2018 Conrad Meyer <cem@FreeBSD.org>

import zstd 1.3.7


# 42239e68 22-Oct-2018 Conrad Meyer <cem@FreeBSD.org>

import zstd 1.3.4


# 1767cc49 22-Oct-2018 Conrad Meyer <cem@FreeBSD.org>

import zstd 1.3.3


# 653667f9 09-Nov-2017 Baptiste Daroussin <bapt@FreeBSD.org>

import zstd 1.3.2


# 5e1d4ad0 30-Oct-2017 Enji Cooper <ngie@FreeBSD.org>

Start adding in simple wrapper around lgov/genhtml called gather_coverage

It will be installed to /usr/tests/tools for the time being

Based loosely on make snippet seen in
https://github.com/yaneurabeya/scratch/blob/master/demos/freebsd/runtime-coverage/Makefile .
The real difference is that one needs to run a binary with coverage compiled
in before running this script, so it can hoover up the .gcda's.


# 902c8ce7 22-Aug-2017 Baptiste Daroussin <bapt@FreeBSD.org>

Import zstd 1.3.1


# 47606b86 02-Aug-2017 Enji Cooper <ngie@FreeBSD.org>

Use MK_CHECK_USE_SANDBOX in tests/..., to deal with the fact that
tests/... is a special snowflake directory and using HAS_TESTS would
result in a nasty layering violation between bsd.tests.mk and
bsd.prog.mk.

Add reachover Makefile.inc's which get the default value from
Makefile.inc0 (inspired by gnu/usr.bin/binutils/Makefile.inc0).


# affe9eaf 14-Jul-2017 Baptiste Daroussin <bapt@FreeBSD.org>

Import zstd 1.3.0


# ffcbc2d7 06-May-2017 Baptiste Daroussin <bapt@FreeBSD.org>

Import Zstandard 1.2.0
Among changes: threading support is now default and supports freebsd


# a19eddc3 15-Apr-2017 Baptiste Daroussin <bapt@FreeBSD.org>

Import zstd 1.1.4


# 430f7286 04-May-2016 Enji Cooper <ngie@FreeBSD.org>

Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed
after r298107

Summary of changes:

- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that
namespacing is kept with FILES appropriately, and that this shouldn't need
to be repeated if the namespace changes -- only the definition of PACKAGE
needs to be changed
- Allow PACKAGE to be overridden by callers instead of forcing it to always be
`tests`. In the event we get to the point where things can be split up
enough in the base system, it would make more sense to group the tests
with the blocks they're a part of, e.g. byacc with byacc-tests, etc
- Remove PACKAGE definitions where possible, i.e. where FILES wasn't used
previously.
- Remove unnecessary TESTSPACKAGE definitions; this has been elided into
bsd.tests.mk
- Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES;
${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk.
- Fix installation of files under data/ subdirectories in lib/libc/tests/hash
and lib/libc/tests/net/getaddrinfo
- Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup)

Document the proposed changes in share/examples/tests/tests/... via examples
so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of
replacing FILES. share/mk/bsd.README didn't seem like the appropriate method
of communicating that info.

MFC after: never probably
X-MFC with: r298107
PR: 209114
Relnotes: yes
Tested with: buildworld, installworld, checkworld; buildworld, packageworld
Sponsored by: EMC / Isilon Storage Division


# 49dae58b 28-Apr-2016 Glen Barber <gjb@FreeBSD.org>

Fix including Kyuafile in packaged base system.

Fix a related typo while here.

Note, this change results in the Kyuafile inclusion in the runtime
package, which needs to be fixed, however addresses the PR as far
as I can tell in my tests.

PR: 209114
Submitted by: ngie
Sponsored by: The FreeBSD Foundation


# 1f4bcc45 03-Feb-2016 Glen Barber <gjb@FreeBSD.org>

More 'tests' packaging fixes.

Sponsored by: The FreeBSD Foundation


# 43faedc1 02-Feb-2016 Glen Barber <gjb@FreeBSD.org>

First pass to fix the 'tests' packages.

Sponsored by: The FreeBSD Foundation


# d58d03e5 19-Nov-2015 Craig Rodrigues <rodrigc@FreeBSD.org>

Copy README into /usr/tests

Add a few sentences describing how to run the tests.

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D4224


# aa92269e 15-Oct-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Add more SUBDIR_PARALLEL.

MFC after: 3 weeks
Sponsored by: EMC / Isilon Storage Division


# 2cfac473 31-May-2015 Enji Cooper <ngie@FreeBSD.org>

Append to SUBDIR, not set it

Pointyhat to: ngie


# 7afb8adf 18-May-2015 Enji Cooper <ngie@FreeBSD.org>

Move all test integration pieces for etc/ from etc/ to tests/

This is being done to fix breakage with make distribution with read-only
source trees as make distribution doesn't use make obj like building
tests/ does in all cases

Reported by: Wolfgang Zenker <wolfgang@lyxys.ka.sub.org>
Suggested by: jhb
X-MFC with: r282059
MFC after: 1 week


# 564d7c40 15-Feb-2014 Julio Merino <jmmv@FreeBSD.org>

Use DESTDIR for the installation of the /usr/tests/local symlink.

MFC after: 5 days


# aa11ae47 15-Feb-2014 Julio Merino <jmmv@FreeBSD.org>

Install a symlink from /usr/tests/local to /usr/local/tests.

This is to let Kyua descend into any tests that may have been installed by
ports under /usr/local/tests when running the test suite from /usr/tests.

Some ports (namely those that build Kyua) already install test programs
into /usr/local/tests. Just make sure to select the TEST option while
building them.

MFC after: 3 days


# f17e7cad 24-Jan-2014 Alan Somers <asomers@FreeBSD.org>

Fix the Makefiles so that the tests I submitted in r261081 will actually
get built.

Sponsored by: Spectra Logic
MFC after: 13 days
X-MFC-With: r261081


# cc21b86f 08-Nov-2013 Julio Merino <jmmv@FreeBSD.org>

Install category Kyuafiles from their category directories.

Move the installation of /usr/tests/lib/Kyuafile from src/tests/lib/
to src/lib/. This is to keep the src/tests/ hierarchy unaware of the
rest of the tree, which makes things clearer in general. In particular:

1) Everything related to the construction of /usr/tests/lib/ is kept
in src/lib/. There is no need to think about different directories
and how they relate to each other. (The same applies for libexec,
usr.bin, etc. but these are not yet handled.)

2) src/tests becomes the place to keep cross-functional test programs
and nothing else, which also helps in simplifying things.

Reviewed by: freebsd-testing
Approved by: rpaulo (mentor)


# e2197f80 24-Oct-2013 Rui Paulo <rpaulo@FreeBSD.org>

Set up the /usr/tests hierarchy.

Populate /usr/tests with the only test programs that currently live
in the tree (those in lib/libcrypt/tests/) and add all the build
machinery to accompany this change.

In particular:

- Add a WITHOUT_TESTS variable that users can define to request that
no tests be put in /usr/tests.
- Add a top-level Kyuafile for /usr/tests and a way to create similar
Kyuafiles in top-level subdirectories.
- Add a BSD.tests.dist file to define the directory layout of
/usr/tests.

Submitted by: Julio Merino jmmv google.com
Reviewed by: sjg
MFC after: 2 weeks