All checks were successful
Test / Create distribution (push) Successful in 38s
Test / Sandbox (push) Successful in 2m48s
Test / Sandbox (race detector) (push) Successful in 4m48s
Test / Hakurei (push) Successful in 5m15s
Test / Hpkg (push) Successful in 5m18s
Test / Hakurei (race detector) (push) Successful in 6m38s
Test / Flake checks (push) Successful in 1m25s
This is slightly counterintuitive, but it turned out well under this framework since the daemon backs its target file. Signed-off-by: Ophestra <cat@gensokyo.uk>
30 lines
742 B
Go
30 lines
742 B
Go
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`},
|
|
})
|
|
}
|