Gyuho Lee
5fd9270d6c
test: disable SA4004 temporarily
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-27 14:21:17 -07:00
Gyuho Lee
ad4b747ed4
test: configure go test -cpu flag
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-20 14:10:30 -07:00
Gyuho Lee
fdf4a12d3c
test: rename etcd functional test data directories
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-11 19:52:23 -07:00
Gyuho Lee
7ed4803fb0
test: remove "-a" GO_BUILD_FLAGS
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-11 01:45:06 -07:00
Gyuho Lee
7e56c3e737
test: remove backup data from functional tests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-11 01:18:15 -07:00
Gyuho Lee
6cf9979cf0
test: remove wait commands
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-10 18:38:01 -07:00
Gyuho Lee
eabb40f0ae
test: combine "compile_pass" into "build_pass"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-10 17:07:42 -07:00
Gyuho Lee
0e7f1100e3
cover: move coverage test script to "tests"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 10:47:32 -07:00
Gyuho Lee
0c327ea456
test: move "e2e" and "functional"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-09 10:47:25 -07:00
Gyuho Lee
85e050a120
*: rename, clean up functional tests
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-07 10:00:00 -07:00
Gyuho Lee
d7b468ec6f
test: bump up test timeout to 20m
...
Recently, we've added bunch of tests...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-04 13:45:12 -07:00
Gyuho Lee
173fdc37a3
test: run shellcheck only on bash scripts
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-04-02 11:45:04 -07:00
Gyuho Lee
048a1b14d5
test: bump up default timeout for now
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-30 14:42:45 -07:00
Gyuho Lee
28766fb002
test: run test script with new "functional-tester"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-30 11:25:23 -07:00
Gyuho Lee
9c995fab9b
test: fix shellcheck
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-03-22 10:39:23 -07:00
Wenjia Zhang
3571f406aa
scripts: add TESTCASE flag to run single unit test
...
Enable user to run specified test case with different TIMEOUT expectation
when needed.
2018-03-13 13:54:20 -07:00
Gyuho Lee
1da0818186
build: use "bash" syntax, clean up
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-02-27 11:07:36 -08:00
Gyuho Lee
18f8b1b1e1
build,test: set up GOPATH in build script
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-02-27 10:23:14 -08:00
Gyuho Lee
2dd8af3503
test: fix "internal/store" path
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-02-26 17:12:45 -08:00
Gyuho Lee
d4aeb3b8cf
Merge pull request #9356 from mkumatag/fix_gopath
...
test, build: Fix gopath creation
2018-02-26 07:38:22 -08:00
Manjunath A Kumatagi
adf4e05079
test, build: Fix gopath creation
2018-02-26 04:21:06 -05:00
Gyuho Lee
3e13424bb8
test: fix "internal/store"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-02-12 09:21:11 -08:00
Gyuho Lee
5960c7519f
test: configure advertise ports in functional_pass
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-24 17:37:09 -08:00
Gyuho Lee
42c90ffd83
test: remove "use-root" in functional_pass
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-24 17:37:09 -08:00
Gyuho Lee
6eefc93343
test: remove "./cmd", "etcd_setup_gopath"
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2018-01-24 15:26:17 -08:00
Gyu-Ho Lee
38105095cd
test: limit stress-qps for slow CI machines, add txn flags
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2018-01-09 13:43:36 -08:00
Gyuho Lee
70cca45824
*: update release upgrade test versions
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-20 14:20:52 -08:00
Gyuho Lee
ba702ae601
test: bump up clientv3/integration test time out
...
Recently we've added many more tests.
Until we parallelize tests, just increase the timeout.
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-19 14:17:55 -08:00
Gyuho Lee
f97233d206
test: log gocovmerge merging
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2017-12-05 17:18:13 -08:00
Gyuho Lee
4ad8bd9299
Merge pull request #8858 from gyuho/aaa
...
test: clean up fmt tests
2017-11-29 09:51:07 -08:00
Joe Betz
1bca2e969f
test: Clean agent directories on disk before functional test runs, not after
...
This is primarily so CI tooling can capture the agent logs after the functional tester runs.
2017-11-14 13:09:52 -08:00
Gyu-Ho Lee
27519ffdb4
test: clean up fmt tests
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-12 14:19:53 -08:00
Gyu-Ho Lee
65a606e2e8
test: add naked return checks
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-10 17:55:55 -08:00
Gyu-Ho Lee
3f93d9ae00
test: fail tests with "--- FAIL:"
...
To differentiate from gRPC client log "TRANSIENT_FAILURE"
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-11-03 10:15:14 -07:00
Gyu-Ho Lee
997469a8cf
test: add 'VERBOSE' flag to enable client debugs
2017-10-23 13:13:28 -07:00
Gyu-Ho Lee
72fbe0576d
test: run ineffassign in fmt pass
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-10-03 02:14:02 -07:00
Anthony Romano
166e6918a6
test: fix flags in coverage test
...
broken when fixing shellcheck errors
2017-09-17 00:33:56 -07:00
Anthony Romano
98e4a05068
test: check for inconsistent receiver names
2017-09-12 03:41:10 -07:00
Anthony Romano
ae63ac1cf7
test: remove S1024 mask from gosimple pass
...
Also get stray remaining egreps
2017-09-08 09:21:42 -07:00
Gyu-Ho Lee
e49d93ccb7
test: use 'grep -E' for non-standard 'egrep'
...
Fix shellcheck complaints.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-07 18:37:33 -07:00
Gyu-Ho Lee
24498ea167
test: mask 'nil Context' for staticcheck
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-09-07 13:39:42 -07:00
Anthony Romano
2d0eec0b35
clientv3: goword spelling check
2017-09-06 22:11:33 -07:00
Anthony Romano
9abe9da9db
*: fix shellcheck warnings
...
Fixes scripts and removes shellcheck warning suppressions.
* regexp warnings
* use ./*glob* so names don't become options
* use $(..) instead of legacy `..`
* read with -r to avoid mangling backslashes
* double quote to prevent globbing and word splitting
2017-09-06 19:18:04 -07:00
Anthony Romano
32bfd9e5ab
test: add v2v3 store tests to integration and cov passes
2017-08-31 12:25:13 -07:00
Anthony Romano
b402ea8590
test: increase clientv3/integration time to accomodate leasing tests
2017-08-04 11:35:36 -07:00
Anthony Romano
322e6ff022
test: fix PASSES=fmt for OSX
...
OSX dirname doesn't support multiple arguments; use a for loop instead.
Fixes #8359
2017-08-02 14:43:15 -07:00
Anthony Romano
107828d777
test: support -tags cluster_proxy for e2e tests
2017-07-21 11:00:22 -07:00
Gyu-Ho Lee
02585157f6
test: sync with etcd-agent start in functional_pass
...
Fix https://github.com/coreos/etcd/issues/8211 .
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-07-13 09:17:42 -07:00
Anthony Romano
a2a80cb1bf
test: bump grpcproxy timeout to 20m, print pass times
2017-07-06 12:51:24 -07:00
Gyu-Ho Lee
6e31901108
test: run basic functional tests
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-06-20 16:04:51 -07:00
Gyu-Ho Lee
8f8f550443
test: 'FAIL' on release binary download failure
...
I see CI is failing to download release binaries
but exit code doesn't trigger CI job failure.
We need 'FAIL' string.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-06-19 12:52:02 -07:00
Anthony Romano
9a367a39d0
test: fix package splitting when appending REPO_PATH to tests
2017-06-06 15:20:39 -07:00
Anthony Romano
85f433232a
*: clear rarer shellcheck errors on scripts
...
Clean up the tail of the warnings
2017-06-06 09:36:25 -07:00
Anthony Romano
42104fd44b
test: shellcheck
2017-06-06 09:36:25 -07:00
Anthony Romano
88a3bb74b3
test, osutil: disable setting SIG_DFL on linux if built with cov tag
...
Was causing etcd to terminate before finishing writing its
coverage profile.
2017-06-05 21:09:35 -07:00
Anthony Romano
9b33aa1967
test: speedup and strengthen go vet checking
...
Was iterating over every file, reloading everything. Instead,
analyze the package directories. On my machine, the time for
vet checking goes from 34s to 3s. Scans more code too.
2017-06-03 21:31:49 -07:00
Anthony Romano
00e581754b
test: incrementally merge coverage files
...
Don't throw away all coverage data if some profiles are corrupted.
2017-05-31 15:46:35 -07:00
Gyu-Ho Lee
307331cc31
test: release tests with v3.2+
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-05-24 14:31:30 -07:00
Gyu-Ho Lee
c2959c998f
test: run 'marker' to find broken links
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-05-04 08:26:00 -07:00
Anthony Romano
b77de97136
test: bill of materials check pass
2017-04-26 16:29:47 -07:00
Anthony Romano
a2b5444a26
test: ensure clientv3 has no grpc-gateway dependency
2017-04-19 13:09:23 -07:00
Gyu-Ho Lee
2d97500e64
test: do not ignore 'tools/benchmark/cmd'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-12 14:13:30 -07:00
Anthony Romano
b694cfc69f
Merge pull request #7702 from heyitsanthony/rpc-swagger
...
v3lock, v3election: generate and serve grpc-gateway endpoints
2017-04-10 16:48:11 -07:00
Anthony Romano
2030c85071
test: ignore v3electionpb and v3lockpb for static checks
2017-04-10 15:21:07 -07:00
Anthony Romano
b5dd41e625
test: remove generated files from coverage statistics
...
client/keys.generated.go has poor coverage but it's generated; other
generated files (e.g., pb stuff) are ignored, so this should be ignored too.
2017-04-10 14:30:15 -07:00
Anthony Romano
7e05b33aa0
*: remove os.Kill from signal.Notify
...
Clears SA1016 in staticcheck
2017-04-07 10:52:54 -07:00
Anthony Romano
d31701bab5
test: fix fmt pass and shorten suppression warnings
...
If gosimple or staticcheck had no output, it no other passes would be
applied because they were using `continue`. Similarly, the suppression
check never worked at all since it wasn't the result data into egrep.
Fixes #7685
2017-04-06 21:33:03 -07:00
Anthony Romano
23e952ccfd
test: generate coverage report even if some tests fail
...
The coverage data is still useful even if some tests fail. Instead of
terminating the coverage pass on any test failure, collect and pass
the failed tests, generate the coverage report, then report the failed
packages and exit with an error.
2017-04-04 11:12:18 -07:00
Anthony Romano
ab1cf751a3
test: add proxy to coverage tests
2017-03-23 18:27:09 -07:00
Gyu-Ho Lee
a9588952a0
test: mask go1.8 gosimple warnings
2017-03-14 15:10:32 -07:00
Anthony Romano
e3218e2dd1
test: add coverage for more packages
...
Was only getting coverage for packages with test files. Instead, include
packages that don't have test files as well.
2017-03-14 01:08:07 -07:00
Anthony Romano
dbf654cf77
test: install packages when building coverage tests
...
Lots of repeated compilation. Cache results with go build -i.
2017-03-08 22:24:16 -08:00
Gyu-Ho Lee
beb58c434c
*: fix minor typos
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-08 16:21:52 -08:00
Gyu-Ho Lee
bd6e6c11f8
test: run 'staticcheck'
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-06 14:59:12 -08:00
Anthony Romano
4e1ce81e17
test: eschew you
...
Per https://github.com/coreos/docs/blob/master/STYLE.md#eschew-you
2017-03-06 09:16:03 -08:00
Anthony Romano
3296c15a32
test: run unused and gosimple over all packages at once
...
fmt pass went from ~20 CPU minutes to ~1 CPU minute.
Fixes #7377
2017-03-02 10:17:46 -08:00
fanmin shi
edd298f85a
test: build test binary for etcdctl
2017-02-28 17:08:24 -08:00
Gyu-Ho Lee
3eaf2f6558
*: remove trailing space, upgrade test on v3.1
2017-02-23 16:19:24 -08:00
fanmin shi
b5be18a744
test: add e2e to coverage test
2017-02-17 14:15:26 -08:00
Anthony Romano
e3f4b43614
test: clientv3 integration tests with proxy
2017-02-01 22:04:18 -08:00
Anthony Romano
072eda508b
test: bump e2e timeout to 15 minutes
...
PPC64 timing out; integration tests already at 15 minutes.
2017-01-25 20:56:31 -08:00
Vimal Kumar
293c75b133
test: passed the test script arguments as the test function parameters
2017-01-18 21:28:57 +05:30
fanmin shi
cbb6ede69d
Merge pull request #7067 from fanminshi/rework_coverage_unit_integration
...
coverage: rework coverage for unit and integration tests
2016-12-30 10:13:07 -08:00
fanmin shi
d9a3472894
coverage: rework code coverage for unit and integration tests
2016-12-29 17:19:03 -08:00
Anthony Romano
f876ccb055
test: bump grpcproxy pass timeout to 15m
...
integration tests have a 15m timeout elsewhere. The lease stress tests
seem to have pushed the running time over 10m on proxy CI, causing
failures from timeout.
2016-12-28 14:56:57 -08:00
Gyu-Ho Lee
6ec4b9c26a
test: exclude '_home' for gosimple, unused
2016-12-12 10:07:14 -08:00
Ben Darnell
10cead3139
test: Ignore gopath.proto in test script
2016-10-19 19:35:20 +08:00
Geoff Levand
3cbc5285e0
test: Run integration pass in series
...
On slower or heavily loaded platforms running the integration pass in
parallel results in test timeout errors.
Rename the integration_pass function to integration_e2e_pass, and add two
new functions integration_pass and e2e_pass.
Signed-off-by: Geoff Levand <geoff@infradead.org>
2016-10-05 15:35:14 -07:00
Geoff Levand
25f1088edd
test: Fixes for release_pass
...
Some fixes related to release_pass:
o Create the output directory ./bin if it does not exist.
o Define the GOARCH variable if it is not defined.
o Simplify the race detection test.
o Download the relese archive based on GOARCH.
o If the release file is not found, return success. This will allow the tests
to continue.
Signed-off-by: Geoff Levand <geoff@infradead.org>
2016-10-04 13:42:53 -07:00
Gyu-Ho Lee
20211ed6bf
test: grep versions with --sort
2016-09-23 15:49:20 -07:00
Gyu-Ho Lee
3aa2d1b40e
test: test with v3.0 (preparation for v3.1)
2016-08-30 20:54:07 -07:00
Anthony Romano
e1519cf460
build: don't override gopath by default, demote old gopath on override
...
Builds already vendor through cmd/ so there's no reason to set the GOPATH; it
was also breaking gofail builds. For builds that need to override GOPATH, also
include the old GOPATH as a fallback for dependencies outside cmd/vendor/.
2016-08-16 13:46:07 -07:00
Anthony Romano
becbd9f3d6
test: grpcproxy integration test pass
...
Run via
PASSES=grpcproxy ./test
2016-07-20 15:58:33 -07:00
kayrus
cab2e45319
build: allow to build outside the etcd directory
...
And added gopath hack which allows to build without setting any GOPATH
env. Just run the build script when you have installed golang.
2016-07-18 17:40:08 +02:00
Anthony Romano
1dfafd8fe0
test: separate phases of tests into configurable passes
2016-07-14 20:23:35 -07:00
Gyu-Ho Lee
e5b5cf02d3
test: add upgrade test flag
2016-07-11 11:10:24 -07:00
Anthony Romano
c30f89f1d0
client/integration: test v2 client one shot operations
2016-07-07 15:58:58 -07:00
Anthony Romano
dc218fb41d
test: use merge-base for commit title checking
...
Otherwise, will compare branch with forked master against upstream master.
2016-06-29 09:28:53 -07:00
Gyu-Ho Lee
ede0b584b8
test: test builds on other projects
2016-06-28 15:03:19 -07:00
Hitoshi Mitake
555028f3d1
test: more accurate checking of commit title
2016-06-26 21:05:47 -07:00