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 7ca32e4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
- uses: actions/checkout@v4
- name: tests
run: |
make integration-test
make run-integration-test
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-all-integration-test
run-all-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 7ca32e4

Please sign in to comment.