Merge lp:~jonas-drange/ubuntu-push/lp1517189 into lp:ubuntu-push/automatic

Proposed by Jonas G. Drange
Status: Merged
Approved by: Jonas G. Drange
Approved revision: 424
Merged at revision: 417
Proposed branch: lp:~jonas-drange/ubuntu-push/lp1517189
Merge into: lp:ubuntu-push/automatic
Diff against target: 492 lines (+88/-50)
17 files modified
accounts/caccounts.go (+2/-0)
click/click_test.go (+28/-13)
client/service/postal_test.go (+16/-11)
client/service/service_test.go (+3/-1)
client/session/session_test.go (+20/-8)
config/config_test.go (+1/-1)
debian/rules (+0/-6)
dependencies.tsv (+2/-2)
http13client/z_last_test.go (+2/-1)
identifier/testing/testing_test.go (+3/-2)
launch_helper/cual/cual_c.go (+2/-0)
launch_helper/kindpool.go (+1/-1)
launch_helper/kindpool_test.go (+1/-1)
messaging/cmessaging/cmessaging_c.go (+2/-0)
scripts/connect-many.py (+1/-1)
signing-helper/CMakeLists.txt (+2/-2)
urldispatcher/curldispatcher/curldispatcher_c.go (+2/-0)
To merge this branch: bzr merge lp:~jonas-drange/ubuntu-push/lp1517189
Reviewer Review Type Date Requested Status
Samuele Pedroni Approve
Review via email: mp+278045@code.launchpad.net

This proposal supersedes a proposal from 2015-11-19.

Commit message

fix tests and warnings

To post a comment you must log in.
Revision history for this message
Samuele Pedroni (pedronis) wrote :

put some comment, quite sure the Makefile change won't help when building in the builders

review: Needs Fixing
422. By Jonas G. Drange

undo maxprocs, insecure. add pedronis' fix for panics

Revision history for this message
Samuele Pedroni (pedronis) wrote :

so it seeems we need -insecure but is not relevant for building so I would like to talk to some people maintaining go first

looks good to me, but put a small suggestion below

review: Approve
423. By Jonas G. Drange

make format

424. By Jonas G. Drange

