summaryrefslogtreecommitdiff
path: root/test/run.go
Commit message (Collapse)AuthorAgeFilesLines
* test: move linkx and sinit to run.goJosh Bleecher Snyder2014-11-061-2/+0
| | | | | | | | | | | | | | | | | The remaining run-only tests will be migrated to run.go in another CL. This CL will break the build due to issues 8746 and 8806. Update issue 4139 Update issue 8746 Update issue 8806 LGTM=rsc R=rsc, bradfitz, iant CC=golang-codereviews https://codereview.appspot.com/144630044 Committer: Russ Cox <rsc@golang.org>
* test: return errors earlier in run.goJosh Bleecher Snyder2014-09-111-0/+4
| | | | | | | | | Fixes issue 8184. LGTM=bradfitz R=bradfitz CC=golang-codereviews https://codereview.appspot.com/137510043
* test/run: go fmtDavid du Colombier2014-08-011-15/+15
| | | | | | | LGTM=josharian, r R=golang-codereviews, josharian, r CC=golang-codereviews https://codereview.appspot.com/120160043
* test/run: always set goos and goarchDavid du Colombier2014-07-241-2/+11
| | | | | | | | | | | | | | | | | | Following CL 68150047, the goos and goarch variables are not currently set when the GOOS and GOARCH environment variables are not set. This made the content of the build tag to be ignored in this case. This CL sets goos and goarch to runtime.GOOS and runtime.GOARCH when the GOOS and GOARCH environments variables are not set. LGTM=aram, bradfitz R=golang-codereviews, aram, gobot, rsc, dave, bradfitz CC=golang-codereviews, rsc https://codereview.appspot.com/112490043
* test/run: limit parallelism to 1 for cross-exec buildsRuss Cox2014-05-281-5/+5
| | | | | | | | | | This matters for NaCl, which seems to swamp my 4-core MacBook Pro otherwise. It's not a correctness problem, just a usability problem. LGTM=bradfitz R=bradfitz CC=golang-codereviews https://codereview.appspot.com/98600046
* test/run: make errorcheck tests fasterRuss Cox2014-03-111-9/+36
| | | | | | | | | | | | | | | | Some of the errorcheck tests have many many identical regexps. Use a map to avoid storing the compiled form many many times in memory. Change the filterRe to a simple string to avoid the expense of those regexps as well. Cuts the time for run.go on index2.go by almost 50x. Noticed during debugging of issue 7344. LGTM=bradfitz R=bradfitz, josharian CC=golang-codereviews https://codereview.appspot.com/74380043
* all: merge NaCl branch (part 1)Dave Cheney2014-02-251-4/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See golang.org/s/go13nacl for design overview. This CL is the mostly mechanical changes from rsc's Go 1.2 based NaCl branch, specifically 39cb35750369 to 500771b477cf from https://code.google.com/r/rsc-go13nacl. This CL does not include working NaCl support, there are probably two or three more large merges to come. CL 15750044 is not included as it involves more invasive changes to the linker which will need to be merged separately. The exact change lists included are 15050047: syscall: support for Native Client 15360044: syscall: unzip implementation for Native Client 15370044: syscall: Native Client SRPC implementation 15400047: cmd/dist, cmd/go, go/build, test: support for Native Client 15410048: runtime: support for Native Client 15410049: syscall: file descriptor table for Native Client 15410050: syscall: in-memory file system for Native Client 15440048: all: update +build lines for Native Client port 15540045: cmd/6g, cmd/8g, cmd/gc: support for Native Client 15570045: os: support for Native Client 15680044: crypto/..., hash/crc32, reflect, sync/atomic: support for amd64p32 15690044: net: support for Native Client 15690048: runtime: support for fake time like on Go Playground 15690051: build: disable various tests on Native Client LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/68150047 Committer: Russ Cox <rsc@golang.org>
* cmd/go: skip writing dwarf debug info for ephemeral binariesRuss Cox2014-02-191-1/+1
| | | | | | | | | | | | | | | | | | Update issue 6853 For an ephemeral binary - one created, run, and then deleted - there is no need to write dwarf debug information, since the binary will not be used with gdb. In this case, instruct the linker not to spend time and disk space generating the debug information by passing the -w flag to the linker. Omitting dwarf information reduces the size of most binaries by 25%. We may be more aggressive about this in the future. LGTM=bradfitz, r R=r, bradfitz CC=golang-codereviews https://codereview.appspot.com/65890043
* all: fix a few spelling errors in source commentsMartin Olsson2013-12-271-1/+1
| | | | | | | | R=golang-codereviews, dave, iant CC=golang-codereviews https://codereview.appspot.com/45750044 Committer: Ian Lance Taylor <iant@golang.org>
* test/run: make -v output look like go test outputRuss Cox2013-12-101-15/+32
| | | | | | | | | Among other things, it makes it easier to scan to see what is slow. R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/40040044
* test/run: print command line for running an individual testRuss Cox2013-09-201-1/+1
| | | | | | | | Fixes issue 5087. R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/13812043
* test/run: process build tags like go/buildAnthony Martin2013-08-131-18/+69
| | | | | | | | R=bradfitz, dave, rsc, r CC=golang-dev https://codereview.appspot.com/10001045 Committer: Russ Cox <rsc@golang.org>
* test/run: use correct $PWD to make os.Getwd less expensiveRuss Cox2013-02-141-0/+18
| | | | | | | | | The commands being run are 'go tool this' and 'go tool that', and the go command will call Getwd during its init. R=golang-dev, iant CC=golang-dev https://codereview.appspot.com/7336045
* cmd/gc: reject non-Go constantsRuss Cox2013-02-011-4/+9
| | | | | | | | | | | | | Expressions involving nil, even if they can be evaluated at compile time, do not count as Go constants and cannot be used in const initializers. Fixes issue 4673. Fixes issue 4680. R=ken2 CC=golang-dev https://codereview.appspot.com/7278043
* test: add support for build tags.R?my Oudompheng2013-01-281-11/+78
| | | | | | | | | This enables a few tests that were only executed unconditionnally. R=rsc, minux.ma, bradfitz CC=golang-dev https://codereview.appspot.com/7103051
* test: limit runoutput tests on arm platformsDave Cheney2013-01-121-6/+27
| | | | | | | | | | runoutput styles tests generally consume a lot of memory. On arm platforms rotate?.go consume around 200mb each to compile, and as tests are sorted alphabetically, they all tend to run at once. This change limits the number of runoutput jobs to 2 on arm platforms. R=minux.ma, remyoudompheng, bradfitz, lucio.dere CC=golang-dev https://codereview.appspot.com/7099047
* test: add rotate.go and fixedbugs/bug313R?my Oudompheng2013-01-111-2/+0
| | | | | | | | Update issue 4139. R=golang-dev, iant CC=golang-dev https://codereview.appspot.com/7094047
* test: make rundir match compiledir/errorcheckdir.R?my Oudompheng2013-01-111-40/+20
| | | | | | | | | | This allows test/dwarf to be supported by run.go. Update issue 4139. R=golang-dev, bradfitz, iant CC=golang-dev https://codereview.appspot.com/7064067
* test/run: handle compiledir and errorcheckdir with multi-file packagesRuss Cox2013-01-021-14/+60
| | | | | | | | Multiple files with the same package all get compiled together. R=golang-dev, iant, dave CC=golang-dev https://codereview.appspot.com/7005053
* cmd/gc: fix wrong interaction between inlining and embedded builtins.R?my Oudompheng2012-12-221-37/+36
| | | | | | | | | | | | | | | | The patch makes the compile user an ordinary package-local symbol for the name of embedded fields of builtin type. This is incompatible with the fix delivered for issue 2687 (revision 3c060add43fb) but fixes it in a different way, because the explicit symbol on the field makes the typechecker able to find it in lookdot. Fixes issue 3552. R=lvd, rsc, daniel.morsing CC=golang-dev https://codereview.appspot.com/6866047
* test: run some more tests by defaultIan Lance Taylor2012-11-081-3/+0
| | | | | | R=golang-dev, remyoudompheng, iant, rsc CC=golang-dev http://codereview.appspot.com/6833043
* test: run index test by defaultIan Lance Taylor2012-11-071-4/+34
| | | | | | | | | Running this test via "bash run" uncovered three different bugs (4344, 4348, 4353). We need to run it by default. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/6832043
* test: convert tests to run.go whenever possible.R?my Oudompheng2012-10-101-5/+0
| | | | | | | | | | | The other tests either need a complex procedure or are architecture- or OS-dependent. Update issue 4139. R=golang-dev, daniel.morsing, iant CC=golang-dev http://codereview.appspot.com/6618062
* test: Make run.go's errorcheck behave like testlib.Daniel Morsing2012-10-081-1/+10
| | | | | | | | | | testlib will complain about any unmatched errors left in errorchecks while run.go will not. Fixes issue 4141. R=golang-dev, minux.ma, remyoudompheng, rsc CC=golang-dev http://codereview.appspot.com/6614060
* test: convert more tests to rundir/compiledir conventionsR?my Oudompheng2012-10-071-9/+3
| | | | | | | | Update issue 4139. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/6609051
* test/run.go: use correct executable filename on Windows, fix buildShenghou Ma2012-10-081-2/+2
| | | | | | R=golang-dev, daniel.morsing CC=golang-dev http://codereview.appspot.com/6624060
* test: use rundir and errorcheckdir for a few more tests.R?my Oudompheng2012-10-071-11/+4
| | | | | | | | Update issue 4139. R=golang-dev, minux.ma CC=golang-dev http://codereview.appspot.com/6620070
* test: Add rundir, rundircmpout and errorcheckdir commands to testlib and run.goDaniel Morsing2012-10-061-27/+116
| | | | | | | | | | | | | | rundir will compile each file in the directory in lexicographic order, link the last file as the main package and run the resulting program. rundircmpout is an related command, that will compare the output of the program to an corresponding .out file errorcheckdir will compile each file in a directory in lexicographic order, running errorcheck on each file as it compiles. All compilations are assumed to be successful except for the last file. However, If a -0 flag is present on the command, the last compilation will also be assumed successful This CL also includes a small refactoring of run.go. It was getting unwieldy and the meaning of the run commands was hidden behind argument line formatting. Fixes issue 4058. R=rsc, minux.ma, remyoudompheng, iant CC=golang-dev http://codereview.appspot.com/6554071
* test: expand run.go's errorcheck, make clear which bugs runRuss Cox2012-09-231-7/+95
| | | | | | | | | | | | | | | | Today, if run.go doesn't understand a test header line it just ignores the test, making it too easy to write or edit tests that are not actually being run. - expand errorcheck to accept flags, so that bounds.go and escape*.go can run. - create a whitelist of skippable tests in run.go; skipping others is an error. - mark all skipped tests at top of file. Update issue 4139. R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/6549054
* misc/cgo/stdio: make it work on Windows and also test itShenghou Ma2012-09-201-1/+1
| | | | | | | | | | | | | | use a function to get stdout and stderr, instead of depending on a specific libc implementation. also make test/run.go replace \r\n by \n before comparing output. Fixes issue 2121. Part of issue 1741. R=alex.brainman, rsc, r, remyoudompheng CC=golang-dev http://codereview.appspot.com/5847068
* test: change run.go to ignore \r in compiler output (fixes windows build)Alex Brainman2012-08-161-0/+3
| | | | | | R=golang-dev, dave, minux.ma, remyoudompheng CC=golang-dev http://codereview.appspot.com/6460093
* misc/cgo/{life,stdio}, test/run.go: use test/run.go to do the cgo testsShenghou Ma2012-08-071-5/+12
| | | | | | | | | Enhances test/run.go to support testing other directories Will enable stdio tests on Windows in a follow-up CL. R=golang-dev, alex.brainman, rsc CC=golang-dev http://codereview.appspot.com/6220049
* test/run: ignore all but .go file during compiledir actionAlex Brainman2012-08-061-0/+3
| | | | | | R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/6454091
* test/run.go: fix compiledir test on windowsShenghou Ma2012-07-311-2/+2
| | | | | | | | | | | we can't import "./bug0" on windows, as it will trigger "import path contains invalid character ':'" error. instead, we pass "-D." and "-I." to gc to override this behavior. this idea is due to remyoudompheng. R=golang-dev, r, alex.brainman, remyoudompheng CC=golang-dev http://codereview.appspot.com/6441074
* test: add a compiledir pattern in run.goR?my Oudompheng2012-07-301-1/+22
| | | | | | | | | | The compiledir pattern compiles all files xxx.dir/*.go in lexicographic order (which is assumed to coincide with the topological order of dependencies). R=rsc CC=golang-dev, remy http://codereview.appspot.com/6440048
* test: use testlib in a few more cases (part 2)Shenghou Ma2012-04-201-2/+22
| | | | | | | | Introduced "runoutput" cmd for running generated program R=golang-dev, iant, bradfitz, remyoudompheng CC=golang-dev http://codereview.appspot.com/5869049
* test: use testlib in a few more casesShenghou Ma2012-03-221-2/+5
| | | | | | | | Introduce a new skip cmd. R=golang-dev, bradfitz, iant, iant CC=golang-dev http://codereview.appspot.com/5868048
* test: skip . files in directoryRuss Cox2012-03-081-7/+7
| | | | | | | | Xcode generates ._foo.go files. R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/5786055
* test/run: fix buildersRuss Cox2012-03-071-1/+4
| | | | | | | | Let the outer environment filter down to the commands being run. TBR=r CC=golang-dev http://codereview.appspot.com/5758066
* test: invoke go command in run.goRuss Cox2012-03-071-55/+54
| | | | | | | | Lets us run multifile tests and tests with arguments. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5753068
* test/run: use all available cores on ARM systemShenghou Ma2012-03-071-5/+4
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/5753054
* build: use run.go for running testsRuss Cox2012-03-051-2/+5
| | | | | | | | | | | | | | Also, tweak run.go to use no more than 2x the number of CPUs, and only one on ARM. 53.85u 13.33s 53.69r ./run 50.68u 12.13s 18.85r go run run.go Fixes issue 2833. R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5754047
* test/run.go: fix buildShenghou Ma2012-03-061-1/+1
| | | | | | R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5727068
* test: add cmpout to testlibBrad Fitzpatrick2012-02-241-0/+3
| | | | | | R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5699060
* test: add temporary show_skips flag.Brad Fitzpatrick2012-02-241-6/+7
| | | | | | | | | | To find test files with legacy headers. We can remove this flag once everything is converted. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5694060
* test: rewrite test/run shell script + errchk (perl) in GoBrad Fitzpatrick2012-02-211-0/+454
This doesn't run all ~750 of the tests, but most. Progress on issue 2833 R=golang-dev, ality, rsc, r, r CC=golang-dev http://codereview.appspot.com/5625044