aboutsummaryrefslogtreecommitdiff
path: root/src/run.bash
AgeCommit message (Collapse)Author
2012-03-26run.bash: set -e in new codewalk blockRob Pike
Otherwise we won't fail if something goes wrong. This shell programming stuff is tricky. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5905062
2012-03-26run.bash: compile the codewalksRob Pike
They could be tested but that requires more than seems wise right now. Update #2648. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5908054
2012-03-21build: lengthen timeout for the lengthy runtime testShenghou Ma
To fix build on (overheated) Linux/ARM builder. R=golang-dev, dave CC=golang-dev https://golang.org/cl/5865051
2012-03-21build: unset GOPATH before testsShenghou Ma
This is because we disallow local import for non-local packages, if GOROOT happens to be under one of GOPATH, then some tests will fail to build. Fixes #3337. R=golang-dev, r CC=golang-dev https://golang.org/cl/5852043
2012-03-17build: catch API changes during buildBrad Fitzpatrick
Adds new file api/go1.txt, locking down the current API. Any changes to the API will need to update that file. run.bash (but not make.bash, or Windows) will check for accidental API changes. R=golang-dev, dsymonds, rsc CC=golang-dev https://golang.org/cl/5820070
2012-03-10cmd/dist, cmd/go: move CGO_ENABLED from 'go tool dist env' to 'go env'Shenghou Ma
So that we don't duplicate knowledge about which OS/ARCH combination supports cgo. Also updated src/run.bash and src/sudo.bash to use 'go env'. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5792055
2012-03-08misc/cgo: re-enable testsoFrancisco Souza
The test.bash file generates .so file using gcc, builds the executable using the go tool and then run it with the $LD_LIBRARY_PATH variable pointing to the directory where the .so file lives. Fixes #2982. R=rsc, remyoudompheng CC=golang-dev https://golang.org/cl/5788043
2012-03-08doc: fix freebsd buildShenghou Ma
Also rename it to test.bash, for naming consistency. R=golang-dev, r CC=golang-dev https://golang.org/cl/5784045
2012-03-08build: re-enable some broken tests in run.bashShenghou Ma
Updates #2982. R=rsc, rsc CC=golang-dev https://golang.org/cl/5759064
2012-03-07undo CL 5754063 / e23b66fcfc94Russ Cox
Does not actually test so files. ««« original CL description misc/cgo: re-enable testso Also enabled it for darwin. R=rsc CC=golang-dev https://golang.org/cl/5754063 »»» R=golang-dev, minux.ma, r, f CC=golang-dev https://golang.org/cl/5756075
2012-03-07misc/cgo: re-enable testsoFrancisco Souza
Also enabled it for darwin. R=rsc CC=golang-dev https://golang.org/cl/5754063
2012-03-06misc/cgo: re-enable some testsRuss Cox
The testso directory still needs to be enabled. R=golang-dev, r CC=golang-dev https://golang.org/cl/5731048
2012-03-05build: use run.go for running testsRuss Cox
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 #2833. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5754047
2012-03-05runtime: wait for main goroutine before setting GOMAXPROCS.Rémy Oudompheng
Fixes #3182. R=golang-dev, dvyukov, rsc CC=golang-dev, remy https://golang.org/cl/5732057
2012-03-05doc/progs: update for go 1Rob Pike
Fixes #3076. R=golang-dev, dsymonds, r CC=golang-dev https://golang.org/cl/5727056
2012-02-13cmd/dist: cross-compiling fixesRuss Cox
This CL makes it possible to run make.bash with GOOS and GOARCH set to something other than the native host GOOS and GOARCH. As part of the CL, the tool directory moves from bin/tool/ to pkg/tool/goos_goarch where goos and goarch are the values for the host system (running the build), not the target. pkg/ is not technically appropriate, but C objects are there now tool (pkg/obj/) so this puts all the generated binaries in one place (rm -rf $GOROOT/pkg cleans everything). Including goos_goarch in the name allows different systems to share a single $GOROOT on a shared file system. Fixes #2920. R=golang-dev, r CC=golang-dev https://golang.org/cl/5645093
2012-02-04build: use cmd/distRuss Cox
R=bradfitz, ality, r, r, iant, mikioh.mikioh CC=golang-dev https://golang.org/cl/5615058
2012-02-03build: crash if test runs foreverAlex Brainman
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5604051
2012-01-30build: remove Make.pkg, Make.toolRuss Cox
Consequently, remove many package Makefiles, and shorten the few that remain. gomake becomes 'go tool make'. Turn off test phases of run.bash that do not work, flagged with $BROKEN. Future CLs will restore these, but this seemed like a big enough CL already. R=golang-dev, r CC=golang-dev https://golang.org/cl/5601057
2012-01-30run.bash: s/make/gomakeRob Pike
attempt to fix freebsd build TBR=rsc R=rsc CC=golang-dev https://golang.org/cl/5576077
2012-01-30go: move compilers into the go-tool directoryRob Pike
Also delete gotest, since it's messy to fix and slated for deletion anyway. A couple of things outside src can't be tested any more. "go test" will be fixed and these tests will be re-enabled. They're noisy for now. Fixes #284. R=rsc CC=golang-dev https://golang.org/cl/5598049
2012-01-20misc/cgo/test: make tests run on windowsAlex Brainman
- use proper Win64 gcc calling convention when calling initcgo on amd64 - increase g0 stack size to 64K on amd64 to make it the same as 386 - implement C.sleep - do not use C.stat, since it is renamed to C._stat by mingw - use fopen to implement TestErrno, since C.strtol always succeeds on windows - skip TestSetEnv on windows, because os.Setenv sets windows process environment, while C.getenv inspects internal C runtime variable instead R=golang-dev, vcc.163, rsc CC=golang-dev https://golang.org/cl/5500094
2012-01-09cmd/go: add -v flag to build and installRuss Cox
The -v flag prints the names of packages as they are built/installed. Use -v in make.bash/run.bash to avoid a silent pause during the build while Go code is being compiled. R=golang-dev, r CC=golang-dev https://golang.org/cl/5532055
2011-12-21cmd/go: many improvementsRuss Cox
* correct dependency calculations * comment meaning of action fields * new alias "std" like "all" but standard packages only * add -o flag to 'go build' * set up for parallel build (still serial) * understand that import "C" depends on cgo, runtime/cgo R=golang-dev, mikioh.mikioh CC=golang-dev https://golang.org/cl/5502055
2011-12-21build: rewrite to use bash time builtinRuss Cox
Should help windows/amd64 R=adg CC=golang-dev https://golang.org/cl/5500058
2011-12-20build: fix the build with USE_GO_TOOL=falseBrad Fitzpatrick
R=golang-dev, r, rsc CC=golang-dev https://golang.org/cl/5502051
2011-12-20build: use go command during buildRuss Cox
If something goes wrong, it should suffice to set USE_GO_TOOL=false in env.bash to fall back to the makefiles. I will delete the makefiles in January. R=golang-dev, r CC=golang-dev https://golang.org/cl/5502047
2011-12-15test/bench/go1: first draft of Go 1 benchmark suiteRuss Cox
I have included a few important microbenchmarks, but the overall intent is to have mostly end-to-end benchmarks timing real world operations. The jsondata.go file is a summary of agl's activity in various open source repositories. It gets used as test data for many of the benchmarks. Everything links into one binary (even the test data) so that it is easy to run the benchmarks on many computers: there is just one file to copy around. R=golang-dev, r, bradfitz, adg, r CC=golang-dev https://golang.org/cl/5484071
2011-12-13test/bench: move to test/bench/shootoutRuss Cox
R=golang-dev, r, gri, bradfitz CC=golang-dev https://golang.org/cl/5487067
2011-12-09misc/cgo/testso: do not leave out file behindAlex Brainman
R=golang-dev, dvyukov CC=golang-dev https://golang.org/cl/5461044
2011-11-22cgo: add support for callbacks from dynamic librariesDmitriy Vyukov
R=golang-dev, rsc CC=golang-dev, mpimenov https://golang.org/cl/5375042
2011-10-12runtime: fix memory leak in parallel garbage collectorRuss Cox
The work buffer management used by the garbage collector during parallel collections leaks buffers. This CL tests for and fixes the leak. R=golang-dev, dvyukov, r CC=golang-dev https://golang.org/cl/5254059
2011-10-11ebnf, ebnflint: move under expRobert Griesemer
pkg/ebnf -> pkg/exp/ebnf cmd/ebnflint -> pkg/exp/ebnflint R=golang-dev, r CC=golang-dev https://golang.org/cl/5188042
2011-09-26test: disable sigchld test on WindowsRuss Cox
Alex Brainman reports that this is the only test that keeps us from running test/run. R=alex.brainman, lucio.dere, bradfitz, hectorchu CC=golang-dev https://golang.org/cl/4777043
2011-08-10build: allow builds without cgoRuss Cox
R=bradfitz, dsymonds, fshahriar CC=golang-dev https://golang.org/cl/4859043
2011-07-13exp/eval, exp/ogle: remove packages eval and ogleRobert Griesemer
An externally maintained version of exp/eval can be found at: https://bitbucket.org/binet/go-eval/ . R=golang-dev, r, rsc CC=golang-dev https://golang.org/cl/4695047
2011-06-30run.bash: small fixAlex Brainman
Fixes #2025. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4636075
2011-06-21godefs: remove test from buildRuss Cox
The test is only defined on darwin/amd64, and it fails with recent versions of Xcode, which do not support -gstabs+ debugging output. At some point godefs will have to be replaced, perhaps merged with cgo. Godefs is not needed during builds anyway (its output files are checked into the repository in src/pkg/runtime), so its failure on the newer Xcode is a distraction from an otherwise usable build. Disable the test. Fixes #1985. R=golang-dev, gri, robert.hencke, r CC=golang-dev https://golang.org/cl/4638053
2011-06-20godefs: rudimentary testsRobert Hencke
currently only defined for darwin R=golang-dev, r CC=golang-dev https://golang.org/cl/4528123
2011-04-27tutorial: replace the forever loops with finite counts in sieve programs.Rob Pike
Fixes #1742. I hope. Also this picks up an update to go_tutorial.html that should already have happened. R=brainman, rsc, peterGo CC=golang-dev https://golang.org/cl/4452050
2011-04-20run.bash: remove redundant rebuildsRuss Cox
R=r CC=golang-dev https://golang.org/cl/4449041
2011-04-13fix build: disable gofmt test script, enable gotest testing insteadRobert Griesemer
R=rsc CC=golang-dev https://golang.org/cl/4403045
2011-04-08test/bench: enable build and test on WindowsAlex Brainman
R=golang-dev, rsc1 CC=golang-dev https://golang.org/cl/4366043
2011-04-08misc/cgo/life: enable build and test on WindowsAlex Brainman
R=golang-dev, rsc1 CC=golang-dev, vcc https://golang.org/cl/4374044
2011-03-27build: add all-qemu.bash, handful of arm fixesRuss Cox
R=r CC=golang-dev https://golang.org/cl/4313051
2011-03-25testing: set up structure for faster testing using the new -test.short flag.Rob Pike
New make target "testshort" runs "gotest -test.short" and is invoked by run.bash, which is invoked by all.bash. Use -test.short to make one package (crypto ecdsa) run much faster. More changes to come. Once this is in, I will update the long-running tests to use the new flag. R=rsc CC=golang-dev https://golang.org/cl/4317043
2011-03-11build: run gotest in misc/cgo/testRuss Cox
R=golang-dev, iant, r CC=golang-dev https://golang.org/cl/4239079
2011-03-07doc/codelab/wiki: include into windows buildAlex Brainman
R=adg, rsc CC=Joe Poirier, golang-dev https://golang.org/cl/4257052
2011-02-14build: run test/ directory firstRuss Cox
R=adg, r CC=golang-dev https://golang.org/cl/4183047
2011-02-09run.bash: must make codelab before we can test it.Rob Pike
this will break the build, but it's already silently broken. R=rsc CC=golang-dev https://golang.org/cl/4168041