Commit Graph

9534 Commits

Author SHA1 Message Date
martin
213b42bc0d Mark resize debug info as obsolete 2020-12-29 12:43:36 +00:00
rillig
c182aecfbc make(1): add test that explains how variables are exported
Exporting the variables at the right time and with the correct values is
a subtle issue.  The current implementation carefully marks variables as
ready to be exported, then exports them and at the same time tries to
export as few variables as possible, to avoid memory leaks.  This test
describes and explains how all this works in detail.

This test also justifies that the call to Var_ReexportVars happens in
the make process itself, not in the child processes, no matter whether
these are created with vfork or (only theoretically) with plain fork.
This has changed in compat.c 1.217, job.c 1.390 and main.c 1.504 from
2020-12-27.
2020-12-29 01:45:06 +00:00
martin
6f4eaa13f9 Add resize 2020-12-28 14:28:54 +00:00
rillig
b435f5a0e0 lint1: add forgotten tests 2020-12-28 12:47:39 +00:00
rillig
b94ceb4d46 lint1: fix file list for recently added test output 2020-12-28 11:40:54 +00:00
reinoud
ef6e52b452 Import Xterm's resize(1) for querying (x)terminal sizes in base for headless
clients
2020-12-27 21:13:17 +00:00
rillig
0134a24c0d make(1): add test for expansion errors in jobs mode
Since compat mode and jobs mode are implemented separately and vary in
lots of small details, each of them needs to be tested on its own.
2020-12-27 05:11:40 +00:00
rillig
8dfbff51e9 make(1): add test for null byte in .for loop body 2020-12-19 16:00:17 +00:00
rillig
e8319c8295 make(1): demonstrate wrong line numbers in .for loops, since 2007-01-01 2020-12-19 12:14:59 +00:00
rillig
22b3e4f8b0 make(1): add test for parsing the end of a condition 2020-12-14 20:23:49 +00:00
rillig
6d3aa3c8ae make(1): demonstrate wrong error handling in compat mode 2020-12-13 17:44:31 +00:00
rillig
7b010c3449 make(1): add test for misspelled directives
This test allows the other directive-* tests to focus on the purpose of
the individual directive, allowing these tests to continue after
parsing, without errors.
2020-12-13 00:46:25 +00:00
roy
fccfea72eb t_ossaudio was installed for clang, so remove gcc marking 2020-12-13 00:37:43 +00:00
rillig
e667d310c7 make(1): add test for a shell with error control
None of the predefined shells has error control, and the corresponding
code had not been covered by the existing unit tests.
2020-12-12 15:06:11 +00:00
pgoyette
803bf850bc Also add the new test to the sets lists. 2020-12-12 03:03:14 +00:00
rillig
57bbdba1d0 make(1): test all combinations of switches for running commands
The code in JobPrintSpecials is rather complicated and contains
surprising interaction between some of the switches.

To see the exact effects of the switches, record the current state and
its output, to prevent accidental breakage during the upcoming
refactorings.
2020-12-10 17:06:13 +00:00
rillig
c179784be7 make(1): add test for the -n option combined with RunFlags 2020-12-09 07:57:51 +00:00
rillig
32df21f05a make(1): add test for combining -j1 with -n 2020-12-09 00:25:00 +00:00
rillig
1e55774c0d make(1): add tests and tutorial for the ?= assignment operator 2020-12-07 21:35:43 +00:00
rillig
bcc992c684 make(1): add new unit test opt-keep-going-multiple.mk to file lists 2020-12-07 07:51:25 +00:00
rillig
abd175cf7f make(1): add test for .END after failed main node 2020-12-06 21:22:04 +00:00
christos
a7527d8eca bump libssh 2020-12-04 18:43:47 +00:00
christos
3b4019a6e5 new libfido2 2020-12-04 18:27:18 +00:00
rillig
583d8bd566 make(1): add test and tutorial for indirect modifiers 2020-12-01 22:16:36 +00:00
rillig
71bfc5d9d5 make(1): add test for the special .MAKEFLAGS variable 2020-12-01 20:37:30 +00:00
rillig
c6ea76207f make(1): add tests for suppressing "stopped in"
These tests demonstrate the unwanted behavior described in PR bin/55578
and PR bin/55832.
2020-12-01 17:50:04 +00:00
sjg
25f0e79eda Added meta-cmd-cmp 2020-11-30 21:36:52 +00:00
rillig
2e03ddb408 make(1): add test for bug in error handling of .BEGIN in -k mode 2020-11-24 19:02:59 +00:00
rillig
b4eade63ff make(1): add test for error in dependency of .END node in -k mode 2020-11-24 17:59:42 +00:00
rillig
c0b7bdab99 make(1): add test for missing "Stop" after error in .END 2020-11-24 15:36:51 +00:00
rillig
69e871d024 make(1): test that .PHONY targets are not resolved using suffix rules 2020-11-23 15:00:32 +00:00
martin
9b9b5e208c Add /dev/pts as standard mountpoint for a ptyfs. 2020-11-23 12:41:47 +00:00
rillig
fde9046190 make(1): add test for debug output from transformation rules 2020-11-22 23:45:20 +00:00
rillig
6bfc267595 make(1): add another unit test for suffix handling 2020-11-22 20:36:17 +00:00
rillig
43adeab6ec make(1): document the selection of the main target 2020-11-22 19:37:27 +00:00
rillig
27b9e4c5e6 make(1): add test for incomplete transformation rule 2020-11-21 10:32:42 +00:00
rillig
f40c84018a make(1): add test for self-referencing suffix rule
Just to ensure that make doesn't run into an endless loop.
2020-11-16 15:12:16 +00:00
rillig
0bd6f1df40 make(1): add test for the -t option in jobs mode 2020-11-14 15:35:20 +00:00
sjg
10eef09835 Add new make unit-test 2020-11-13 17:19:06 +00:00
maya
b8e4133b8f Hook up font-liberation-ttf to the build.
license ok'd by board.
2020-11-12 22:28:02 +00:00
christos
80a97e389b Add /var/games/warp 2020-11-11 19:56:09 +00:00
rillig
e0aa1a749c make(1): add more tests for parsing .if directives
The details of parsing are quite tricky and not documented in the manual
page.  Record the current behavior to be a little safer in future
refactorings.
2020-11-10 22:23:37 +00:00
kamil
994be4e978 Reintroduce the support of MKCATPAGES
Requested by <mrg>
2020-11-10 21:47:40 +00:00
kamil
2710a02cd6 Integrate Warp Kit into the NetBSD build
Fix the build and make it install and run with minimal required changes.
2020-11-10 08:49:08 +00:00
rillig
d5ad895255 make(1): move test for != assignments to var-op-shell 2020-11-09 20:39:46 +00:00
kamil
f3b4abb0cd Remove catman pages support
No longer relevant after the MKCATPAGES removal.
2020-11-09 01:05:51 +00:00
rillig
99b4cf5a91 make(1): in lint mode, only allow '&&' and '||', not '&' and '|'
These variants of the condition operators are neither documented in the
manual page nor are they used in practice.
2020-11-08 23:54:28 +00:00
kamil
f94f87c83f Move the html9/psref* files from comp-sys-catman to comp-sys-htmlman 2020-11-08 16:47:59 +00:00
rillig
fc3bb0099a make(1): add test for expanding variable expressions 2020-11-08 16:44:47 +00:00
kamil
4045d62396 Remove the support for MKCATPAGES
It was optional since 1999 and disabled by default since 2012.

Proposed on tech-userlevel@.
2020-11-08 14:52:35 +00:00