Commit Graph

16980 Commits

Author SHA1 Message Date
rillig d15bc7b966 tests/indent: migrate token_question to lsym_question and extend it 2021-11-28 16:20:13 +00:00
rillig 2c9e62c12f tests/indent: migrate test token_case_label to lsym_case_label 2021-11-28 16:05:59 +00:00
rillig 1284b73f20 tests/indent: migrate token_comma to lsym_comma
The section on initializer values is new.
2021-11-28 15:26:22 +00:00
rillig f8e8fcdaab tests/indent: move test for ':' to lsym_token.c 2021-11-28 14:49:28 +00:00
rillig af3ccc52b1 indent: treat L"string" as a single token
There is never whitespace between the 'L' and the string literal or the
character constant. There might be a backslash-newline between them, but
that case was not handled before either.

No functional change.
2021-11-28 14:29:03 +00:00
ryo 2f5e5e7356 add support COMPAT_LINUX32 for aarch64 2021-11-25 03:08:03 +00:00
rillig 9ae26de163 tests/indent: add skeletons for testing tokens and parser symbols
The constants that were previously defined in indent_codes.h were a wild
mixture of tokens from the lexer and symbols on the parser stack.  They
were split into separate types starting at indent.h 1.49 from 2021-10-25
and finishing at 1.73 from 2021-10-31.

To match the tests with the new token names, the old tests need to be
migrated to the newly added tests.  This will take some time so first
add the skeletons and migrate them in smaller steps, cleaning them up
and extending them on the way.
2021-11-18 21:19:18 +00:00
rillig 796d49a188 distrib/sets: sort mi file 2021-11-18 18:14:47 +00:00
thorpej 4ae1bf140a Add a test case for backtrace(3) across a signal handler. 2021-11-18 15:03:19 +00:00
kre da8d42ff88 Adjust new libcurses test filenames to the ones atually installed.
Possibly the intent was that the names used here were correct, and
the error is where they're installed - if so, that can be corrected later.

Hopefully this will fix the remaining current build issue.
2021-11-17 04:33:26 +00:00
blymn ff475afa83 Add more check files for libcurses tests. 2021-11-16 21:05:33 +00:00
christos 18b914f008 Add man pages for posix_spawn_file_actions_add{f,}chdir from piyush 2021-11-15 14:01:50 +00:00
blymn dc4ea44a5a Add new check files for curses atf. 2021-11-15 06:34:05 +00:00
skrll 50e70fef69 Hook in riscv dtb build 2021-11-13 10:13:42 +00:00
jmcneill 771794bb54 regen 2021-11-12 21:55:46 +00:00
jmcneill bd16283be1 dtb: Re-generate set lists for 5.15 2021-11-07 17:11:05 +00:00
brad 1f3d8cb8fe Driver for the Sensirion SHT30/SHT31/SHT35 temperature and humidity
sensor such as:

https://www.adafruit.com/product/2857

This is a higher priced sensor with a lot of features, including the
ability to do sub-second periodic updates.  The driver supports
everything about the sensor except for the alert pin.
2021-11-06 13:34:39 +00:00
abs 6bf98a7596 Update some distrib X11R6 references to X11R7
Some of these scripts and notes may no longer be relevant, but now
they are at least not relevant while referring to the current X
installation directory
2021-11-02 22:02:42 +00:00
martin 0a474c24d1 Use libhack and the non-widechar hacked version of curses for
the ramdisk image to save some space.
2021-11-01 19:37:32 +00:00
thorpej 02edde8aa3 Version the sigaction(2) libc wrapper. The new version uses the "siginfo"
trampoline exclusively, thus relegating "sigcontext"-style handlers (which
have not been documented for many years now) to the dustbin of the compat
library.
2021-11-01 05:53:45 +00:00
rillig dc54a6e367 lint: warn if an enum name is used for mismatched array access
This helps to keep the enum definition and the straight-forward
implementation of a to_string or name function in sync.

