-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to Makefile-based instead of script-based integration test execu…
…tion Signed-off-by: Chun-Hung Tseng <[email protected]>
- Loading branch information
1 parent
ea2d4e0
commit bb37223
Showing
7 changed files
with
31 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
module go.etcd.io/gofail | ||
|
||
go 1.21 | ||
|
||
toolchain go1.21.11 | ||
go 1.21.11 | ||
|
||
require github.com/stretchr/testify v1.9.0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
GOFAIL_BINARY = $(shell pwd)/gofail | ||
|
||
# run all integration tests | ||
.PHONY: run-all-integration-tests | ||
run-all-integration-tests: run-integration-test-sleep | ||
|
||
# run integration test - sleep | ||
.PHONY: run-integration-test-sleep | ||
run-integration-test-sleep: build-gofail execute-integration-test-sleep remove-gofail | ||
|
||
.PHONY: execute-integration-test-sleep | ||
execute-integration-test-sleep: | ||
@echo "GOFAIL_BINARY = ${GOFAIL_BINARY}" | ||
cd ./integration/sleep/failpoints && ${GOFAIL_BINARY} enable && cd .. && go build -o integration_test_sleep . && cd failpoints && ${GOFAIL_BINARY} disable | ||
cd ./integration/sleep && ./integration_test_sleep && rm integration_test_sleep | ||
|
||
# helper: build/remove gofail binaries | ||
.PHONY: build-gofail | ||
build-gofail: | ||
make clean && make gofail | ||
|
||
.PHONY: remove-gofail | ||
remove-gofail: | ||
make clean |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters