Commit Graph

16696 Commits

Author SHA1 Message Date
christos 05c935db2f bump libunbound 2021-03-15 20:17:04 +00:00
rillig 63e8f1e660 tests/make: add test for short-circuit evaluation of modifiers 2021-03-14 11:49:37 +00:00
rillig 3530c7d28f tests/indent: add test templates for testing specific parser symbols
The basic idea of indent is to split the input into tokens and then
reassemble them, reformatting them on the way.  These tokens determine
how the output is formatted, therefore add tests for each of the
terminal tokens and nonterminal parser symbols, to cover more common
cases, and edge cases as well.
2021-03-12 00:13:06 +00:00
simonb b2de856f1a Add manpage links for asysctl(3) and asysctlbyname(3), already described
in sysctl(3).
2021-03-10 13:30:34 +00:00
simonb 996bea5137 Add printf_nostamp(9), kernel printf() without prepending a timestamp. 2021-03-10 13:27:51 +00:00
rillig c280f5e623 tests/indent: demonstrate strange alignment for global variables 2021-03-09 20:43:19 +00:00
christos baa2f24833 We don't need libwrap anymore; libhack replaces it. 2021-03-09 00:08:04 +00:00
christos 58e21b67a6 Add a stubbed version of libwrap (tcpwrappers) 2021-03-09 00:06:44 +00:00
rillig 6abe7eedca tests/indent: demonstrate wrong removed empty line before '//' 2021-03-08 22:13:05 +00:00
rillig 09aa491484 tests/indent: demonstrate another bug in nested blocks 2021-03-08 20:55:34 +00:00
rillig 548d705b04 tests/indent: add test for output line counting 2021-03-08 20:12:04 +00:00
rillig 7bd1775519 lint: in strict C mode, warn about initialization with '[a ... b]'
https://gcc.gnu.org/onlinedocs/gcc/Case-Ranges.html
2021-03-07 19:42:54 +00:00
nia 18c61bbc00 G12 2021-03-07 16:25:06 +00:00
rin e31cf72b5a Build Xorg server for evbppc with minimum wsfb(4) support for Explora. 2021-03-07 10:42:26 +00:00
dbj 787ef1221e distrib/amd64/cdroms: honor CDBOOTOPTIONS when installing EFI bootloader 2021-03-07 03:55:47 +00:00
rillig 1a656e3597 tests/indent: add templates for options tests
Given that indent "has even more switches than ls(1)", there are far too
few tests.  To make it easier to add meaningful tests for each of the
options, add the templates for the tests right now, ready to be filled
in.
2021-03-06 17:56:33 +00:00
christos d0f77c4d4c bump libssh 2021-03-05 18:08:21 +00:00
jakllsch 9c8ef71e39 and the html for rge(4)... 2021-03-01 21:01:39 +00:00
jakllsch dc78acc9bb install rge(4) manual 2021-03-01 18:01:05 +00:00
martin 6390772e1b Drop IEEE802.11 support from the ramdisk's ifconfig(8) 2021-03-01 16:50:01 +00:00
martin 7ea81546f1 Now that we use the "hacked" (non-widechar) curses, drop -lcurses 2021-03-01 16:49:07 +00:00
martin 5fe518b10d Drop wide char support to save space 2021-03-01 09:24:27 +00:00
rillig 523633c84d lint: fix null pointer dereference on parse error
Fixes PR bin/22119.
2021-02-28 22:12:16 +00:00
rillig 3594934372 lint: add test to demonstrate that PR bin/20264 has been fixed 2021-02-28 20:17:13 +00:00
nia 3908a1c070 add new evbarm device driver man pages 2021-02-26 11:05:33 +00:00
christos 9b5d8227e3 Add utmp man pages 2021-02-26 03:08:25 +00:00
rin e609961ea2 Oops, forgot to commit this. One more adjust for amiga/boot ver 3.1.
Shuold fix build.
2021-02-25 21:46:55 +00:00
christos bb0dab52f7 Add regcomp.c and regexec.c so that we get a version that does not use NLS
and brings in all the locale code.
2021-02-25 21:24:00 +00:00
rin 1ee4efdda5 Adjust for amiga/boot ver 3.1. 2021-02-25 03:42:59 +00:00
rillig 352df404f7 indent: add test demonstrating that indent cannot handle C99
indent cannot handle line-end comments.

The indent test suite requires each test file to have both a NetBSD and
a FreeBSD RCS ID.  If the FreeBSD RCS ID is missing, the test will
silently pass since in that case, an empty file is compared with an
empty file.  See the /start/,/end/ operator in t_indent.sh.
2021-02-21 21:26:26 +00:00
rillig 331de0363e lint: add another test for C99 initializers 2021-02-21 08:05:51 +00:00
christos 2543b856e3 Add missing compatx11file 2021-02-21 02:29:56 +00:00
christos 362817299c bump bind libraries 2021-02-19 17:06:26 +00:00
rillig 746e9c89cf lint: warn about mismatch in getopt handling 2021-02-19 12:28:56 +00:00
dbj e5062177fe Revert "distrib/amd64/cdroms: honor CDBOOTOPTIONS when installing EFI bootloader"
https://mail-index.netbsd.org/current-users/2021/02/17/msg040358.html
I think this change had unexpected side effects and needs further review
2021-02-17 08:49:54 +00:00
kre 6974a2b259 PR bin/55979
Add a sh ATF test to demonstrate a bug in the way that \0 characters
are dropped from scripts.   This test will eventually be extended to
test other potential sh script input related issues.

