plugeth/build
Martin Holst Swende 58ae1df684
cmd/geth: test for logging-output (#28373)
This PR is a bit in preparation for the slog work in #28187 .

Our current test re logging mostly test the internals, but we have no real end-to-end test of the logging output. This PR introduces a simple reexec-based log tester. This also relies upon a special mode in geth, which can be made to eject a set of predefined log messages (only available if the build-tag `integrationtests` is used

e.g. go run --tags=integrationtests ./cmd/geth --log.format terminal logtest

While working on this, I also noticed a quirk in the setup: when geth was configured to use a file output, then two separate handlers were used (one handler for the file, one handler for the console). Using two separate handlers means that two formatters are used, thus the formatting of any/all records happened twice. This PR changes the mechanism to use two separate io.Writers instead, which is both more optimal and fixes a bug which occurs due to a global statefulness in the formatter.
2023-10-25 17:57:12 +02:00
..
bot build/bot: create .ssh directory in ppa-build.sh (#24922) 2022-05-20 17:25:17 +02:00
deb/ethereum go.mod, build: upgrade c-kzg-4844 (#27907) 2023-08-12 00:21:46 +02:00
tools accounts, build, mobile: remove Andriod and iOS support 2023-02-03 12:29:07 +02:00
checksums.txt crypto/kzg4844: use the new trusted setup file and format (#28383) 2023-10-22 16:05:04 +02:00
ci-notes.md travis, build, internal: use own Go bundle for PPA builds (#20240) 2019-11-05 15:32:42 +02:00
ci.go cmd/geth: test for logging-output (#28373) 2023-10-25 17:57:12 +02:00
goimports.sh build: make build/goimports.sh more potable 2018-06-26 22:04:27 +09:00
nsis.envvarupdate.nsh build: fix windows installer build for NSIS v3.05 (#22821) 2021-05-05 12:19:51 +02:00
nsis.geth.nsi build: safe update of PATH on Windows (#3419) 2016-12-11 00:01:57 +01:00
nsis.install.nsh build: fix CLI params for windows LNK files (#21055) 2020-05-11 10:05:37 +03:00
nsis.pathupdate.nsh build: safe update of PATH on Windows (#3419) 2016-12-11 00:01:57 +01:00
nsis.simplefc.dll build: NSIS based Windows installer (#3240) 2016-11-08 22:55:39 +01:00
nsis.simplefc.source.zip build: NSIS based Windows installer (#3240) 2016-11-08 22:55:39 +01:00
nsis.uninstall.nsh build: safe update of PATH on Windows (#3419) 2016-12-11 00:01:57 +01:00
travis_keepalive.sh travis.yml: add race detector job for Swarm (#19148) 2019-02-22 14:20:21 +01:00
update-license.go build: use slices package for sorting (#27486) 2023-06-18 15:09:00 +02:00