Skip to content

Commit

Permalink
test: enable coverage of crit unit tests
Browse files Browse the repository at this point in the history
This patch enables code coverage for CRIT's unit tests.

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
  • Loading branch information
rst0git committed Apr 15, 2023
1 parent 83fc137 commit c618ba1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ coverage: check-go-version $(COVERAGE_BINARIES) $(TEST_PAYLOAD)
pkill -9 piggie; \
}
cd crit/ && GOCOVERDIR=${COVERAGE_PATH} ./crit-test.coverage
$(MAKE) -C crit/ unit-test GOCOVERDIR=${COVERAGE_PATH} GOFLAGS="-cover"
$(MAKE) -C crit/ clean
# Print coverage from this run
$(GO) tool covdata percent -i=${COVERAGE_PATH}
Expand Down
2 changes: 1 addition & 1 deletion test/crit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CRIU ?= criu
all: unit-test integration-test e2e-test clean

unit-test: test-imgs
go test -v ./...
go test ${GOFLAGS} -v ./...

integration-test: test-imgs crit-test
@echo "Running integration test"
Expand Down

0 comments on commit c618ba1

Please sign in to comment.