The test for message 241 had to be adjusted because of exactly this bug.
That test defined a bit mask enum but accessed it like a value enum
type.
2021-10-30 22:04:42 +00:00
macallan 2aad46af06 add mgxreg.h 2021-10-29 19:12:29 +00:00
christos ec46972363 fix pic build 2021-10-27 18:19:12 +00:00
rillig 19aed58afc tests/indent: migrate remaining tests from t_indent to t_options
The test types_from_file was a subset of opt_U and thus has been
removed.
2021-10-23 21:45:14 +00:00
rillig a4008d47fd tests/indent: migrate test for '-bap -sob' to t_options 2021-10-23 20:30:23 +00:00
rillig c8dfed2873 tests/indent: migrate test for '--version' to t_options 2021-10-23 20:23:27 +00:00
rillig 0938f454d8 tests/indent: migrate test for offsetof to t_options 2021-10-23 20:17:08 +00:00
rillig 206790fc56 tests/indent: remove redundant test list_head
The test cases are already in fmt_decl.c, in old_style_definition and
LIST_HEAD.
2021-10-23 20:07:03 +00:00
rillig 4271ee73ee tests/indent: migrate f_decls to using t_options, add more tests 2021-10-23 20:01:14 +00:00
thorpej 4e78a8a8af Fix a regression introduced in kern_event.c,v 1.129 that would cause
"udata" to get clobbered on ONESHOT events, and add a unit test for it.
Reported by martin@ (manifested in his case as a KASSERT() firing when
running unit tests in COMPAT_NETBSD32).
2021-10-23 18:46:26 +00:00
thorpej d5b8844629 Add support for the EVFILT_EMPTY filter, which is activated when the
write buffer associated with the file descriptor is empty.  This is
currently implemented only for sockets, and is intended primarily to
provide visibility to applications that all previously written data
has been acknowledged by the TCP layer on the receiver.  Compatible
with the same filter in FreeBSD.
2021-10-23 01:28:33 +00:00
rillig 5cf73ea1e5 tests/indent: fix file list 2021-10-22 22:31:55 +00:00
rillig e37f4fd358 tests/indent: fix file list
lex.c got renamed to lex_ident.c.
2021-10-22 21:06:21 +00:00
kre 324c46ee63 tzdata2021e update, zoneinfo Pacific/Enderbury renamed to Pacific/Kanton
(old name retained) - so add new zone file for Pacific/Kanton
2021-10-22 21:03:01 +00:00
rillig 32fe626b4a tests/indent: migrate integer options tests to t_options 2021-10-22 20:54:36 +00:00
rillig e1e8104f85 tests/indent: migrate tests for parentheses, struct, #if, wide char 2021-10-22 19:46:41 +00:00
rillig 8c1e5e0299 tests/indent: migrate a few more tests to t_options 2021-10-22 19:27:53 +00:00
gutteridge 9164f1f294 main: add .gz extension to .img references for consistency 2021-10-20 23:45:09 +00:00
gutteridge e0b9843e36 main: add note about amd64 now having a "bios" image, too 2021-10-20 23:30:30 +00:00
gutteridge 1c32cacab5 main: simplify conditional markup 2021-10-20 23:23:59 +00:00
rillig a08a922a72 tests/indent: add test for INDENT OFF/ON comments
Just to prevent unintended side effects when fixing bugs in this area.
2021-10-19 20:20:24 +00:00
rillig ed7ca38191 tests/indent: remove redundant tests for '-ncs' and '-pcs'
These tests are already covered by opt_cs.c and opt_pcs.c.
2021-10-18 23:01:10 +00:00
rillig d543264ca7 tests/indent: condense test for indentation level, add missing files 2021-10-18 22:46:33 +00:00
rillig 2f0d7369b1 tests/indent: condense the token tests
This reduces the number of files in the test directory. It also allows
the tests to be read from top to bottom, looking at only a single file.

Since t_options.awk complains about files that don't have any test case
at all, add some test for each token kind. Most of the tests had
previously been effectively empty.
2021-10-18 22:30:34 +00:00
rillig f014d0e7c6 tests/indent: extend tests for labels, extract test driver
Having the test driver in a separate file allows to run it on its own,
as 'awk -f t_options.awk label.c'. When the test driver warns, exit 1;
this is only needed for the standalone version, when run from inside ATF
the warnings on stderr already suffice to make the test fail in the end.
2021-10-18 20:18:00 +00:00
rillig a7fa8202c8 tests/indent: consolidate tests for comments
These tests have been the motivation for t_options.sh, which allows to
run indent with various command line options on the same input, without
having to create 3 files per test case.

A test file actually contains several tests, all separated by '#indent'
directives. Isolating each of these tests is simpler than having to pick
up the corresponding sections from 3 separate files. Running indent on
each small test case isolates the test cases from each other, preventing
them to influence later test cases. Exactly this had happened when
support for C99 comments was added in March 2021, which later turned
out to be done wrong.
2021-10-18 19:36:29 +00:00
rillig 19176aa25f tests/indent: merge tests for numbers into token_ident
The previous tests 'binary' and 'float' not only test binary and
floating point numbers, making their names too specific. Move them into
a new test token_ident that covers all "identifier-like" tokens, just as
in the code.

The test cases for the option '-cs' are already covered more
systematically in opt_cs.c, so remove that test.
2021-10-18 18:10:19 +00:00
uki 8d12f8ce38 Replace @dirrm to @pkgdir in packing list of syspkg 2021-10-18 10:47:44 +00:00
jmcneill d283b04119 Background dhcpcd if ec2_init is not enabled to speed up boot. 2021-10-16 14:05:48 +00:00
rillig b7c1e178c2 tests/indent: add newly added t_options to file list 2021-10-16 09:17:21 +00:00