diff options
Diffstat (limited to 'Magefile.go')
| -rw-r--r-- | Magefile.go | 9 |
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. |
