mirror of
https://github.com/pldubouilh/gossa.git
synced 2026-09-02 23:27:39 -04:00
fix test jitter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user