mirror of
https://github.com/golang/go.git
synced 2026-01-29 07:02:05 +03:00
Conflicts: - src/cmd/compile/internal/typecheck/builtin.go Merge List: + 2025-11-20ca37d24e0bnet/http: drop unused "broken" field from persistConn + 2025-11-204b740af56acmd/internal/obj/x86: handle global reference in From3 in dynlink mode + 2025-11-20790384c6c2spec: adjust rule for type parameter on RHS of alias declaration + 2025-11-20a49b0302d0net/http: correctly close fake net.Conns + 2025-11-2032f5aadd2fcmd/compile: stack allocate backing stores during append + 2025-11-20a18aff8057runtime: select GC mark workers during start-the-world + 2025-11-20829779f4feruntime: split findRunnableGCWorker in two + 2025-11-20ab59569099go/version: use "custom" as an example of a version suffix + 2025-11-19c4bb9653bacmd/compile: Implement LoweredZeroLoop with LSX Instruction on loong64 + 2025-11-197f2ae21fb4cmd/internal/obj/loong64: add MULW.D.W[U] instructions + 2025-11-19a2946f2385crypto: add Encapsulator and Decapsulator interfaces + 2025-11-196b83bd7146crypto/ecdh: add KeyExchanger interface + 2025-11-194fef9f8b55go/types, types2: fix object path for grouped declaration statements + 2025-11-1933529db142spec: escape double-ampersands + 2025-11-19dc42565a20cmd/compile: fix control flow for unsigned divisions proof relations + 2025-11-19e64023dcbfcmd/compile: cleanup useless if statement in prove + 2025-11-192239520d1ctest: go fmt prove.go tests + 2025-11-19489d3dafb7math: switch s390x math.Pow to generic implementation + 2025-11-188c41a482f9runtime: add dlog.hexdump + 2025-11-18e912618bd2runtime: add hexdumper + 2025-11-182cf9d4b62fRevert "net/http: do not discard body content when closing it within request handlers" + 2025-11-184d0658bb08cmd/compile: prefer fixed registers for values + 2025-11-18ba634ca5c7cmd/compile: fold boolean NOT into branches + 2025-11-188806d53c10cmd/link: align sections, not symbols after DWARF compress + 2025-11-18c93766007druntime: do not print recovered when double panic with the same value + 2025-11-189859b43643cmd/asm,cmd/compile,cmd/internal/obj/riscv: use compressed instructions on riscv64 + 2025-11-17b9ef0633f6cmd/internal/sys,internal/goarch,runtime: enable the use of compressed instructions on riscv64 + 2025-11-17a087dea869debug/elf: sync new loong64 relocation types up to LoongArch ELF psABI v20250521 + 2025-11-17e1a12c781fcmd/compile: use 32x32->64 multiplies on arm64 + 2025-11-176caab99026runtime: relax TestMemoryLimit on darwin a bit more + 2025-11-17eda2e8c683runtime: clear frame pointer at thread entry points + 2025-11-176919858338runtime: rename findrunnable references to findRunnable + 2025-11-178e734ec954go/ast: fix BasicLit.End position for raw strings containing \r + 2025-11-17592775ec7dcrypto/mlkem: avoid a few unnecessary inverse NTT calls + 2025-11-17590cf18dafcrypto/mlkem/mlkemtest: add derandomized Encapsulate768/1024 + 2025-11-17c12c337099cmd/compile: teach prove about subtract idioms + 2025-11-17bc15963813cmd/compile: clean up prove pass + 2025-11-171297fae708go/token: add (*File).End method + 2025-11-1765c09eafdfruntime: hoist invariant code out of heapBitsSmallForAddrInline + 2025-11-17594129b80cinternal/runtime/maps: update doc for table.Clear + 2025-11-15c58d075e9acrypto/rsa: deprecate PKCS#1 v1.5 encryption + 2025-11-14d55ecea9e5runtime: usleep before stealing runnext only if not in syscall + 2025-11-14410ef44f00cmd: update x/tools to 59ff18c + 2025-11-1450128a2154runtime: support runtime.freegc in size-specialized mallocs for noscan objects + 2025-11-14c3708350a4cmd/go: tests: rename git-min-vers->git-sha256 + 2025-11-14aea881230dstd: fix printf("%q", int) mistakes + 2025-11-14120f1874efruntime: add more precise test of assist credit handling for runtime.freegc + 2025-11-14fecfcaa4f6runtime: add runtime.freegc to reduce GC work + 2025-11-145a347b775eruntime: set GOEXPERIMENT=runtimefreegc to disabled by default + 2025-11-141a03d0db3fruntime: skip tests for GOEXPERIMENT=arenas that do not handle clobberfree=1 + 2025-11-14cb0d9980f5net/http: do not discard body content when closing it within request handlers + 2025-11-1403ed43988fcmd/compile: allow multi-field structs to be stored directly in interfaces + 2025-11-141bb1f2bf0cruntime: put AddCleanup cleanup arguments in their own allocation + 2025-11-149fd2e44439runtime: add AddCleanup benchmark + 2025-11-1480c91eedbbruntime: ensure weak handles end up in their own allocation + 2025-11-147a8d0b5d53runtime: add debug mode to extend _Grunning-without-P windows + 2025-11-14710abf74dainternal/runtime/cgobench: add Go function call benchmark for comparison + 2025-11-14b24aec598bdoc, cmd/internal/obj/riscv: document the riscv64 assembler + 2025-11-14a0e738c657cmd/compile/internal: remove incorrect riscv64 SLTI rule + 2025-11-142cdcc4150bcmd/compile: fold negation into multiplication + 2025-11-14b57962b7c7bytes: fix panic in bytes.Buffer.Peek + 2025-11-140a569528eacmd/compile: optimize comparisons with single bit difference + 2025-11-141e5e6663e9cmd/compile: remove unnecessary casts and types from riscv64 rules + 2025-11-14ddd8558e61go/types, types2: swap object.color for Checker.objPathIdx + 2025-11-149daaab305ccmd/link/internal/ld: make runtime.buildVersion with experiments valid + 2025-11-13d50a571ddftest: fix tests to work with sizespecializedmalloc turned off + 2025-11-13704f841eabcmd/trace: annotation proc start/stop with thread and proc always + 2025-11-1317a02b9106net/http: remove unused isLitOrSingle and isNotToken + 2025-11-13ff61991aedcmd/go: fix flaky TestScript/mod_get_direct + 2025-11-13129d0cb543net/http/cgi: accept INCLUDED as protocol for server side includes + 2025-11-1377c5130100go/types: minor simplification + 2025-11-137601cd3880go/types: generate cycles.go + 2025-11-137a372affd9go/types, types2: rename definedType to declaredType and clarify docs Change-Id: Ibaa9bdb982364892f80e511c1bb12661fcd5fb86
The test directory contains tests of the Go tool chain and runtime. It includes black box tests, regression tests, and error output tests. They are run as part of all.bash.
To run just these tests, execute:
../bin/go test cmd/internal/testdir
To run just tests from specified files in this directory, execute:
../bin/go test cmd/internal/testdir -run='Test/(file1.go|file2.go|...)'
Standard library tests should be written as regular Go tests in the appropriate package.
The tool chain and runtime also have regular Go tests in their packages. The main reasons to add a new test to this directory are:
- it is most naturally expressed using the test runner; or
- it is also applicable to
gccgoand other Go tool chains.