Commit Graph

16419 Commits

Author SHA1 Message Date
rillig
5630da511e make(1): add tests for each debug option 2020-09-05 06:20:50 +00:00
rillig
60c2e21286 make(1): add test for the special variable MAKEFILE 2020-09-04 17:05:39 +00:00
rillig
acf074f0de clean up file lists
- remove trailing whitespace
- remove empty line
- remove typo "htm\tl", that line is repeated
2020-09-04 13:39:50 +00:00
rillig
8bcc5e16ef add missing RCS Id line to lists/xserver/md.evbmips 2020-09-04 12:08:59 +00:00
rillig
8f99095c48 sort file lists with error checking, use lowercase variable name 2020-09-04 12:02:20 +00:00
rillig
565e2f5897 re-indent and sort distrib/sets/lists/tests/mi
This way, the fields 2 and 3 don't jump horizontally as often as before,
which makes the appearance of the whole file as calm and organized as it
should be.
2020-09-04 11:43:50 +00:00
rillig
cd269e3b78 make(1): extend tests for the :hash variable modifier
The previous test vectors didn't contain any hash with a leading zero.
This could have been a simple programming mistake by using %8x instead
of the intended %08x.  Using snprintf wouldn't have been possible anyway
since the hex digits are printed in little-endian order, but without
reversing the bits of each digit.  Kind of unusual, but doesn't affect
the distribution of the hashes.
2020-09-04 05:23:25 +00:00
jakllsch
892fcf91ad Only expect ACPI and UEFI-related files on little endian aarch64 2020-09-03 18:58:48 +00:00
rillig
640eab791b make(1): add test for the .for directive
For a long time, I had assumed that the iteration variables of a .for
loop are just normal global variables.  This assumption was wrong but
didn't have any consequences.

The iteration variables of a .for loop can just be accessed like global
variables, therefore it is not obvious that they are implemented in a
completely different way.

There are some edge cases in conditions used inside .for loops, in which
the iteration variables cannot be used like normal variables.  An
example is brought up in https://gnats.netbsd.org/47888, which observes
that the defined() and empty() functions in conditions only work with
variables but ignore the iteration "variables", simply because these are
not variables but only expressions.
2020-09-02 05:33:57 +00:00
bouyer
6e9b47ae29 Add back <xen/xenio3.h>, it's needed by xentools413 2020-08-31 11:32:01 +00:00
mrg
48bad64f01 install dmxproto.pc and dpmsproto.pc 2020-08-30 04:51:03 +00:00
rillig
a02fdff94e make(1): add tests for .else and .for + .endif 2020-08-29 18:50:25 +00:00
rillig
6c6514f5e6 make(1): fix assertion failure for .SUFFIXES in archives
This occurred in the posix1.mk test, even though it is disabled in
unit-tests.  But in tests/usr.bin/make it still runs.  There, it should
have produced an "expected failure" but crashed instead.

The archive-suffix test is the stripped-down version of the posix1 test.
2020-08-29 14:47:26 +00:00
rillig
24bb4aab54 make(1): add test for interrupting a command 2020-08-28 15:40:53 +00:00
christos
4acd0e20c1 new compat_bsdos man page. 2020-08-28 12:15:05 +00:00
riastradh
c371c223b0 Revert removal -- evidently the leading dash does mean something.
Specifically, it cancels out the same entry elsewhere in the set
list, and apparently it is only for twelve files in the entire tree.
Someone^TM should document this more clearly, and/or just get rid of
it because I'm at least the third person to be confused by this
according to the revision history.
2020-08-28 06:44:02 +00:00
rillig
f0fdf22f6f make(1): add tests for the special .INCLUDES and .LIBS variables 2020-08-28 03:51:06 +00:00
rillig
2e8adea593 make(1): add test for the -dg1 option 2020-08-27 19:00:17 +00:00
riastradh
64605abad9 Remove bogus Atffile and Kyuafile entries for if_wg tests. 2020-08-27 15:32:37 +00:00
riastradh
0d3faa6162 Sort and deduplicate set lists. 2020-08-27 15:31:59 +00:00
riastradh
af24ffc1cc Omit spurious leading dash in debug/ad.mips set list entries.
(if this actually means something feel free to revert and document
what it means somewhere obvious!)
2020-08-27 15:30:04 +00:00
riastradh
4ab307ac4c Fix obsolete entry for /usr/lib/libcdk.so.
This was broken in rev. 1.1230.
2020-08-27 15:28:53 +00:00
riastradh
25154f5f0c Clarify wg(4)'s relation to WireGuard, pending further discussion.
Still planning to replace wgconfig(8) and wg-keygen(8) by one wg(8)
tool compatible with wireguard-tools; update wg(4) for the minor
changes from the 2018-06-30 spec to the 2020-06-01 spec; &c.  This just
clarifies the current state of affairs as it exists in the development
tree for now.

