Commit Graph

47 Commits

Author SHA1 Message Date
christos b7a2c5757f Tests for the compat_linux inotify framework from GSoC 2023 (Theodore Preduta) 2023-08-19 22:56:43 +00:00
riastradh ef315f7931 Remove MKCRYPTO option.
Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
2017-05-21 15:28:36 +00:00
matt b9e582e94c Don't build tests that depend on RUMP if BSD_MK_COMPAT_FILE is defined. 2015-06-22 00:05:23 +00:00
jmmv 58ac8c454c Run tests in kyua-atf-compat if MKKYUA!=no. 2013-02-25 00:33:19 +00:00
jmmv 5b7eb38d00 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.
2013-02-23 21:20:14 +00:00
jmmv 9f60280349 Register kyua-cli into the Atffile when MKKYUA!=no. 2013-02-23 14:22:24 +00:00
jmmv e06d860d40 Auto-generate the top-level Atffile.
This fixes a problem in MKKYUA=no builds in which the kyua-testers
subdirectory in /usr/tests was created unconditionally and atf-run was
confused because such subdirectory didn't have an Atffile of its own.
(Due to the way our directory creation and file lists work, I'm not
sure it's possible to just not "install" the empty directory.  But
that'd be an alternative to this.)

Auto-generating the Atffile causes it to only list the subdirectories
listed by the Makefile, which can vary depending on various MK* options.

Problem found by martin@.
2013-02-19 15:30:07 +00:00
jmmv 8f212f1945 Move tests for examples from tests/examples to tests/share/examples.
This is to match the layout of the installed and source files more closely.
While doing this, honor the MKSHARE variable, as the files these tests
validate are only installed when MKSHARE=yes.
2013-02-16 12:44:25 +00:00
jmmv 80b30d8cdf Add placeholder test programs for share/mk files.
The main goal of this change is to simplify the further addition of test
cases for the share/mk infrastructure by adding a few placeholder test
programs to the tests tree.

To not leave these test programs empty, I have added a bunch of extremely
simple test cases to them.
2012-08-26 23:03:20 +00:00
christos cb461c6808 Exclude tests that use rump 2012-08-08 13:57:05 +00:00
matt 9b85f61f61 Only descend into ipf if MKIPFILTER != "no" 2012-03-24 01:36:50 +00:00
jruoho ad9dcd3c99 Deprecate tests/toolchain. 2012-03-17 17:15:28 +00:00
jruoho 28604916d4 Deprecate tests/util. 2012-03-17 16:33:10 +00:00
jmmv 06f3e60d63 Add tests to ensure that the new asm examples build and run, just as the
end-user is supposed to work with them.
2011-11-12 01:19:25 +00:00
mrg 520e58c432 only decent into crypto/tests if ${MKCRYPTO} != "no". (sets are probably
also broken, but i didn't get that far yet.)
2011-09-21 02:14:38 +00:00
jruoho 7e7bf0e2e7 Remove syscall SUBDIR. 2011-07-07 07:31:29 +00:00
mrg c25406cbc7 evbppc can do modules now. 2011-06-15 23:45:45 +00:00
pooka ca626b1df7 Add tests to check "cc" can compile a working hello world.
(this test fails at least on riz's macppc)
2011-02-24 10:24:23 +00:00
pooka f43ab2f10c add tests for the -d functionality of rump_server(1) 2011-02-03 15:38:18 +00:00
pgoyette 6b3ee667f6 Avoid double-inclusion of bsd.subdir.mk file. This eliminates some harmlessnbut annoying warning messages. 2011-01-07 01:07:31 +00:00
pooka f2fcee3be9 do the alphabet 2011-01-02 13:18:37 +00:00
haad 84aab3c9ee Hook traceroute test case to build. it was added to lists so unbreak build now. 2010-12-15 10:36:49 +00:00
njoly f23e744cdd Make tests set generation optional, skipped for MKATF=no build. 2010-12-08 23:56:01 +00:00
riz 3c3ed948f1 Add some basic tests of resize_ffs(8). The 'grow' test does nothing
more than create an empty file system, grow it, and makes sure fsck
finds the result clean.  The 'shrink' test does likewise for shrinking,
but is an expected failure at the moment due to PR bin/44177.
2010-11-30 23:17:27 +00:00
pooka f0a81636b4 Add test of pad(4): stuff some audio into /dev/audio, read it from
/dev/pad.  Test that we got sensible output by comparing against
a previous audibly good result.

This exercises auconv, audio and pad.
2010-08-04 13:15:15 +00:00
jmmv 6cbeb05cb2 Convert the include tests to atf.
Initial work from the GSoC 2008 project by Lukasz Strzygowski.
2010-07-17 19:26:27 +00:00
jmmv 9d0b4b5bb8 Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
jmmv 2c2857e920 Add some basic tests for rc.d scripts to validate the execution of
subcommands and the optional argument passing to them from the command
line.

Triggered by the modification of the run_rc_command function in rc.subr
to allow passing in extra parameters to the commands defined in rc.d
scripts.
2010-03-15 19:03:08 +00:00
mrg fa38305b2e avoid most of the SUBDIRs if MKATF == "no". 2009-12-15 03:01:48 +00:00
dyoung 2e43373a96 Fix MKKMOD=no builds: in sets.subr, if $MKKMOD == no, leave the
modules set out of the list of NetBSD set lists, nlists.  If
$MKKMOD == no, do not install modules tests.
2009-11-05 17:34:25 +00:00
pooka b4d274c027 add regression tests for dlinfo() 2009-09-24 21:33:45 +00:00
joerg d6e219476b Add a fast, platform independent hash function to libc.
The algorithm used is the Jenkins hash.  The name (mi_vector_hash)
reflects the nature of the hash function.
Add glue for libc ATF tests and include a test case to make sure that
(mis)alignment and endianess are handled correctly.

Bump libc minor to 169.
2009-07-20 17:03:36 +00:00
pooka 80be26da9a add regression test for module init/fini in rump 2009-05-02 16:02:18 +00:00
jmmv 99635d94f8 Add the kernel-level tests developed by Lukasz Strzygowski as part of the
atfify GSoC 2008 project.
2009-02-20 21:39:57 +00:00
jmmv fd2c7cbdc1 Convert libcrypto tests to ATF. Original work done by Lukasz Strzygowski
in the GSoC 2008 atfify project.  Reorganization of files and build system
reworked by me.
2009-02-13 20:58:13 +00:00
pooka 1838cc2a07 Add a regression test for the descriptor passing panic. 2009-02-10 13:43:54 +00:00
jmmv 0cdcf7cea6 Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it.  0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.
2009-01-19 07:08:14 +00:00
pooka 8c10597be5 Don't descend into modules on evbppc.. sigh 2008-12-08 12:39:04 +00:00
gmcgarry f8eb853c86 Don't descend into atf with (${MKATF} == no) 2008-08-16 23:51:51 +00:00
jmmv d387334f48 Descend into modules. This is unconditional; see the comment in
modules/Makefile for details about why it cannot depend on MKMODULAR.
2008-02-10 12:40:41 +00:00
jmmv e44ee884d0 Add regression tests for low-port allocation in connect and listen, which
was broken and fixed recently in:
http://mail-index.netbsd.org/source-changes/2007/12/16/0011.html

Test-case code provided by elad@.
2007-12-23 13:50:22 +00:00
jmmv 80c834ed18 Explicitly define TESTSDIR, because the automatic deduction of its value
breaks the build if some component of NETBSDSRCDIR is a symlink.  Reported
by drochner@.
2007-11-21 15:39:33 +00:00
jmmv 98380f8b63 Convert the regress/games tests to the atf
This change converts all the existing regression tests in regress/games
to the new framework provided by atf.  As a side effect, this also moves
all the tests programs in regress/games to tests/games.
2007-11-12 15:19:45 +00:00
jmmv 9b7401e7cb Convert the regress/sys/fs/tmpfs tests to the atf
This change converts all the existing regression tests in
regress/sys/fs/tmpfs to the new framework provided by atf.  As a side
effect, this also moves all the tests programs in regress/sys/fs/tmpfs to
tests/fs/tmpfs.
2007-11-12 15:18:07 +00:00
jmmv 65926be28b Convert the regress/bin tests to the atf
This change converts all the existing regression tests in regress/bin to
the new framework provided by atf.  As a side effect, this also moves all
the tests programs in regress/bin to tests/util, as they all belong to
utilities installed by the base-util-root package.
2007-11-12 15:13:58 +00:00
jmmv 3b0ca37dba Add the atf tests
This adds reachover Makefiles to build and install the atf tests.
2007-11-12 15:09:26 +00:00
jmmv 4d9b8b6a50 Add the tests.tgz set
This adds a new tests.tgz set to releases which includes all the tests
for the system.  It is important to note that this set does not rely on
comp.tgz: a user of the system can run the tests without having the
development tools installed, which can be useful in a production machine.
2007-11-12 15:06:45 +00:00