summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-10-02 13:22:07 +0200
committerRuben Pollan <meskio@sindominio.net>2020-10-02 19:31:54 +0200
commitac30c6954a55347677d04ad2d8485b8ce85c9a55 (patch)
tree8cacc84deafa7e25c3c7572d71f86fa1ac5b75cb /gui
parent7ef59391594be905f8340cb5fef2afe2c25ddba9 (diff)
[test] update ui smoke test, add it to ci
Diffstat (limited to 'gui')
-rw-r--r--gui/backend.go8
1 files changed, 6 insertions, 2 deletions
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()
}