Mark the man page EXPERIMENTAL for extra clarity.
2020-08-26 16:03:40 +00:00
riastradh
e96b516f47 Restore obsolete entries for make's modorder tests.
These tests were removed a week ago, but their set list entries were
removed rather than marked obsolete.
2020-08-24 18:41:22 +00:00
martin
dec88ece21 Backout previous, commiter was dazed and confused 2020-08-24 18:22:30 +00:00
martin
1247dfe5c0 Add modorder* make unit test files 2020-08-24 18:18:51 +00:00
rillig
482afa8a7b make(1): add tests for numeric comparisons in .if directives 2020-08-23 13:50:17 +00:00
rillig
95cca86b4e make(1): add test for the newly added .SHELL variable 2020-08-23 09:18:25 +00:00
rillig
526dac9499 make(1): add test for expanding wildcards in directories
This test covers DirExpandInt.
2020-08-22 21:55:54 +00:00
rillig
e980b3204c make(1): add test for assigning to the variable named ""
This has been possible at least since 2013, probably much longer.
2020-08-22 20:23:14 +00:00
rillig
78b4692a94 make(1): add test for deferred variable expansion in dependencies 2020-08-22 16:51:25 +00:00
rillig
6c388b1dca make(1): add test for the special "..." in shell commands 2020-08-22 11:27:02 +00:00
rillig
49fef3ca66 make(1): add test for combining :: and .USEBEFORE 2020-08-22 08:29:13 +00:00
riastradh
0252686c58 Fill out WireGuard man pages. 2020-08-20 21:35:59 +00:00
riastradh
61fd7d67f5 [ozaki-r] Add wg files 2020-08-20 21:28:00 +00:00
rillig
001513ee3c make(1): add test for parsing functions in .if conditions 2020-08-20 17:45:46 +00:00
nakayama
ffe8239bf9 Quoted from the top of the file:
# Note: don't delete entries from here - mark them as "obsolete" instead.
2020-08-18 07:13:59 +00:00
perseant
c7e481e284 Add skipped test for in-kernel roll-forward agent 2020-08-18 03:02:50 +00:00
rillig
94b00ca35c make(1): move tests for the :Ox modifier into separate file
The test has been extended by ensuring that the shuffled words are still
the same.  Comparing two shuffled lists is probabilistic, but comparing
their sorted results is not, therefore that's completely sensible to do.

When writing this test, by coincidence I discovered how to generate the
"Undefined variable" error message.  Unfortunately, the error message is
wrong since the variable NUMBERS is defined at that point.  In summary,
that error message is shown when it shouldn't, and when it should it is
not shown.  Still, I'm glad that I finally found it.
2020-08-16 20:43:01 +00:00
rillig
54a8ac11f2 make(1): move tests for the :M modifier into separate files
The test for the different escaping has been adjusted to actually show
the different parsing results in the test output.  To do this, it had to
get its own file since it needs the -dv debug flag and specialized
post-processing.
2020-08-16 20:03:52 +00:00
rillig
d126d9d551 make(1): add dummies for fine-grained tests, one per single feature
The test names have been derived from the current manual page.

All these tests are dummies right now, and the code from the existing
tests will be moved into the new tests step by step.

This is done to prevent modmisc, escape, varmod-edge and varmisc from
growing without any bounds, and to reduce the side-effects of one test
to the others.
2020-08-16 12:07:50 +00:00
mrg
5f6277270e bump image from 3000k to 3.5M. thanks, time. 2020-08-16 11:43:36 +00:00
isaki
76c2ed7cdd Replace boot_ustar with xxboot_ustarfs.
The old boot_ustar had many hard coding and was small(<1KB).
The new xxboot_ustarfs is a part of integrated larger(<8KB) xxboot.
We had to maintain three similar but not the same bootloaders, but
now we have two!
2020-08-16 07:03:45 +00:00
riastradh
bdad8b2721 New system call getrandom() compatible with Linux and others.
Three ways to call:

getrandom(p, n, 0)              Blocks at boot until full entropy.
                                Returns up to n bytes at p; guarantees
                                up to 256 bytes even if interrupted
                                after blocking.  getrandom(0,0,0)
                                serves as an entropy barrier: return
                                only after system has full entropy.

getrandom(p, n, GRND_INSECURE)  Never blocks.  Guarantees up to 256
                                bytes even if interrupted.  Equivalent
                                to /dev/urandom.  Safe only after
                                successful getrandom(...,0),
                                getrandom(...,GRND_RANDOM), or read
                                from /dev/random.

getrandom(p, n, GRND_RANDOM)    May block at any time.  Returns up to n
                                bytes at p, but no guarantees about how
                                many -- may return as short as 1 byte.
                                Equivalent to /dev/random.  Legacy.
                                Provided only for source compatibility
                                with Linux.

Can also use flags|GRND_NONBLOCK to fail with EWOULDBLOCK/EAGAIN
without producing any output instead of blocking.

- The combination GRND_INSECURE|GRND_NONBLOCK is the same as
  GRND_INSECURE, since GRND_INSECURE never blocks anyway.

- The combinations GRND_INSECURE|GRND_RANDOM and
  GRND_INSECURE|GRND_RANDOM|GRND_NONBLOCK are nonsensical and fail
  with EINVAL.

As proposed on tech-userlevel, tech-crypto, tech-security, and
tech-kern, and subsequently adopted by core (minus the getentropy part
of the proposal, because other operating systems and participants in
the discussion couldn't come to an agreement about getentropy and
blocking semantics):

https://mail-index.netbsd.org/tech-userlevel/2020/05/02/msg012333.html
2020-08-14 00:53:15 +00:00
christos
c9979bce58 new openldap.h 2020-08-11 13:19:15 +00:00
rillig
c0e93ee0a8 make(1): add test for .USE combined with inference rule without commands
Discovered by christos.
2020-08-09 16:32:28 +00:00
rillig
0a54428996 make(1): add test for non-obvious .MAKE.EXPORTED edge case 2020-08-09 12:59:16 +00:00
rillig
98f2f3e4fd make(1): add test for exporting variables 2020-08-07 19:24:27 +00:00
snj
61057d564f s/developement/development/ 2020-08-07 00:43:47 +00:00
snj
036ace7152 fix typo.
new sentence, new line.
2020-08-07 00:27:11 +00:00