Skip to content

Commit

Permalink
add back the generic test command and use it on gh workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
  • Loading branch information
lstocchi committed Jan 13, 2025
1 parent 486a03b commit 0f43aa9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:

- name: Test
run: |
sudo -s -u ${USER} bash -c 'make test-linux'
sudo -s -u ${USER} bash -c 'make test'
- uses: actions/upload-artifact@v4
if: always()
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@ cross: $(TOOLS_BINDIR)/makefat
test-companion:
GOOS=linux go build -ldflags "$(LDFLAGS)" -o bin/test-companion ./cmd/test-companion

.PHONY: test-linux
test-linux: gvproxy test-companion
PHONY: test
test: gvproxy test-companion
go test -timeout 20m -v ./...

.PHONY: test-qemu
test-qemu: gvproxy test-companion
go test -timeout 20m -v ./test-qemu

.PHONY: test-mac
Expand Down

0 comments on commit 0f43aa9

Please sign in to comment.