test: run system tests in parallel

master
Oliver Tonnhofer 2018-06-07 20:31:54 +02:00
parent 6054ef6a34
commit 8c2a7d74dc
6 changed files with 7 additions and 2 deletions

View File

@ -39,13 +39,13 @@ clean:
(cd test && make clean)
test: system-test-files
$(GO) test $(GOTAGS) ./...
$(GO) test $(GOTAGS) -parallel 4 ./...
test-unit: system-test-files
$(GO) test $(GOTAGS) -test.short ./...
test-system: system-test-files
$(GO) test $(GOTAGS) ./test
$(GO) test $(GOTAGS) -parallel 4 ./test
system-test-files:
(cd test && make files)

View File

@ -14,6 +14,7 @@ func TestAnyAny(t *testing.T) {
if testing.Short() {
t.Skip("system test skipped with -test.short")
}
t.Parallel()
ts := importTestSuite{
name: "any_any",

View File

@ -21,6 +21,7 @@ func TestComplete(t *testing.T) {
if testing.Short() {
t.Skip("system test skipped with -test.short")
}
t.Parallel()
ts := importTestSuite{
name: "complete",

View File

@ -18,6 +18,7 @@ func TestExpireTiles(t *testing.T) {
if testing.Short() {
t.Skip("system test skipped with -test.short")
}
t.Parallel()
ts := importTestSuite{
name: "expire_tiles",

View File

@ -14,6 +14,7 @@ func TestRouteRelation(t *testing.T) {
if testing.Short() {
t.Skip("system test skipped with -test.short")
}
t.Parallel()
ts := importTestSuite{
name: "route_relation",

View File

@ -17,6 +17,7 @@ func TestSingleTable(t *testing.T) {
if testing.Short() {
t.Skip("system test skipped with -test.short")
}
t.Parallel()
ts := importTestSuite{
name: "single_table",