panic on err in helper

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'accounts/caccounts.go'
--- accounts/caccounts.go 2014-09-05 10:47:29 +0000
+++ accounts/caccounts.go 2015-11-20 14:56:43 +0000
@@ -3,6 +3,8 @@
3/*3/*
4#include <libaccounts-glib/accounts-glib.h>4#include <libaccounts-glib/accounts-glib.h>
55
6void gocb();
7
6static void cb(AgManager *manager, AgAccountId account_id, gpointer p) {8static void cb(AgManager *manager, AgAccountId account_id, gpointer p) {
7 AgAccount *account = ag_manager_get_account(manager, account_id);9 AgAccount *account = ag_manager_get_account(manager, account_id);
8 if (!account) {10 if (!account) {
911
=== modified file 'click/click_test.go'
--- click/click_test.go 2014-09-17 19:38:34 +0000
+++ click/click_test.go 2015-11-20 14:56:43 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 Copyright 2013-2014 Canonical Ltd.2 Copyright 2013-2015 Canonical Ltd.
33
4 This program is free software: you can redistribute it and/or modify it4 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 published5 under the terms of the GNU General Public License version 3, as published
@@ -19,6 +19,8 @@
19import (19import (
20 "encoding/json"20 "encoding/json"
21 "fmt"21 "fmt"
22 "os/exec"
23 "strings"
22 "testing"24 "testing"
2325
24 . "launchpad.net/gocheck"26 . "launchpad.net/gocheck"
@@ -32,6 +34,16 @@
3234
33var _ = Suite(&clickSuite{})35var _ = Suite(&clickSuite{})
3436
37func GetPyVer() string {
38 out, err := exec.Command("python3", "-V").Output()
39 if err != nil {
40 panic(err)
41 }
42 pyver := strings.Replace(string(out[:]), "Python ", "", -1)
43 vers := strings.Split(pyver, ".")
44 return fmt.Sprintf("%s.%s", vers[0], vers[1])
45}
46
35func (cs *clickSuite) TestParseAppId(c *C) {47func (cs *clickSuite) TestParseAppId(c *C) {
36 app, err := ParseAppId("com.ubuntu.clock_clock")48 app, err := ParseAppId("com.ubuntu.clock_clock")
37 c.Assert(err, IsNil)49 c.Assert(err, IsNil)
@@ -72,18 +84,19 @@
72}84}
7385
74func (cs *clickSuite) TestParseAppIdLegacy(c *C) {86func (cs *clickSuite) TestParseAppIdLegacy(c *C) {
75 app, err := ParseAppId("_python3.4")87 pyver := fmt.Sprintf("python%s", GetPyVer())
88 app, err := ParseAppId(fmt.Sprintf("_%s", pyver))
76 c.Assert(err, IsNil)89 c.Assert(err, IsNil)
77 c.Check(app.Package, Equals, "")90 c.Check(app.Package, Equals, "")
78 c.Check(app.InPackage(""), Equals, true)91 c.Check(app.InPackage(""), Equals, true)
79 c.Check(app.Application, Equals, "python3.4")92 c.Check(app.Application, Equals, pyver)
80 c.Check(app.Version, Equals, "")93 c.Check(app.Version, Equals, "")
81 c.Check(app.Click, Equals, false)94 c.Check(app.Click, Equals, false)
82 c.Check(app.Original(), Equals, "_python3.4")95 c.Check(app.Original(), Equals, fmt.Sprintf("_%s", pyver))
83 c.Check(app.Versioned(), Equals, "python3.4")96 c.Check(app.Versioned(), Equals, pyver)
84 c.Check(app.Base(), Equals, "python3.4")97 c.Check(app.Base(), Equals, pyver)
85 c.Check(app.DesktopId(), Equals, "python3.4.desktop")98 c.Check(app.DesktopId(), Equals, fmt.Sprintf("%s.desktop", pyver))
86 c.Check(app.DispatchPackage(), Equals, "python3.4")99 c.Check(app.DispatchPackage(), Equals, pyver)
87100
88 for _, s := range []string{"_.foo", "_foo/", "_/foo"} {101 for _, s := range []string{"_.foo", "_foo/", "_/foo"} {
89 app, err = ParseAppId(s)102 app, err = ParseAppId(s)
@@ -93,7 +106,8 @@
93}106}
94107
95func (cs *clickSuite) TestJSON(c *C) {108func (cs *clickSuite) TestJSON(c *C) {
96 for _, appId := range []string{"com.ubuntu.clock_clock", "com.ubuntu.clock_clock_10", "_python3.4"} {109 pyver := fmt.Sprintf("python%s", GetPyVer())
110 for _, appId := range []string{"com.ubuntu.clock_clock", "com.ubuntu.clock_clock_10", fmt.Sprintf("_%s", pyver)} {
97 app, err := ParseAppId(appId)111 app, err := ParseAppId(appId)
98 c.Assert(err, IsNil, Commentf(appId))112 c.Assert(err, IsNil, Commentf(appId))
99 b, err := json.Marshal(app)113 b, err := json.Marshal(app)
@@ -106,9 +120,10 @@
106}120}
107121
108func (cs *clickSuite) TestIcon(c *C) {122func (cs *clickSuite) TestIcon(c *C) {
109 app, err := ParseAppId("_python3.4")123 pyver := fmt.Sprintf("python%s", GetPyVer())
124 app, err := ParseAppId(fmt.Sprintf("_%s", pyver))
110 c.Assert(err, IsNil)125 c.Assert(err, IsNil)
111 c.Check(app.Icon(), Equals, "/usr/share/pixmaps/python3.4.xpm")126 c.Check(app.Icon(), Equals, fmt.Sprintf("/usr/share/pixmaps/%s.xpm", pyver))
112}127}
113128
114func (s *clickSuite) TestUser(c *C) {129func (s *clickSuite) TestUser(c *C) {
@@ -161,7 +176,7 @@
161func (s *clickSuite) TestInstalledLegacy(c *C) {176func (s *clickSuite) TestInstalledLegacy(c *C) {
162 u, err := User()177 u, err := User()
163 c.Assert(err, IsNil)178 c.Assert(err, IsNil)
164 app, err := ParseAppId("_python3.4")179 app, err := ParseAppId(fmt.Sprintf("_python%s", GetPyVer()))
165 c.Assert(err, IsNil)180 c.Assert(err, IsNil)
166 c.Check(u.Installed(app, false), Equals, true)181 c.Check(u.Installed(app, false), Equals, true)
167}182}
@@ -198,7 +213,7 @@
198func (s *clickSuite) TestSymbolicIconCallsSymbolic(c *C) {213func (s *clickSuite) TestSymbolicIconCallsSymbolic(c *C) {
199 symbolic = func(string) string { return "xyzzy" }214 symbolic = func(string) string { return "xyzzy" }
200 defer func() { symbolic = _symbolic }()215 defer func() { symbolic = _symbolic }()
201 app, err := ParseAppId("_python3.4")216 app, err := ParseAppId(fmt.Sprintf("_python%s", GetPyVer()))
202 c.Assert(err, IsNil)217 c.Assert(err, IsNil)
203 c.Check(app.SymbolicIcon(), Equals, "xyzzy")218 c.Check(app.SymbolicIcon(), Equals, "xyzzy")
204}219}
205220
=== modified file 'client/service/postal_test.go'
--- client/service/postal_test.go 2015-10-29 15:51:59 +0000
+++ client/service/postal_test.go 2015-11-20 14:56:43 +0000
@@ -134,6 +134,7 @@
134}134}
135135
136type fakeUrlDispatcher struct {136type fakeUrlDispatcher struct {
137 DispatchDone chan bool
137 DispatchCalls [][]string138 DispatchCalls [][]string
138 TestURLCalls []map[string][]string139 TestURLCalls []map[string][]string
139 NextTestURLResult bool140 NextTestURLResult bool
@@ -148,6 +149,7 @@
148 if fud.DispatchShouldFail {149 if fud.DispatchShouldFail {
149 return errors.New("fail!")150 return errors.New("fail!")
150 }151 }
152 fud.DispatchDone <- true
151 return nil153 return nil
152}154}
153155
@@ -196,7 +198,13 @@
196 ps.bus = testibus.NewTestingEndpoint(condition.Work(true), condition.Work(true))198 ps.bus = testibus.NewTestingEndpoint(condition.Work(true), condition.Work(true))
197 ps.notifBus = testibus.NewTestingEndpoint(condition.Work(true), condition.Work(true))199 ps.notifBus = testibus.NewTestingEndpoint(condition.Work(true), condition.Work(true))
198 ps.counterBus = testibus.NewTestingEndpoint(condition.Work(true), condition.Work(true))200 ps.counterBus = testibus.NewTestingEndpoint(condition.Work(true), condition.Work(true))
199 ps.accountsBus = testibus.NewTestingEndpoint(condition.Work(true), condition.Work(true), map[string]dbus.Variant{"IncomingMessageVibrate": dbus.Variant{true}})201 ps.accountsBus = testibus.NewTestingEndpoint(condition.Work(true), condition.Work(true), map[string]dbus.Variant{
202 "IncomingMessageVibrate": dbus.Variant{true},
203 "SilentMode": dbus.Variant{false},
204 "IncomingMessageSound": dbus.Variant{""},
205 "IncomingMessageVibrateSilentMode": dbus.Variant{false},
206 })
207
200 ps.hapticBus = testibus.NewTestingEndpoint(condition.Work(true), condition.Work(true))208 ps.hapticBus = testibus.NewTestingEndpoint(condition.Work(true), condition.Work(true))
201 ps.unityGreeterBus = testibus.NewTestingEndpoint(condition.Work(true), condition.Work(true), false)209 ps.unityGreeterBus = testibus.NewTestingEndpoint(condition.Work(true), condition.Work(true), false)
202 ps.winStackBus = testibus.NewTestingEndpoint(condition.Work(true), condition.Work(true), []windowstack.WindowsInfo{})210 ps.winStackBus = testibus.NewTestingEndpoint(condition.Work(true), condition.Work(true), []windowstack.WindowsInfo{})
@@ -557,14 +565,13 @@
557 svc.NotificationsEndp = endp565 svc.NotificationsEndp = endp
558 svc.UnityGreeterEndp = ps.unityGreeterBus566 svc.UnityGreeterEndp = ps.unityGreeterBus
559 svc.WindowStackEndp = ps.winStackBus567 svc.WindowStackEndp = ps.winStackBus
568 nopTicker := make(chan []interface{})
569 testibus.SetWatchSource(endp, "ActionInvoked", nopTicker)
570 defer close(nopTicker)
560 svc.launchers = map[string]launch_helper.HelperLauncher{}571 svc.launchers = map[string]launch_helper.HelperLauncher{}
561 svc.fallbackVibration = &launch_helper.Vibration{Pattern: []uint32{1}}572 svc.fallbackVibration = &launch_helper.Vibration{Pattern: []uint32{1}}
562 c.Assert(svc.Start(), IsNil)573 c.Assert(svc.Start(), IsNil)
563574
564 nopTicker := make(chan []interface{})
565 testibus.SetWatchSource(endp, "ActionInvoked", nopTicker)
566 defer close(nopTicker)
567
568 // Persist is false so we just check the log575 // Persist is false so we just check the log
569 card := &launch_helper.Card{Icon: "icon-value", Summary: "summary-value", Body: "body-value", Popup: true, Persist: false}576 card := &launch_helper.Card{Icon: "icon-value", Summary: "summary-value", Body: "body-value", Popup: true, Persist: false}
570 vib := json.RawMessage(`true`)577 vib := json.RawMessage(`true`)
@@ -660,20 +667,19 @@
660 app, _ := click.ParseAppId("com.example.test_test-app")667 app, _ := click.ParseAppId("com.example.test_test-app")
661 c.Assert(svc.Start(), IsNil)668 c.Assert(svc.Start(), IsNil)
662 fakeDisp := new(fakeUrlDispatcher)669 fakeDisp := new(fakeUrlDispatcher)
670 fakeDisp.DispatchDone = make(chan bool)
663 svc.urlDispatcher = fakeDisp671 svc.urlDispatcher = fakeDisp
664 fakeDisp.NextTestURLResult = true672 fakeDisp.NextTestURLResult = true
665 svc.messagingMenu = fmm673 svc.messagingMenu = fmm
666 aCh := make(chan *notifications.RawAction)674 aCh := make(chan *notifications.RawAction)
667 rCh := make(chan *reply.MMActionReply)675 rCh := make(chan *reply.MMActionReply)
668 bCh := make(chan bool)
669 go func() {676 go func() {
670 aCh <- nil // just in case?677 aCh <- nil // just in case?
671 aCh <- &notifications.RawAction{App: app, Action: "potato://", Nid: "xyzzy"}678 aCh <- &notifications.RawAction{App: app, Action: "potato://", Nid: "xyzzy"}
672 close(aCh)679 close(aCh)
673 bCh <- true
674 }()680 }()
675 go svc.handleActions(aCh, rCh)681 go svc.handleActions(aCh, rCh)
676 takeNextBool(bCh)682 takeNextBool(fakeDisp.DispatchDone)
677 fakeDisp.Lock.Lock()683 fakeDisp.Lock.Lock()
678 defer fakeDisp.Lock.Unlock()684 defer fakeDisp.Lock.Unlock()
679 c.Assert(len(fakeDisp.DispatchCalls), Equals, 1)685 c.Assert(len(fakeDisp.DispatchCalls), Equals, 1)
@@ -687,19 +693,18 @@
687 c.Assert(svc.Start(), IsNil)693 c.Assert(svc.Start(), IsNil)
688 fakeDisp := new(fakeUrlDispatcher)694 fakeDisp := new(fakeUrlDispatcher)
689 svc.urlDispatcher = fakeDisp695 svc.urlDispatcher = fakeDisp
696 fakeDisp.DispatchDone = make(chan bool)
690 fakeDisp.NextTestURLResult = true697 fakeDisp.NextTestURLResult = true
691 app, _ := click.ParseAppId("com.example.test_test-app")698 app, _ := click.ParseAppId("com.example.test_test-app")
692 aCh := make(chan *notifications.RawAction)699 aCh := make(chan *notifications.RawAction)
693 rCh := make(chan *reply.MMActionReply)700 rCh := make(chan *reply.MMActionReply)
694 bCh := make(chan bool)
695 go func() {701 go func() {
696 rCh <- nil // just in case?702 rCh <- nil // just in case?
697 rCh <- &reply.MMActionReply{App: app, Action: "potato://", Notification: "foo.bar"}703 rCh <- &reply.MMActionReply{App: app, Action: "potato://", Notification: "foo.bar"}
698 close(rCh)704 close(rCh)
699 bCh <- true
700 }()705 }()
701 go svc.handleActions(aCh, rCh)706 go svc.handleActions(aCh, rCh)
702 takeNextBool(bCh)707 takeNextBool(fakeDisp.DispatchDone)
703 fakeDisp.Lock.Lock()708 fakeDisp.Lock.Lock()
704 defer fakeDisp.Lock.Unlock()709 defer fakeDisp.Lock.Unlock()
705 c.Assert(len(fakeDisp.DispatchCalls), Equals, 1)710 c.Assert(len(fakeDisp.DispatchCalls), Equals, 1)
706711
=== modified file 'client/service/service_test.go'
--- client/service/service_test.go 2014-11-25 17:30:03 +0000
+++ client/service/service_test.go 2015-11-20 14:56:43 +0000
@@ -36,7 +36,9 @@
36 "launchpad.net/ubuntu-push/testing/condition"36 "launchpad.net/ubuntu-push/testing/condition"
37)37)
3838
39func TestService(t *testing.T) { TestingT(t) }39func TestService(t *testing.T) {
40 TestingT(t)
41}
4042
41type serviceSuite struct {43type serviceSuite struct {
42 log logger.Logger44 log logger.Logger
4345
=== modified file 'client/session/session_test.go'
--- client/session/session_test.go 2015-04-17 12:55:00 +0000
+++ client/session/session_test.go 2015-11-20 14:56:43 +0000
@@ -1021,8 +1021,20 @@
1021 }()1021 }()
1022}1022}
10231023
1024func (s *loopSuite) waitUntilRunning(c *C) {
1025 delay := time.Duration(1000)
1026 for i := 0; i < 5; i++ {
1027 if s.sess.State() == Running {
1028 return
1029 }
1030 time.Sleep(delay)
1031 delay *= 2
1032 }
1033 c.Check(s.sess.State(), Equals, Running)
1034}
1035
1024func (s *loopSuite) TestLoopReadError(c *C) {1036func (s *loopSuite) TestLoopReadError(c *C) {
1025 c.Check(s.sess.State(), Equals, Running)1037 s.waitUntilRunning(c)
1026 s.upCh <- errors.New("Read")1038 s.upCh <- errors.New("Read")
1027 err := <-s.sess.errCh1039 err := <-s.sess.errCh
1028 c.Check(err, ErrorMatches, "Read")1040 c.Check(err, ErrorMatches, "Read")
@@ -1030,7 +1042,7 @@
1030}1042}
10311043
1032func (s *loopSuite) TestLoopPing(c *C) {1044func (s *loopSuite) TestLoopPing(c *C) {
1033 c.Check(s.sess.State(), Equals, Running)1045 s.waitUntilRunning(c)
1034 c.Check(takeNext(s.downCh), Equals, "deadline 1ms")1046 c.Check(takeNext(s.downCh), Equals, "deadline 1ms")
1035 s.upCh <- protocol.PingPongMsg{Type: "ping"}1047 s.upCh <- protocol.PingPongMsg{Type: "ping"}
1036 c.Check(takeNext(s.downCh), Equals, protocol.PingPongMsg{Type: "pong"})1048 c.Check(takeNext(s.downCh), Equals, protocol.PingPongMsg{Type: "pong"})
@@ -1040,7 +1052,7 @@
1040}1052}
10411053
1042func (s *loopSuite) TestLoopLoopsDaLoop(c *C) {1054func (s *loopSuite) TestLoopLoopsDaLoop(c *C) {
1043 c.Check(s.sess.State(), Equals, Running)1055 s.waitUntilRunning(c)
1044 for i := 1; i < 10; i++ {1056 for i := 1; i < 10; i++ {
1045 c.Check(takeNext(s.downCh), Equals, "deadline 1ms")1057 c.Check(takeNext(s.downCh), Equals, "deadline 1ms")
1046 s.upCh <- protocol.PingPongMsg{Type: "ping"}1058 s.upCh <- protocol.PingPongMsg{Type: "ping"}
@@ -1053,7 +1065,7 @@
1053}1065}
10541066
1055func (s *loopSuite) TestLoopBroadcast(c *C) {1067func (s *loopSuite) TestLoopBroadcast(c *C) {
1056 c.Check(s.sess.State(), Equals, Running)1068 s.waitUntilRunning(c)
1057 b := &protocol.BroadcastMsg{1069 b := &protocol.BroadcastMsg{
1058 Type: "broadcast",1070 Type: "broadcast",
1059 AppId: "--ignored--",1071 AppId: "--ignored--",
@@ -1070,7 +1082,7 @@
1070}1082}
10711083
1072func (s *loopSuite) TestLoopNotifications(c *C) {1084func (s *loopSuite) TestLoopNotifications(c *C) {
1073 c.Check(s.sess.State(), Equals, Running)1085 s.waitUntilRunning(c)
10741086
1075 n1 := protocol.Notification{1087 n1 := protocol.Notification{
1076 AppId: "app1",1088 AppId: "app1",
@@ -1090,7 +1102,7 @@
1090}1102}
10911103
1092func (s *loopSuite) TestLoopSetParams(c *C) {1104func (s *loopSuite) TestLoopSetParams(c *C) {
1093 c.Check(s.sess.State(), Equals, Running)1105 s.waitUntilRunning(c)
1094 setParams := protocol.SetParamsMsg{1106 setParams := protocol.SetParamsMsg{
1095 Type: "setparams",1107 Type: "setparams",
1096 SetCookie: "COOKIE",1108 SetCookie: "COOKIE",
@@ -1104,7 +1116,7 @@
1104}1116}
11051117
1106func (s *loopSuite) TestLoopConnBroken(c *C) {1118func (s *loopSuite) TestLoopConnBroken(c *C) {
1107 c.Check(s.sess.State(), Equals, Running)1119 s.waitUntilRunning(c)
1108 broken := protocol.ConnBrokenMsg{1120 broken := protocol.ConnBrokenMsg{
1109 Type: "connbroken",1121 Type: "connbroken",
1110 Reason: "REASON",1122 Reason: "REASON",
@@ -1126,7 +1138,7 @@
1126 failure := errors.New("warn")1138 failure := errors.New("warn")
1127 log := s.sess.Log.(*helpers.TestLogger)1139 log := s.sess.Log.(*helpers.TestLogger)
11281140
1129 c.Check(s.sess.State(), Equals, Running)1141 s.waitUntilRunning(c)
1130 c.Check(takeNext(s.downCh), Equals, "deadline 1ms")1142 c.Check(takeNext(s.downCh), Equals, "deadline 1ms")
1131 log.ResetCapture()1143 log.ResetCapture()
1132 s.upCh <- warn1144 s.upCh <- warn
11331145
=== modified file 'config/config_test.go'
--- config/config_test.go 2014-05-16 15:37:24 +0000
+++ config/config_test.go 2015-11-20 14:56:43 +0000
@@ -344,7 +344,7 @@
344 "d": json.RawMessage(`"2s"`),344 "d": json.RawMessage(`"2s"`),
345 }345 }
346 readUsingFlags(p, reflect.ValueOf(&cfg))346 readUsingFlags(p, reflect.ValueOf(&cfg))
347 c.Check(buf.String(), Matches, `(?s).*-cfg@=<config.json>: get config values from file\n.*-d="2s": duration.*`)347 c.Check(buf.String(), Matches, `(?s).*get config values from file.*duration.*`)
348}348}
349349
350func (s *configFlagsSuite) TestReadUsingFlagsAlreadyParsed(c *C) {350func (s *configFlagsSuite) TestReadUsingFlagsAlreadyParsed(c *C) {
351351
=== modified file 'debian/rules'
--- debian/rules 2015-08-14 13:03:23 +0000
+++ debian/rules 2015-11-20 14:56:43 +0000
@@ -8,12 +8,6 @@
8 dh_auto_build --buildsystem=golang8 dh_auto_build --buildsystem=golang
9 (cd signing-helper && cmake . && make)9 (cd signing-helper && cmake . && make)
1010
11# overriding dh_auto_test because the http13client tests don't all pass on go < 1.3
12# (should go away once we ship go 1.3)
13override_dh_auto_test:
14 cd $$( find ./ -type d -regex '\./[^/]*/src/launchpad.net' -printf "%h\n" | head -n1) && \
15 env GOPATH=$$(cd ..; pwd) go test -v $$(env GOPATH=$$(cd ..; pwd) go list $(DH_GOPKG)/... | grep -v acceptance | grep -v http13client )
16
17override_dh_install:11override_dh_install:
18 dh_install -Xusr/bin/cmd --fail-missing12 dh_install -Xusr/bin/cmd --fail-missing
1913
2014
=== modified file 'dependencies.tsv'
--- dependencies.tsv 2015-03-19 14:35:51 +0000
+++ dependencies.tsv 2015-11-20 14:56:43 +0000
@@ -1,5 +1,5 @@
1code.google.com/p/go-uuid hg 7dda39b2e7d5e265014674c5af696ba4186679e9 111code.google.com/p/go-uuid hg 35bc42037350f0078e3c974c6ea690f1926603ab 14
2code.google.com/p/gosqlite hg 74691fb6f83716190870cde1b658538dd4b18eb0 152code.google.com/p/gosqlite hg 74691fb6f83716190870cde1b658538dd4b18eb0 15
3launchpad.net/go-dbus/v1 bzr jlenton@gmail.com-20141023032446-s5icvsucwlv5o38a 1293launchpad.net/go-dbus/v1 bzr jlenton@gmail.com-20150203130125-kqqbam1jsp3tmlk5 136
4launchpad.net/go-xdg/v0 bzr john.lenton@canonical.com-20140208094800-gubd5md7cro3mtxa 104launchpad.net/go-xdg/v0 bzr john.lenton@canonical.com-20140208094800-gubd5md7cro3mtxa 10
5launchpad.net/gocheck bzr gustavo@niemeyer.net-20140225173054-xu9zlkf9kxhvow02 875launchpad.net/gocheck bzr gustavo@niemeyer.net-20140225173054-xu9zlkf9kxhvow02 87
66
=== modified file 'http13client/z_last_test.go'
--- http13client/z_last_test.go 2014-03-19 20:20:19 +0000
+++ http13client/z_last_test.go 2015-11-20 14:56:43 +0000
@@ -5,7 +5,7 @@
5package http_test5package http_test
66
7import (7import (
8 "launchpad.net/ubuntu-push/http13client"8 "net/http"
9 "runtime"9 "runtime"
10 "sort"10 "sort"
11 "strings"11 "strings"
@@ -26,6 +26,7 @@
26 strings.Contains(stack, "created by net.startServer") ||26 strings.Contains(stack, "created by net.startServer") ||
27 strings.Contains(stack, "created by testing.RunTests") ||27 strings.Contains(stack, "created by testing.RunTests") ||
28 strings.Contains(stack, "closeWriteAndWait") ||28 strings.Contains(stack, "closeWriteAndWait") ||
29 strings.Contains(stack, "main.main(") ||
29 strings.Contains(stack, "testing.Main(") ||30 strings.Contains(stack, "testing.Main(") ||
30 // These only show up with GOTRACEBACK=2; Issue 5005 (comment 28)31 // These only show up with GOTRACEBACK=2; Issue 5005 (comment 28)
31 strings.Contains(stack, "runtime.goexit") ||32 strings.Contains(stack, "runtime.goexit") ||
3233
=== modified file 'identifier/testing/testing_test.go'
--- identifier/testing/testing_test.go 2014-08-04 20:40:50 +0000
+++ identifier/testing/testing_test.go 2015-11-20 14:56:43 +0000
@@ -17,9 +17,10 @@
17package testing17package testing
1818
19import (19import (
20 identifier ".."20 "testing"
21
21 . "launchpad.net/gocheck"22 . "launchpad.net/gocheck"
22 "testing"23 "launchpad.net/ubuntu-push/identifier"
23)24)
2425
25// hook up gocheck26// hook up gocheck
2627
=== modified file 'launch_helper/cual/cual_c.go'
--- launch_helper/cual/cual_c.go 2014-07-17 15:46:19 +0000
+++ launch_helper/cual/cual_c.go 2015-11-20 14:56:43 +0000
@@ -24,6 +24,8 @@
2424
25#define HELPER_ERROR g_quark_from_static_string ("cgo-ual-helper-error-quark")25#define HELPER_ERROR g_quark_from_static_string ("cgo-ual-helper-error-quark")
2626
27void helperDone(gpointer gp, const gchar * ciid);
28
27static void observer_of_stop (const gchar * app_id, const gchar * instance_id, const gchar * helper_type, gpointer user_data) {29static void observer_of_stop (const gchar * app_id, const gchar * instance_id, const gchar * helper_type, gpointer user_data) {
28 helperDone (user_data, instance_id);30 helperDone (user_data, instance_id);
29}31}
3032
=== modified file 'launch_helper/kindpool.go'
--- launch_helper/kindpool.go 2015-08-21 19:53:23 +0000
+++ launch_helper/kindpool.go 2015-11-20 14:56:43 +0000
@@ -26,7 +26,7 @@
26 "sync"26 "sync"
27 "time"27 "time"
2828
29 "launchpad.net/go-xdg/v0"29 xdg "launchpad.net/go-xdg/v0"
3030
31 "launchpad.net/ubuntu-push/click"31 "launchpad.net/ubuntu-push/click"
32 "launchpad.net/ubuntu-push/launch_helper/cual"32 "launchpad.net/ubuntu-push/launch_helper/cual"
3333
=== modified file 'launch_helper/kindpool_test.go'
--- launch_helper/kindpool_test.go 2015-08-21 19:53:23 +0000
+++ launch_helper/kindpool_test.go 2015-11-20 14:56:43 +0000
@@ -24,7 +24,7 @@
24 "path/filepath"24 "path/filepath"
25 "time"25 "time"
2626
27 "launchpad.net/go-xdg/v0"27 xdg "launchpad.net/go-xdg/v0"
28 . "launchpad.net/gocheck"28 . "launchpad.net/gocheck"
2929
30 "launchpad.net/ubuntu-push/click"30 "launchpad.net/ubuntu-push/click"
3131
=== modified file 'messaging/cmessaging/cmessaging_c.go'
--- messaging/cmessaging/cmessaging_c.go 2014-07-24 10:33:28 +0000
+++ messaging/cmessaging/cmessaging_c.go 2015-11-20 14:56:43 +0000
@@ -21,6 +21,8 @@
2121
22// this is a .go file instead of a .c file because of dh-golang limitations22// this is a .go file instead of a .c file because of dh-golang limitations
2323
24void handleActivate(gchar* c_action, const gchar * c_notification , gpointer obj);
25
24static void activate_cb(MessagingMenuMessage* msg, gchar* action, GVariant* parameter, gpointer obj) {26static void activate_cb(MessagingMenuMessage* msg, gchar* action, GVariant* parameter, gpointer obj) {
25 handleActivate(action, messaging_menu_message_get_id(msg), obj);27 handleActivate(action, messaging_menu_message_get_id(msg), obj);
26}28}
2729
=== modified file 'scripts/connect-many.py'
--- scripts/connect-many.py 2014-08-04 14:47:00 +0000
+++ scripts/connect-many.py 2015-11-20 14:56:43 +0000
@@ -16,7 +16,7 @@
16try:16try:
17 for i in range(soft+100):17 for i in range(soft+100):
18 s=socket.socket()18 s=socket.socket()
19 w = ssl.wrap_socket(s)19 w = ssl.wrap_socket(s, ssl_version=ssl.PROTOCOL_TLSv1)
20 w.settimeout(1)20 w.settimeout(1)
21 w.connect(addr)21 w.connect(addr)
22 conns.append(w)22 conns.append(w)
2323
=== modified file 'signing-helper/CMakeLists.txt'
--- signing-helper/CMakeLists.txt 2014-04-30 17:34:57 +0000
+++ signing-helper/CMakeLists.txt 2015-11-20 14:56:43 +0000
@@ -13,8 +13,8 @@
13SET (CMAKE_AUTOMOC ON)13SET (CMAKE_AUTOMOC ON)
14find_package(Qt5Core REQUIRED)14find_package(Qt5Core REQUIRED)
1515
16FILE (GLOB SIGNING_SOURCES signing*.cpp)16SET (SIGNING_SOURCES signing-helper.cpp)
17FILE (GLOB SIGNING_HEADERS signing*.h)17SET (SIGNING_HEADERS signing.h)
1818
19add_executable (${SIGNING_EXE}19add_executable (${SIGNING_EXE}
20 ${SIGNING_SOURCES}20 ${SIGNING_SOURCES}
2121
=== modified file 'urldispatcher/curldispatcher/curldispatcher_c.go'
--- urldispatcher/curldispatcher/curldispatcher_c.go 2014-08-29 16:36:30 +0000
+++ urldispatcher/curldispatcher/curldispatcher_c.go 2015-11-20 14:56:43 +0000
@@ -23,6 +23,8 @@
23#include <liburl-dispatcher-1/url-dispatcher.h>23#include <liburl-dispatcher-1/url-dispatcher.h>
24#include <glib.h>24#include <glib.h>
2525
26char* handleDispatchURLResult(const gchar * url, gboolean success, gpointer user_data);
27
26static void url_dispatch_callback(const gchar * url, gboolean success, gpointer user_data) {28static void url_dispatch_callback(const gchar * url, gboolean success, gpointer user_data) {
27 handleDispatchURLResult(url, success, user_data);29 handleDispatchURLResult(url, success, user_data);
28}30}

Subscribers

People subscribed via source and target branches