summaryrefslogtreecommitdiff
path: root/src/run.bash
Commit message (Collapse)AuthorAgeFilesLines
...
* build: skip benchmarks on OpenBSDRuss Cox2013-03-151-0/+3
| | | | | | | | They are making the build die. I want to be able to see that everything else is okay. R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/7546049
* cmd/ld, runtime/cgo: allow a symbol to be both cgo_export and cgo_import.Shenghou Ma2013-03-111-1/+0
| | | | | | | | Fixes issue 4878. R=golang-dev, rsc CC=golang-dev https://codereview.appspot.com/7420052
* build: enable host linking test for all BSDsRuss Cox2013-03-111-1/+1
| | | | | | | | Let's just see what breaks. R=golang-dev, bradfitz, adg CC=golang-dev https://codereview.appspot.com/7693043
* cmd/ld: darwin support for host linkingRuss Cox2013-03-111-0/+4
| | | | | | R=ken2 CC=golang-dev https://codereview.appspot.com/7626045
* runtime/cgo: fix arm build, re-enable testRuss Cox2013-03-011-1/+0
| | | | | | | | Fixes issue 4961. R=golang-dev, r, minux.ma CC=golang-dev https://codereview.appspot.com/7443048
* build: skip cgo test on armRuss Cox2013-03-011-0/+1
| | | | | | | | Update issue 4961. R=golang-dev CC=golang-dev https://codereview.appspot.com/7451044
* build: disable cgo test on openbsdRuss Cox2013-03-011-0/+1
| | | | | | | | Update issue 4878. R=golang-dev CC=golang-dev https://codereview.appspot.com/7450048
* cmd/cgo, cmd/dist, cmd/go: cgo with clang fixesShenghou Ma2013-02-231-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Workaround the smart clang diagnostics with -Qunused-arguments: clang: error: argument unused during compilation: '-XXX' 2. if "clang -print-libgcc-file-name" returns non-absolute path, don't provide that on linker command line. 3. Fix dwarf.PtrType.Size() in cmd/cgo as clang doesn't generate DW_AT_byte_size for pointer types. 4. Workaround warnings for -Wno-unneeded-internal-declaration with -Wno-unknown-warning-option. 5. Add -Wno-unused-function. 6. enable race detector test on darwin with clang (at least Apple clang version 1.7 (tags/Apple/clang-77) works). Requires CL 7354043. Update issue 4829 This should fix most parts of the problem, but one glitch still remains. DWARF generated by newer clang doesn't differentiate these two function types: void *malloc(size_t); void *malloc(unsigned long int); so you might need to do this to make make.bash pass: sed -i -e 's/C.malloc(C.size_t/C.malloc(C.ulong/' pkg/os/user/lookup_unix.go R=golang-dev, dave, iant, rsc CC=golang-dev https://codereview.appspot.com/7351044
* build: clang supportRuss Cox2013-02-151-2/+6
| | | | | | | | | | | | | | | | | | | | | | This works with at least one version of clang that existed at one moment in time. No guarantees about clangs past or future. To try: CC=clang all.bash It does not work with the Xcode clang, because that clang fails at printing a useful answer to: clang -print-libgcc-file-name The clang that works prints a full path name for that command, not just "libgcc.a". Fixes issue 4713. R=iant, minux.ma CC=golang-dev https://codereview.appspot.com/7323068
* run.bash: fix linux/arm buildDave Cheney2012-11-151-1/+2
| | | | | | | | Revert to the shell builtin to avoid hosts that do not have /usr/bin/time. R=golang-dev, iant CC=golang-dev http://codereview.appspot.com/6848054
* run.{bash,bat,rc}: unset GOMAXPROCS before ../testDave Cheney2012-11-151-1/+1
| | | | | | | | | | | | | test/run.go already executes tests in parallel where possible. An unknown GOMAXPROCS value during the tests is known to cause failures with tests that measure allocations. ref: https://groups.google.com/d/topic/golang-nuts/tgMhFJ3F5WY/discussion R=fullung, minux.ma, r CC=golang-dev http://codereview.appspot.com/6847050
* build: do not run race tests with cgo disabledRuss Cox2012-11-011-2/+2
| | | | | | R=dvyukov CC=golang-dev http://codereview.appspot.com/6810067
* run.bash: add sanity test for race detectorDmitriy Vyukov2012-11-011-0/+8
| | | | | | R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/6612064
* cmd/api: add exception fileRob Pike2012-10-041-1/+1
| | | | | | | | Fixes build. R=golang-dev, adg, bradfitz, dsymonds, dave CC=golang-dev http://codereview.appspot.com/6586074
* run.bash: fix a typo (fix build)Shenghou Ma2012-09-171-1/+1
| | | | | | R=golang-dev CC=golang-dev http://codereview.appspot.com/6506121
* run.bash: set appropriate ulimitsShenghou Ma2012-09-171-0/+6
| | | | | | | | mainly for NetBSD/OpenBSD. R=bradfitz, r, rsc CC=golang-dev http://codereview.appspot.com/6453154
* misc/cgo/{life,stdio}, test/run.go: use test/run.go to do the cgo testsShenghou Ma2012-08-071-2/+2
| | | | | | | | | 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
* build: revert 61d1d72136f7 (add few tests with GOMAXPROCS=32)Dmitriy Vyukov2012-07-141-5/+0
| | | | | | | | Some tests currently fail with GOMAXPROCS>1 R=golang-dev CC=golang-dev http://codereview.appspot.com/6398044
* build: add few tests with GOMAXPROCS=32 to run.bashDmitriy Vyukov2012-07-141-0/+5
| | | | | | | | | | | | | Some class of bugs (data races, runtime bugs) can be found only with real parallelism. Note that GOMAXPROCS=32 is somewhat different from go test -cpu=32, this intentionally uses GOMAXPROCS to stress program bootstrap, testing code, garbage collections, etc. Package selection is mostly random. R=golang-dev, dave, r CC=golang-dev http://codereview.appspot.com/6346070
* cmd/api: add api/next.txtBrad Fitzpatrick2012-05-221-1/+1
| | | | | | | | | | | | | | | | This quiets all.bash noise for upcoming features we know about. The all.bash warnings will now only print for things not in next.txt (or in next.txt but not in the API). Once an API is frozen, we rename next.txt to a new frozen file (like go1.txt) Fixes issue 3651 R=golang-dev, r CC=golang-dev http://codereview.appspot.com/6218069
* build: unset GOROOT_FINAL before testsShenghou Ma2012-04-041-0/+5
| | | | | | | | Fix the builders. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5976068
* run.bash: set -e in new codewalk blockRob Pike2012-03-261-0/+1
| | | | | | | | | | | Otherwise we won't fail if something goes wrong. This shell programming stuff is tricky. R=golang-dev, dsymonds CC=golang-dev http://codereview.appspot.com/5905062 Committer: David Symonds <dsymonds@golang.org>
* run.bash: compile the codewalksRob Pike2012-03-261-0/+7
| | | | | | | | | | They could be tested but that requires more than seems wise right now. Update issue 2648. R=golang-dev, dsymonds CC=golang-dev http://codereview.appspot.com/5908054
* build: lengthen timeout for the lengthy runtime testShenghou Ma2012-03-211-1/+1
| | | | | | | | To fix build on (overheated) Linux/ARM builder. R=golang-dev, dave CC=golang-dev http://codereview.appspot.com/5865051
* build: unset GOPATH before testsShenghou Ma2012-03-211-0/+2
| | | | | | | | | | | 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 issue 3337. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5852043
* build: catch API changes during buildBrad Fitzpatrick2012-03-171-2/+6
| | | | | | | | | | | | 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 http://codereview.appspot.com/5820070
* cmd/dist, cmd/go: move CGO_ENABLED from 'go tool dist env' to 'go env'Shenghou Ma2012-03-101-1/+1
| | | | | | | | | | 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 http://codereview.appspot.com/5792055
* misc/cgo: re-enable testsoFrancisco Souza2012-03-081-2/+0
| | | | | | | | | | | | | | 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 issue 2982. R=rsc, remyoudompheng CC=golang-dev http://codereview.appspot.com/5788043 Committer: Russ Cox <rsc@golang.org>
* doc: fix freebsd buildShenghou Ma2012-03-081-1/+1
| | | | | | | | | | Also rename it to test.bash, for naming consistency. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5784045 Committer: Mikio Hara <mikioh.mikioh@gmail.com>
* build: re-enable some broken tests in run.bashShenghou Ma2012-03-081-20/+9
| | | | | | | | Updates issue 2982. R=rsc, rsc CC=golang-dev http://codereview.appspot.com/5759064
* undo CL 5754063 / e23b66fcfc94Russ Cox2012-03-071-1/+4
| | | | | | | | | | | | | | | | | | | | Does not actually test so files. ??? original CL description misc/cgo: re-enable testso Also enabled it for darwin. R=rsc CC=golang-dev http://codereview.appspot.com/5754063 Committer: Russ Cox <rsc@golang.org> ??? R=golang-dev, minux.ma, r, f CC=golang-dev http://codereview.appspot.com/5756075
* misc/cgo: re-enable testsoFrancisco Souza2012-03-071-4/+1
| | | | | | | | | | Also enabled it for darwin. R=rsc CC=golang-dev http://codereview.appspot.com/5754063 Committer: Russ Cox <rsc@golang.org>
* misc/cgo: re-enable some testsRuss Cox2012-03-061-8/+2
| | | | | | | | The testso directory still needs to be enabled. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5731048
* build: use run.go for running testsRuss Cox2012-03-051-1/+1
| | | | | | | | | | | | | | 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
* runtime: wait for main goroutine before setting GOMAXPROCS.R?my Oudompheng2012-03-051-2/+2
| | | | | | | | | | Fixes issue 3182. R=golang-dev, dvyukov, rsc CC=golang-dev, remy http://codereview.appspot.com/5732057 Committer: Russ Cox <rsc@golang.org>
* doc/progs: update for go 1Rob Pike2012-03-051-1/+0
| | | | | | | | Fixes issue 3076. R=golang-dev, dsymonds, r CC=golang-dev http://codereview.appspot.com/5727056
* cmd/dist: cross-compiling fixesRuss Cox2012-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | | 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 issue 2920. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5645093
* build: use cmd/distRuss Cox2012-02-041-27/+14
| | | | | | R=bradfitz, ality, r, r, iant, mikioh.mikioh CC=golang-dev http://codereview.appspot.com/5615058
* build: crash if test runs foreverAlex Brainman2012-02-031-3/+3
| | | | | | R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5604051
* build: remove Make.pkg, Make.toolRuss Cox2012-01-301-56/+36
| | | | | | | | | | | | | | | 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 http://codereview.appspot.com/5601057
* run.bash: s/make/gomakeRob Pike2012-01-301-1/+1
| | | | | | | | | attempt to fix freebsd build TBR=rsc R=rsc CC=golang-dev http://codereview.appspot.com/5576077
* go: move compilers into the go-tool directoryRob Pike2012-01-301-2/+2
| | | | | | | | | | | | 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 issue 284. R=rsc CC=golang-dev http://codereview.appspot.com/5598049
* misc/cgo/test: make tests run on windowsAlex Brainman2012-01-201-1/+0
| | | | | | | | | | | | | | | | | | - 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 http://codereview.appspot.com/5500094
* cmd/go: add -v flag to build and installRuss Cox2012-01-091-1/+1
| | | | | | | | | | | 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 http://codereview.appspot.com/5532055
* cmd/go: many improvementsRuss Cox2011-12-211-2/+2
| | | | | | | | | | | | | * 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 http://codereview.appspot.com/5502055
* build: rewrite to use bash time builtinRuss Cox2011-12-211-2/+2
| | | | | | | | Should help windows/amd64 R=adg CC=golang-dev http://codereview.appspot.com/5500058
* build: fix the build with USE_GO_TOOL=falseBrad Fitzpatrick2011-12-201-1/+1
| | | | | | R=golang-dev, r, rsc CC=golang-dev http://codereview.appspot.com/5502051
* build: use go command during buildRuss Cox2011-12-201-11/+41
| | | | | | | | | | 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 http://codereview.appspot.com/5502047
* test/bench/go1: first draft of Go 1 benchmark suiteRuss Cox2011-12-151-0/+4
| | | | | | | | | | | | | | | | | | 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 http://codereview.appspot.com/5484071
* test/bench: move to test/bench/shootoutRuss Cox2011-12-131-1/+1
| | | | | | R=golang-dev, r, gri, bradfitz CC=golang-dev http://codereview.appspot.com/5487067