When initially committed, this test should fail.  It should succeed
when the fix for the PR is committed (soon).

Nb: this tests only the \0 related issues from the PR, the MSAN
detected uninitialised variable (struct field) can only be detected
by MSAN, as it has no visible impact on the operation of the shell
when running on any real (or even emulated) hardware.
(It will, however, also be fixed).
2021-02-16 09:46:24 +00:00
rillig 324a77845a distrib/sets/fmt-list: document how to sort by directory first
In lists/base/mi, the directory ./libdata/firmware contains several
subdirectories for which the entries do not look aligned right now, even
after normalizing the alignment.

This is because the indentation for a directory is not determined
globally for all directory entries from the complete file, but instead
for each group of items, after sorting, that have the same directory.
This results in several entries having only a single item per group,
such as ./libdata/firmware/nouveau, and this single item is obviously
consistently indented since all of its 1 lines are already indented to
the same depth.

One possible solution for this is to sort the entries in another order,
keeping all entries from a directory together.  This allows to quickly
see all entries from a certain directory, but on the other hand, when
adding a new directory plus some entries, the directory has to be listed
far away from its entries.  (This would be done automatically by
fmt-list though, which weakens this argument a bit.)

Another possible solution for this is to first determine the indentation
for all entries from each directory, no matter how far these entries are
apart, and then indent these entries to the common indentation.  This
may or may not help since there will still be single entries between
groups of differently indented entries.

Writing down the intuitive rules for how to align the entries properly
is a nontrivial task.  See pkglint/varalignblock, which is around 650
lines of code, plus around 4000 lines of test code.

No functional change.
2021-02-15 23:46:46 +00:00
rillig 8b7ecb733b distrib/sets/list-fmt: sort commented entries like regular entries
Seen in lists/modules/ad.aarch64, among others.  These lines are not
intended as comments but as regular entries that just happen to be
commented out.

This is the same as how pkglint treats commented variable assignments,
which take part in aligning blocks of variable assignments even though
they are syntactically comments.
2021-02-15 23:00:03 +00:00
christos e1d8873a1b new locale pages, sort 2021-02-15 14:38:06 +00:00
rillig fe211a10c7 make: add test for the variable modifier ':sh' 2021-02-14 20:16:17 +00:00
rillig ff6217c297 tests/libcurses: add test for addbytes 2021-02-13 06:29:45 +00:00
yamt 3bc7a17908 Make Raspberry PI 3 Model A+ use bwfm config for Model B+
* It works for me.

* It's what linux-firmware does.
  https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=923bfa68a1c97929652f029da699495f4ce43f14
2021-02-09 11:57:20 +00:00
martin f44c8ec769 Use the same naming scheme for install images as we use for the ISO images. 2021-02-08 19:11:41 +00:00
rillig 25d40489d1 libcurses: demonstrate bug in addch that doubles tab indentation
When adding "\t" via addch, win.curx advances by twice the spaces as
intended.  This bug was introduced somewhere between NetBSD 8.0 and 9.0.

Adding "\t" via addstr does not have this bug.

This bug causes the installation menu of sysinst to be have its menu
items indented by 16 characters instead of only 8.  This in turn
produces an ugly line break in the German translation.

The test framework for libcurses is not well integrated into ATF.
Whenever the expected output is longer than the actual output, or vice
versa, the test passes nevertheless.  This makes it necessary to
constantly look into atf-run.log to see whether the actual output is
indeed equal to the expected output, which is crucial, especially for
telling the difference between addstr and addnstr.

Reusing the .chk files for several tests is not a good idea either.  For
example, addstr and waddstr are supposed to produce the same result for
ASCII-only text, so it was tempting to use the same file.  But waddstr
seems to have a bug (maybe undefined behavior), at least waddstr returns
ERR in one case where it shouldn't.  This means that currently the
expected output (acknowledging the bug) must be different.

The "expected" test output in waddstr.chk looks completely broken, but
that's exactly what the test produces right now.
2021-02-07 01:53:54 +00:00
dbj 751da7ebca distrib/amd64/cdroms: honor CDBOOTOPTIONS when installing EFI bootloader 2021-02-06 16:02:43 +00:00
rillig 6a794143e8 make: add test for reading from make's stdin
Just out of curiosity whether that really works.  It does.
2021-02-01 20:31:41 +00:00
rillig 7773efc249 make(1): add test for combining the options -j, -n, -t
This is a preparation for refactoring the complicated condition in
JobStart.
2021-01-30 12:46:38 +00:00
rillig e15c45c68c make(1): demonstrate unnecessary creation of empty files in jobs mode 2021-01-29 22:38:17 +00:00
martin 9869002d85 Rename etc/rc.d/llvmlockdir to lvmlockdir - it has nothing to do with LLVM,
the name probably was a freudian slip of my fingers when I split that
fragment out of another rc.d script.
2021-01-26 13:31:19 +00:00
thorpej 62be88ee26 Add kmem_tmpbuf_alloc(), a utility function for allocating memory for
temporary use where allocation on the stack is desirable, but only up to
a certain size.  If the requested size fits within the specified stack
buffer, the stack buffer is returned.  Otherwise, memory is allocated with
kmem_alloc().  Add a corresponding kmem_tmpbuf_free() function that frees
the memory using kmem_free() if it is not the tempory stack buffer location.
2021-01-24 17:29:11 +00:00