Skip to content

Commit

Permalink
Makefile: split into test and privileged-test
Browse files Browse the repository at this point in the history
It’s not necessary to run the tests with privileges *every* single time,
at least not by default.
  • Loading branch information
stapelberg committed Feb 16, 2025
1 parent 5beb13b commit 53a0a1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all run systemd test docker raspi mac
.PHONY: all run systemd test privileged-test docker raspi mac

all:
CGO_ENABLED=0 go install github.com/gokrazy/rsync/cmd/...
Expand All @@ -16,6 +16,8 @@ systemd: all

test:
GOGC=off CGO_ENABLED=0 go test -fullpath ./...

privileged-test:
GOGC=off CGO_ENABLED=0 sudo go test -fullpath ./integration/interop ./integration/receiver

docker:
Expand Down

0 comments on commit 53a0a1a

Please sign in to comment.