upstream: github.com/mirage/ca-certs
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

vlog: Add TEST_LOG env var with RUST_LOG-style syntax

Update Vlog.setup_test to:
- Default to Debug level (Alcotest captures output anyway)
- Support RUST_LOG-style syntax: TEST_LOG=level,src:level,...
Examples: TEST_LOG=warning, TEST_LOG=warning,conpool:debug

Update all test files to use Vlog.setup_test:
- ocaml-requests: all 17 test files
- ocaml-claudeio: test_claude.ml
- ca-certs: tests.ml

Document TEST_LOG in ocaml-testing skill with comparison to
other ecosystems (RUST_LOG, GOLOG_LOG_LEVEL, pytest, DEBUG).

+4 -1
+1 -1
test/dune
··· 1 1 (test 2 2 (name tests) 3 - (libraries ca-certs fmt alcotest logs.fmt)) 3 + (libraries ca-certs fmt alcotest vlog))
+3
test/tests.ml
··· 8 8 - now is set to a static date (below, can be set to other dates in individual tests) 9 9 - there's no revocation checks 10 10 *) 11 + 12 + let () = Vlog.setup_test () 13 + 11 14 let now = 12 15 match Ptime.of_date_time ((2020, 10, 11), ((16, 00, 00), 00)) with 13 16 | None -> assert false