package render import ( "os" "testing" "amadan.net/rastrillo/rastrillo/budget" ) // The test binary doubles as the sandbox's first process and as a fake // browser, so the launch tests run under bubblewrap without Chromium: // argv "render-sandbox" is SandboxMain, "render-probe ..." reports what // the sandbox's first process can see and reach, and a binary named like // the browser (BrowserPath, in a test tree) plays the browser. func TestMain(m *testing.M) { if code, ok := helperMain(os.Args); ok { os.Exit(code) } os.Exit(budget.Main(m)) }