test: run system tests in parallel
parent
6054ef6a34
commit
8c2a7d74dc
4
Makefile
4
Makefile
|
@ -39,13 +39,13 @@ clean:
|
||||||
(cd test && make clean)
|
(cd test && make clean)
|
||||||
|
|
||||||
test: system-test-files
|
test: system-test-files
|
||||||
$(GO) test $(GOTAGS) ./...
|
$(GO) test $(GOTAGS) -parallel 4 ./...
|
||||||
|
|
||||||
test-unit: system-test-files
|
test-unit: system-test-files
|
||||||
$(GO) test $(GOTAGS) -test.short ./...
|
$(GO) test $(GOTAGS) -test.short ./...
|
||||||
|
|
||||||
test-system: system-test-files
|
test-system: system-test-files
|
||||||
$(GO) test $(GOTAGS) ./test
|
$(GO) test $(GOTAGS) -parallel 4 ./test
|
||||||
|
|
||||||
system-test-files:
|
system-test-files:
|
||||||
(cd test && make files)
|
(cd test && make files)
|
||||||
|
|
|
@ -14,6 +14,7 @@ func TestAnyAny(t *testing.T) {
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
t.Skip("system test skipped with -test.short")
|
t.Skip("system test skipped with -test.short")
|
||||||
}
|
}
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
ts := importTestSuite{
|
ts := importTestSuite{
|
||||||
name: "any_any",
|
name: "any_any",
|
||||||
|
|
|
@ -21,6 +21,7 @@ func TestComplete(t *testing.T) {
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
t.Skip("system test skipped with -test.short")
|
t.Skip("system test skipped with -test.short")
|
||||||
}
|
}
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
ts := importTestSuite{
|
ts := importTestSuite{
|
||||||
name: "complete",
|
name: "complete",
|
||||||
|
|
|
@ -18,6 +18,7 @@ func TestExpireTiles(t *testing.T) {
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
t.Skip("system test skipped with -test.short")
|
t.Skip("system test skipped with -test.short")
|
||||||
}
|
}
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
ts := importTestSuite{
|
ts := importTestSuite{
|
||||||
name: "expire_tiles",
|
name: "expire_tiles",
|
||||||
|
|
|
@ -14,6 +14,7 @@ func TestRouteRelation(t *testing.T) {
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
t.Skip("system test skipped with -test.short")
|
t.Skip("system test skipped with -test.short")
|
||||||
}
|
}
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
ts := importTestSuite{
|
ts := importTestSuite{
|
||||||
name: "route_relation",
|
name: "route_relation",
|
||||||
|
|
|
@ -17,6 +17,7 @@ func TestSingleTable(t *testing.T) {
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
t.Skip("system test skipped with -test.short")
|
t.Skip("system test skipped with -test.short")
|
||||||
}
|
}
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
ts := importTestSuite{
|
ts := importTestSuite{
|
||||||
name: "single_table",
|
name: "single_table",
|
||||||
|
|
Loading…
Reference in New Issue