streamd: serve start/stop/update, streamd.yaml, egress, module panel fixes
- Add streamd serve start|stop|restart|status|update with auto-written streamd.yaml - Panel modules: STREAMD_MODULES_DIR for describe, YAML channel fallback, textarea value fix - Per-stream WireGuard/SOCKS egress profiles + Settings UI - Drop drm-* from release builds; track streamd-bg.sh / streamd-update.sh wrappers - Docs: streamd-server-setup lifecycle and update flow
This commit is contained in:
parent
da8e1123ec
commit
8fc7e4c0b8
57 changed files with 4031 additions and 257 deletions
31
apps/pkg/modhost/exec_test.go
Normal file
31
apps/pkg/modhost/exec_test.go
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
package modhost
|
||||
|
||||
import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestPrepareModuleCmdSetsEnv(t *testing.T) {
|
||||
t.Cleanup(func() { _ = SetModulesDir("") })
|
||||
ov := filepath.Join(t.TempDir(), "modules")
|
||||
if err := os.MkdirAll(ov, 0o755); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := SetModulesDir(ov); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
cmd := exec.Command("true")
|
||||
prepareModuleCmd(cmd)
|
||||
found := false
|
||||
for _, e := range cmd.Env {
|
||||
if e == "STREAMD_MODULES_DIR="+ov {
|
||||
found = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if !found {
|
||||
t.Fatalf("STREAMD_MODULES_DIR missing in env: %v", cmd.Env)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue