Commit 04e97f26 authored by Sascha Steinbiss's avatar Sascha Steinbiss

initial commit

parent 6be087c8
golang-github-twstrike-otr3 (0.0~git20161015.0.744856d-1) UNRELEASED; urgency=medium
* Initial release (Closes: TODO)
-- Sascha Steinbiss <satta@debian.org> Fri, 21 Oct 2016 09:35:50 +0200
Source: golang-github-twstrike-otr3
Maintainer: Debian Go Packaging Team <pkg-go-maintainers@lists.alioth.debian.org>
Uploaders: Sascha Steinbiss <satta@debian.org>
Section: devel
Priority: extra
Build-Depends: debhelper (>= 9),
dh-golang,
golang-go
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-go/packages/golang-github-twstrike-otr3.git
Vcs-Git: https://anonscm.debian.org/git/pkg-go/packages/golang-github-twstrike-otr3.git
Homepage: https://github.com/twstrike/otr3
XS-Go-Import-Path: github.com/twstrike/otr3
Package: golang-github-twstrike-otr3-dev
Architecture: all
Depends: ${shlibs:Depends},
${misc:Depends},
golang-go
Description: A Go implementation of the OTR 3 protocol
OTR3 implements version 3 of the OTR standard. Implements feature parity
with libotr 4.1.0.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: otr3
Source: https://github.com/twstrike/otr3
Files: *
Copyright: 2015 STRIKE Team
License: GPL-3.0
Files: debian/*
Copyright: 2016 Sascha Steinbiss <satta@debian.org>
License: GPL-3.0
Comment: Debian packaging is licensed under the same terms as upstream
License: GPL-3.0
This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 3 of the License.
.
This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more
details.
.
You should have received a copy of the GNU General Public
License along with this package; if not, write to the Free
Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Boston, MA 02110-1301 USA
.
On Debian systems, the full text of the GNU General Public
License version 3 can be found in the file
`/usr/share/common-licenses/GPL-3`.
[DEFAULT]
pristine-tar = True
test_location.patch
Description: make test data discoverable
Author: Sascha Steinbiss <satta@debian.org>
--- a/keys_test.go
+++ b/keys_test.go
@@ -979,13 +979,13 @@
}
func Test_ImportKeysFromFile_willReturnAValidAccountReadFromAFile(t *testing.T) {
- res, err := ImportKeysFromFile("test_resources/valid_key.asc")
+ res, err := ImportKeysFromFile("/tmp/valid_key.asc")
assertDeepEquals(t, len(res), 1)
assertDeepEquals(t, err, nil)
}
func Test_ImportKeysFromFile_willReturnAnErrorIfTheFileIsinvalid(t *testing.T) {
- _, err := ImportKeysFromFile("test_resources/invalid_key.asc")
+ _, err := ImportKeysFromFile("/tmp/invalid_key.asc")
assertDeepEquals(t, err, newOtrError("couldn't import data into private key"))
}
@@ -1061,12 +1061,12 @@
priv.Parse(serializedPrivateKey)
acc := &Account{Name: "hello", Protocol: "go-xmpp", Key: priv}
- err := ExportKeysToFile([]*Account{acc}, "test_resources/test_export_of_keys.blah")
+ err := ExportKeysToFile([]*Account{acc}, "/tmp/test_export_of_keys.blah")
assertNil(t, err)
- res, err2 := ImportKeysFromFile("test_resources/test_export_of_keys.blah")
+ res, err2 := ImportKeysFromFile("/tmp/test_export_of_keys.blah")
- defer os.Remove("test_resources/test_export_of_keys.blah")
+ defer os.Remove("/tmp/test_export_of_keys.blah")
assertNil(t, err2)
assertDeepEquals(t, res[0].Key, acc.Key)
#!/usr/bin/make -f
%:
dh $@ --buildsystem=golang --with=golang
override_dh_auto_test:
cp test_resources/* /tmp
dh_auto_test --
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment