fix test jitter

This commit is contained in:
Pierre Dubouilh
2019-12-25 22:44:25 +01:00
parent 5c9c8983e1
commit e22ef1bc12
3 changed files with 23 additions and 18 deletions
+16 -6
View File
@@ -3,7 +3,7 @@ build:
make -C gossa-ui/
go vet && go fmt
CGO_ENABLED=0 go build gossa.go
rm gossa.go
sleep 1 && rm gossa.go
run:
make build
@@ -13,13 +13,23 @@ run-extra:
make build
./gossa -verb=true -prefix="/fancy-path/" -k=false -symlinks=true test-fixture
test:
timeout 60 make run &
sleep 15 && cp src/gossa_test.go . && go test -run TestNormal
rm gossa_test.go
-killall gossa
test-extra:
timeout 60 make run-extra &
sleep 15 && cp src/gossa_test.go . && go test -run TestExtra
rm gossa_test.go
-killall gossa
ci:
-@cd test-fixture && ln -s ../support .
make build
timeout 15 make run &
sleep 16 && timeout 15 make run-extra &
cp src/gossa_test.go . && go test
rm gossa_test.go
make test
make test-extra
watch:
ls src/* gossa-ui/* | entr -rc make run