Skip to content

Commit

Permalink
Merge pull request #457 from lstocchi/i452
Browse files Browse the repository at this point in the history
Run unit tests on linux
  • Loading branch information
openshift-merge-bot[bot] authored Jan 13, 2025
2 parents 2959505 + 0f43aa9 commit 56369d1
Show file tree
Hide file tree
Showing 4 changed files with 11 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
2 changes: 2 additions & 0 deletions test-vfkit/basic_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build darwin

package e2evfkit

import (
Expand Down
2 changes: 2 additions & 0 deletions test-vfkit/vfkit_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build darwin

package e2evfkit

import (
Expand Down

0 comments on commit 56369d1

Please sign in to comment.