test: add resumable isolated test harness

This commit is contained in:
2026-08-31 08:32:23 +00:00
parent 31a1314470
commit d6d93f3d98
11 changed files with 837 additions and 19 deletions
+18
View File
@@ -0,0 +1,18 @@
package main
import (
"context"
"fmt"
"os"
"os/signal"
"syscall"
)
func main() {
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer cancel()
if err := runCLI(ctx, os.Args[1:]); err != nil {
fmt.Fprintln(os.Stderr, "test harness:", err)
os.Exit(1)
}
}