Skip to content

Commit

Permalink
Update Makefile to better support integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Chun-Hung Tseng <[email protected]>
  • Loading branch information
henrybear327 committed May 23, 2024
1 parent 9f57df4 commit 7f17e8b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,22 @@ verify-gofmt:
test:
go test -v --race -cpu=1,2,4 ./code/ ./runtime/

.PHONY: integration-test
integration-test: gofail
# run all integration tests
.PHONY: run-integration-test
run-integration-test: run-integration-test-sleep

.PHONY: build-integration-test
build-integration-test: gofail

.PHONY: cleanup-integration-test
cleanup-integration-test: clean

# run integration test - sleep
.PHONY: run-integration-test-sleep
run-integration-test-sleep: build-integration-test execute-integration-test-sleep cleanup-integration-test

.PHONY: execute-integration-test-sleep
execute-integration-test-sleep:
./integration/sleep/execute.sh

fix: fix-gofmt
Expand Down

0 comments on commit 7f17e8b

Please sign in to comment.