From ac30c6954a55347677d04ad2d8485b8ce85c9a55 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Fri, 2 Oct 2020 13:22:07 +0200 Subject: [test] update ui smoke test, add it to ci --- gui/backend.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gui') diff --git a/gui/backend.go b/gui/backend.go index abacd85..9453d88 100644 --- a/gui/backend.go +++ b/gui/backend.go @@ -59,9 +59,13 @@ func InitializeBitmaskContext(provider string, } //export InitializeTestBitmaskContext -func InitializeTestBitmaskContext() { - opts := &backend.InitOpts{} +func InitializeTestBitmaskContext(provider string, + jsonPtr unsafe.Pointer, jsonLen C.int) { + json := C.GoBytes(jsonPtr, jsonLen) + opts := backend.InitOptsFromJSON(provider, string(json)) + opts.DisableAutostart = true opts.SkipLaunch = true + opts.StartVPN = "no" backend.InitializeBitmaskContext(opts) backend.EnableMockBackend() } -- cgit v1.2.3