mirror of
https://github.com/lxc/incus.git
synced 2026-02-05 09:46:19 +01:00
Makefile: add target for unit tests as root
Signed-off-by: Lucas Bremgartner <lucas.bremgartner@futurfusion.io>
This commit is contained in:
4
Makefile
4
Makefile
@@ -332,3 +332,7 @@ tags: */*.go
|
||||
.PHONY: update-openfga
|
||||
update-openfga:
|
||||
@printf 'package auth\n\n// Code generated by Makefile; DO NOT EDIT.\n\nvar authModel = `%s`\n' '$(shell fga model transform --file=./internal/server/auth/driver_openfga_model.openfga | jq -c)' > ./internal/server/auth/driver_openfga_model.go
|
||||
|
||||
.PHONY: unit-test
|
||||
unit-test:
|
||||
sudo --preserve-env=CGO_CFLAGS,CGO_LDFLAGS,CGO_LDFLAGS_ALLOW,LD_LIBRARY_PATH LD_LIBRARY_PATH=${LD_LIBRARY_PATH} env "PATH=${PATH}" $(GO) test ./...
|
||||
|
||||
Reference in New Issue
Block a user