restructure and include Makefile

This commit is contained in:
Sam Hoffman
2026-01-30 17:10:13 -05:00
parent 1bab8ab876
commit 3e996996ea
6 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
package cmd_test
import (
"context"
"testing"
"git.gentoo.party/sam/thanks/internal/cmd"
)
func Test_ZCommand(t *testing.T) {
localRunner := &cmd.ZRunner{
Prog: "/bin/sh",
Args: []string{"-c"},
}
zfsList := "zfs list %s"
out, err := localRunner.Run(context.TODO(), zfsList, "zroot")
if err != nil {
t.Errorf("localRunner failed: %s\n\n%s", err.Error(), out)
}
}