diff options
Diffstat (limited to 'hst/fsdaemon_test.go')
| -rw-r--r-- | hst/fsdaemon_test.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/hst/fsdaemon_test.go b/hst/fsdaemon_test.go new file mode 100644 index 00000000..1e78d62a --- /dev/null +++ b/hst/fsdaemon_test.go @@ -0,0 +1,29 @@ +package hst_test + +import ( + "testing" + + "hakurei.app/container" + "hakurei.app/hst" +) + +func TestFSDaemon(t *testing.T) { + t.Parallel() + + checkFs(t, []fsTestCase{ + {"nil", (*hst.FSDaemon)(nil), false, nil, nil, nil, "<invalid>"}, + {"zero", new(hst.FSDaemon), false, nil, nil, nil, "<invalid>"}, + + {"pipewire-pulse", &hst.FSDaemon{ + Target: m("/run/user/1971/pulse/native"), + Exec: m("/run/current-system/sw/bin/pipewire-pulse"), + Args: []string{"-v"}, + }, true, container.Ops{ + &container.DaemonOp{ + Target: m("/run/user/1971/pulse/native"), + Path: m("/run/current-system/sw/bin/pipewire-pulse"), + Args: []string{"-v"}, + }, + }, m("/run/user/1971/pulse/native"), nil, `daemon:/run/user/1971/pulse/native`}, + }) +} |
