OS Manuals

/usr/bin/twt

From twt 0.0.58-r0 (os), captured 2026-11-05 by running twt --help (exit 0). permalink

Also provided by 1 other package version
Usage of /usr/bin/twt:
  -dir string
    	path to directory with scripts to run
  -flaky
    	run known-flaky tests too
  -script string
    	path to script to run, will take precedence over dir
  -test.artifacts
    	store test artifacts in test.,outputdir
  -test.bench regexp
    	run only benchmarks matching regexp
  -test.benchmem
    	print memory allocations for benchmarks
  -test.benchtime d
    	run each benchmark for duration d or N times if `d` is of the form Nx (default 1s)
  -test.blockprofile file
    	write a goroutine blocking profile to file
  -test.blockprofilerate rate
    	set blocking profile rate (see runtime.SetBlockProfileRate) (default 1)
  -test.count n
    	run tests and benchmarks n times (default 1)
  -test.coverprofile file
    	write a coverage profile to file
  -test.cpu list
    	comma-separated list of cpu counts to run each test with
  -test.cpuprofile file
    	write a cpu profile to file
  -test.failfast
    	do not start new tests after the first test failure
  -test.fullpath
    	show full file names in error messages
  -test.fuzz regexp
    	run the fuzz test matching regexp
  -test.fuzzcachedir string
    	directory where interesting fuzzing inputs are stored (for use only by cmd/go)
  -test.fuzzminimizetime value
    	time to spend minimizing a value after finding a failing input (default 1m0s)
  -test.fuzztime value
    	time to spend fuzzing; default is to run indefinitely
  -test.fuzzworker
    	coordinate with the parent process to fuzz random values (for use only by cmd/go)
  -test.gocoverdir string
    	write coverage intermediate files to this directory
  -test.list regexp
    	list tests, examples, and benchmarks matching regexp then exit
  -test.memprofile file
    	write an allocation profile to file
  -test.memprofilerate rate
    	set memory allocation profiling rate (see runtime.MemProfileRate)
  -test.mutexprofile string
    	write a mutex contention profile to the named file after execution
  -test.mutexprofilefraction int
    	if >= 0, calls runtime.SetMutexProfileFraction() (default 1)
  -test.outputdir dir
    	write profiles to dir
  -test.paniconexit0
    	panic on call to os.Exit(0)
  -test.parallel n
    	run at most n tests in parallel (default 64)
  -test.run regexp
    	run only tests and examples matching regexp
  -test.short
    	run smaller test suite to save time
  -test.shuffle string
    	randomize the execution order of tests and benchmarks (default "off")
  -test.skip regexp
    	do not list or run tests matching regexp
  -test.testlogfile file
    	write test action log to file (for use only by cmd/go)
  -test.timeout d
    	panic test binary after duration d (default 0, timeout disabled)
  -test.trace file
    	write an execution trace to file
  -test.v
    	verbose: print additional output
  -testwork

  -update
    	update relevant golden files
Options (39)
OptionDescriptionSource
-dir stringpath to directory with scripts to runhelp
-flakyrun known-flaky tests toohelp
-script stringpath to script to run, will take precedence over dirhelp
-test.artifactsstore test artifacts in test.,outputdirhelp
-test.bench regexprun only benchmarks matching regexphelp
-test.benchmemprint memory allocations for benchmarkshelp
-test.benchtime drun each benchmark for duration d or N times if `d` is of the form Nx (default 1s)help
-test.blockprofile filewrite a goroutine blocking profile to filehelp
-test.blockprofilerate rateset blocking profile rate (see runtime.SetBlockProfileRate) (default 1)help
-test.count nrun tests and benchmarks n times (default 1)help
-test.coverprofile filewrite a coverage profile to filehelp
-test.cpu listcomma-separated list of cpu counts to run each test withhelp
-test.cpuprofile filewrite a cpu profile to filehelp
-test.failfastdo not start new tests after the first test failurehelp
-test.fullpathshow full file names in error messageshelp
-test.fuzz regexprun the fuzz test matching regexphelp
-test.fuzzcachedir stringdirectory where interesting fuzzing inputs are stored (for use only by cmd/go)help
-test.fuzzminimizetime valuetime to spend minimizing a value after finding a failing input (default 1m0s)help
-test.fuzztime valuetime to spend fuzzing;help
-test.fuzzworkercoordinate with the parent process to fuzz random values (for use only by cmd/go)help
-test.gocoverdir stringwrite coverage intermediate files to this directoryhelp
-test.list regexplist tests, examples, and benchmarks matching regexp then exithelp
-test.memprofile filewrite an allocation profile to filehelp
-test.memprofilerate rateset memory allocation profiling rate (see runtime.MemProfileRate)help
-test.mutexprofile stringwrite a mutex contention profile to the named file after executionhelp
-test.mutexprofilefraction intif >= 0, calls runtime.SetMutexProfileFraction() (default 1)help
-test.outputdir dirwrite profiles to dirhelp
-test.paniconexit0panic on call to os.Exit(0)help
-test.parallel nrun at most n tests in parallel (default 64)help
-test.run regexprun only tests and examples matching regexphelp
-test.shortrun smaller test suite to save timehelp
-test.shuffle stringrandomize the execution order of tests and benchmarks (default "off")help
-test.skip regexpdo not list or run tests matching regexphelp
-test.testlogfile filewrite test action log to file (for use only by cmd/go)help
-test.timeout dpanic test binary after duration d (default 0, timeout disabled)help
-test.trace filewrite an execution trace to filehelp
-test.vverbose: print additional outputhelp
-testworkhelp
-updateupdate relevant golden fileshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.