Skip to content

Commit 3f6d97e

Browse files
authored
Merge pull request #45 from xibz/master
seperating out integration tests from unit tests
2 parents 9614612 + eda43fe commit 3f6d97e

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@ EXTRAGOARGS:=
1616

1717
all: build
1818

19-
generate build clean test:
19+
test: all-tests
20+
21+
unit-tests:
22+
go test -short $(EXTRAGOARGS)
23+
24+
all-tests:
25+
go test $(EXTRAGOARGS)
26+
27+
generate build clean:
2028
go $@ $(EXTRAGOARGS)
2129

22-
.PHONY: all generate clean build test
30+
.PHONY: all generate clean build test unit-tests all-tests

machine_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ func TestNewMachine(t *testing.T) {
7676
}
7777

7878
func TestMicroVMExecution(t *testing.T) {
79+
if testing.Short() {
80+
t.Skip()
81+
}
82+
7983
var nCpus int64 = 2
8084
cpuTemplate := models.CPUTemplate(models.CPUTemplateT2)
8185
var memSz int64 = 256

0 commit comments

Comments
 (0)