From 7ca32e4fcc790d07365ad231be009e880018e814 Mon Sep 17 00:00:00 2001 From: Chun-Hung Tseng Date: Thu, 23 May 2024 15:12:40 +0200 Subject: [PATCH] Update Makefile to better support integration tests Signed-off-by: Chun-Hung Tseng --- .github/workflows/integration_tests.yml | 2 +- Makefile | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 89f94c2..1e143a9 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -25,4 +25,4 @@ jobs: - uses: actions/checkout@v4 - name: tests run: | - make integration-test + make run-integration-test diff --git a/Makefile b/Makefile index 01e0296..7aed263 100644 --- a/Makefile +++ b/Makefile @@ -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