summaryrefslogtreecommitdiff
path: root/Magefile.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-07-07 00:17:27 +0300
committerPaul Buetow <paul@buetow.org>2026-07-07 00:17:27 +0300
commitab6e1341dc5eb06b6573571f8c17e19d0c393418 (patch)
treef9aa00bf0cf3ab302ecb2d152f7e781793112ba5 /Magefile.go
parent62ff4e782bc057d277a7c41fa35a665e2aeca045 (diff)
can manage dnf packages
Diffstat (limited to 'Magefile.go')
-rw-r--r--Magefile.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/Magefile.go b/Magefile.go
index 0c3c59c..670bb1c 100644
--- a/Magefile.go
+++ b/Magefile.go
@@ -44,7 +44,14 @@ func Run() error {
// Test runs all unit tests.
func Test() error {
fmt.Println("testing...")
- return run("go", "test", "-v", "./...")
+ return run("go", "test", "-v", "-count=1", "./...")
+}
+
+// TestDNF runs DNF-specific integration tests. This requires root privileges.
+func TestDNF() error {
+ fmt.Println("testing DNF integration...")
+ // Use 'env' to set the variable for the go test command
+ return run("env", "GONF_RUN_DNF_TESTS=1", "go", "test", "-v", "-count=1", "./internal/resource/pkg/...")
}
// Lint runs go vet.