| 1 | /* |
| 2 | Copyright 2013-2014 Canonical Ltd. |
| 3 | |
| 4 | This program is free software: you can redistribute it and/or modify it |
| 5 | under the terms of the GNU General Public License version 3, as published |
| 6 | by the Free Software Foundation. |
| 7 | |
| 8 | This program is distributed in the hope that it will be useful, but |
| 9 | WITHOUT ANY WARRANTY; without even the implied warranties of |
| 10 | MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
| 11 | PURPOSE. See the GNU General Public License for more details. |
| 12 | |
| 13 | You should have received a copy of the GNU General Public License along |
| 14 | with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ |
| 16 | |
| 17 | package legacyscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/ |
| 18 | |
| 19 | import ( |
| 20 | "io/ioutilscip-go gomod github.com/golang/go/src go1.22 `io/ioutil`/" |
| 21 | "path/filepathscip-go gomod github.com/golang/go/src go1.22 `path/filepath`/" |
| 22 | "testingscip-go gomod github.com/golang/go/src go1.22 testing/" |
| 23 | "timescip-go gomod github.com/golang/go/src go1.22 time/" |
| 24 | |
| 25 | . "gopkg.in/check.v1scip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/" |
| 26 | |
| 27 | clickhelpscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/click/testing`/ "gitlab.com/ubports/development/core/lomiri-push-service/click/testingscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/click/testing`/" |
| 28 | helpersscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/testing`/ "gitlab.com/ubports/development/core/lomiri-push-service/testingscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/testing`/" |
| 29 | ) |
| 30 | |
| 31 | func takeNextscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/takeNext().(ch chan string, c *Cscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#) string { |
| 32 | select { |
| 33 | case s := <-ch: |
| 34 | return s |
| 35 | case <-timescip-go gomod github.com/golang/go/src go1.22 time/.Afterscip-go gomod github.com/golang/go/src go1.22 time/After().(10 * timescip-go gomod github.com/golang/go/src go1.22 time/.Secondscip-go gomod github.com/golang/go/src go1.22 time/Second.): |
| 36 | c.Fatalscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Fatal().("timed out waiting for value") |
| 37 | return "" |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | func Testscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/Test().(t *testingscip-go gomod github.com/golang/go/src go1.22 testing/.Tscip-go gomod github.com/golang/go/src go1.22 testing/T#) { TestingTscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/TestingT().(t) } |
| 42 | |
| 43 | type legacySuitescip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite# struct { |
| 44 | lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl. *legacyHelperLauncherscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher# |
| 45 | logscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#log. *helpersscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/testing`/.TestLoggerscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/testing`/TestLogger# |
| 46 | } |
| 47 | |
| 48 | var _ = Suitescip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/Suite().(&legacySuitescip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#{}) |
| 49 | |
| 50 | func (ls *legacySuitescip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#) SetUpTestscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#SetUpTest().(c *Cscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#) { |
| 51 | ls.logscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#log. = helpersscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/testing`/.NewTestLoggerscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/testing`/NewTestLogger().(c, "info") |
| 52 | ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl. = Newscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/New().(ls.logscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#log.) |
| 53 | ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..SetHelperDirscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#SetHelperDir().(helpersscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/testing`/.ScriptAbsPathscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/testing`/ScriptAbsPath().("legacy-helpers")) |
| 54 | } |
| 55 | |
| 56 | func (ls *legacySuitescip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#) TestInstallObserverscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#TestInstallObserver().(c *Cscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#) { |
| 57 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..donescip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#done., IsNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/IsNil.) |
| 58 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..InstallObserverscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#InstallObserver().(func(string) {}), IsNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/IsNil.) |
| 59 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..donescip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#done., NotNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/NotNil.) |
| 60 | } |
| 61 | |
| 62 | func (s *legacySuitescip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#) TestHelperAppIDscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#TestHelperAppID().(c *Cscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#) { |
| 63 | appname := "lomiri-system-settings" |
| 64 | app := clickhelpscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/click/testing`/.MustParseAppIdscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/click/testing`/MustParseAppId().("_" + appname) |
| 65 | hid := s.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..HelperAppIDscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#HelperAppID().(app) |
| 66 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(hid, Equalsscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/Equals., appname) |
| 67 | } |
| 68 | |
| 69 | func (ls *legacySuitescip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#) TestLaunchscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#TestLaunch().(c *Cscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#) { |
| 70 | ch := make(chan string, 1) |
| 71 | c.Assertscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Assert().(ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..InstallObserverscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#InstallObserver().(func(id string) { ch <- id }), IsNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/IsNil.) |
| 72 | |
| 73 | d := c.MkDirscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#MkDir().() |
| 74 | f1 := filepathscip-go gomod github.com/golang/go/src go1.22 `path/filepath`/.Joinscip-go gomod github.com/golang/go/src go1.22 `path/filepath`/Join().(d, "one") |
| 75 | f2 := filepathscip-go gomod github.com/golang/go/src go1.22 `path/filepath`/.Joinscip-go gomod github.com/golang/go/src go1.22 `path/filepath`/Join().(d, "two") |
| 76 | |
| 77 | d1 := []byte(`potato`) |
| 78 | c.Assertscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Assert().(ioutilscip-go gomod github.com/golang/go/src go1.22 `io/ioutil`/.WriteFilescip-go gomod github.com/golang/go/src go1.22 `io/ioutil`/WriteFile().(f1, d1, 0644), IsNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/IsNil.) |
| 79 | |
| 80 | id, err := ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..Launchscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#Launch().("trivial-helper.sh", f1, f2) |
| 81 | c.Assertscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Assert().(err, IsNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/IsNil.) |
| 82 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(id, Notscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/Not().(Equalsscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/Equals.), "") |
| 83 | |
| 84 | id2 := takeNextscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/takeNext().(ch, c) |
| 85 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(id, Equalsscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/Equals., id2) |
| 86 | |
| 87 | d2, err := ioutilscip-go gomod github.com/golang/go/src go1.22 `io/ioutil`/.ReadFilescip-go gomod github.com/golang/go/src go1.22 `io/ioutil`/ReadFile().(f2) |
| 88 | c.Assertscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Assert().(err, IsNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/IsNil.) |
| 89 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(string(d2), Equalsscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/Equals., string(d1)) |
| 90 | |
| 91 | } |
| 92 | |
| 93 | func (ls *legacySuitescip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#) TestLaunchFailsscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#TestLaunchFails().(c *Cscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#) { |
| 94 | _, err := ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..Launchscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#Launch().("does-not-exist", "", "") |
| 95 | c.Assertscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Assert().(err, NotNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/NotNil.) |
| 96 | } |
| 97 | |
| 98 | func (ls *legacySuitescip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#) TestHelperFailsscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#TestHelperFails().(c *Cscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#) { |
| 99 | ch := make(chan string, 1) |
| 100 | c.Assertscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Assert().(ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..InstallObserverscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#InstallObserver().(func(id string) { ch <- id }), IsNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/IsNil.) |
| 101 | |
| 102 | _, err := ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..Launchscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#Launch().("fail.sh", "", "") |
| 103 | c.Assertscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Assert().(err, IsNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/IsNil.) |
| 104 | |
| 105 | takeNextscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/takeNext().(ch, c) |
| 106 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(ls.logscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#log..Capturedscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/testing`/TestLogger#Captured().(), Matchesscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/Matches., "(?si).*Legacy helper failed.*") |
| 107 | } |
| 108 | |
| 109 | func (ls *legacySuitescip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#) TestHelperFailsLogscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#TestHelperFailsLog().(c *Cscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#) { |
| 110 | ch := make(chan string, 1) |
| 111 | c.Assertscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Assert().(ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..InstallObserverscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#InstallObserver().(func(id string) { ch <- id }), IsNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/IsNil.) |
| 112 | |
| 113 | _, err := ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..Launchscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#Launch().("noisy-helper.sh", "", "") |
| 114 | c.Assertscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Assert().(err, IsNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/IsNil.) |
| 115 | |
| 116 | takeNextscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/takeNext().(ch, c) |
| 117 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(ls.logscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#log..Capturedscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/testing`/TestLogger#Captured().(), Matchesscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/Matches., "(?s).*BOOM-1.*") |
| 118 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(ls.logscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#log..Capturedscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/testing`/TestLogger#Captured().(), Matchesscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/Matches., "(?s).*BANG-1.*") |
| 119 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(ls.logscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#log..Capturedscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/testing`/TestLogger#Captured().(), Matchesscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/Matches., "(?s).*BOOM-20.*") |
| 120 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(ls.logscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#log..Capturedscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/testing`/TestLogger#Captured().(), Matchesscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/Matches., "(?s).*BANG-20.*") |
| 121 | } |
| 122 | |
| 123 | func (ls *legacySuitescip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#) TestStopscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#TestStop().(c *Cscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#) { |
| 124 | ch := make(chan string, 1) |
| 125 | c.Assertscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Assert().(ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..InstallObserverscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#InstallObserver().(func(id string) { ch <- id }), IsNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/IsNil.) |
| 126 | |
| 127 | // exe := helpers.ScriptAbsPath("slow-helper.sh") |
| 128 | id, err := ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..Launchscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#Launch().("stop.sh", "9", "1") |
| 129 | c.Assertscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Assert().(err, IsNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/IsNil.) |
| 130 | |
| 131 | err = ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..Stopscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#Stop().("", "===") |
| 132 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(err, NotNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/NotNil.) // not a valid id |
| 133 | |
| 134 | err = ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..Stopscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#Stop().("", id) |
| 135 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(err, IsNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/IsNil.) |
| 136 | takeNextscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/takeNext().(ch, c) |
| 137 | err = ls.lhlscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacySuite#lhl..Stopscip-go gomod gitlab.com/ubports/development/core/lomiri-push-service . `gitlab.com/ubports/development/core/lomiri-push-service/launch_helper/legacy`/legacyHelperLauncher#Stop().("", id) |
| 138 | c.Checkscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/C#Check().(err, NotNilscip-go gomod gopkg.in/check.v1 10cb98267c6c `gopkg.in/check.v1`/NotNil.) // no such processs |
| 139 | } |