diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:39:23 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:39:23 +0000 |
commit | e3b16b3856bdd5c1645f4609d61bf5a16c026930 (patch) | |
tree | d9def3b6f6f46b166fc6f516775350fedeefbef6 /test/uscan | |
parent | Initial commit. (diff) | |
download | devscripts-e3b16b3856bdd5c1645f4609d61bf5a16c026930.tar.xz devscripts-e3b16b3856bdd5c1645f4609d61bf5a16c026930.zip |
Adding upstream version 2.19.5+deb10u1.upstream/2.19.5+deb10u1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/uscan')
27 files changed, 324 insertions, 0 deletions
diff --git a/test/uscan/PRIVATE_KEY.asc b/test/uscan/PRIVATE_KEY.asc new file mode 100644 index 0000000..01ca198 --- /dev/null +++ b/test/uscan/PRIVATE_KEY.asc @@ -0,0 +1,106 @@ +-----BEGIN PGP PRIVATE KEY BLOCK----- +Version: GnuPG v1 + +lQcYBFXnCocBEACkNFn2IKAMyk3zR8QMVmZuZOESBivnbVUHfXiVCVKBTzLGrIUQ +WlMjw02CXJyekjHyB3Eqik4X7TEv5EqKME2oXj0WrMZLQQvu+8Mmx67kaYUoYIoH +U0I/a0yyEkshfki5tsr9qPkgC6R5OSAuGVaL9SC1q+p3uMbHQGnLsBzY8I8S7Ac2 +gsPPQTtX1EK2ZQ1xPUD6NgmTQHlsyJLFhe5XUYxEJm/vn+dh+YAfloElQjdh/V03 +G/d5jte33TxbyNwjCzhlX4Fa+yh2RqsR5s4tHRsfIDte0MIE2vva8ctxeHMSSjRV +mSufkwSe/3ScY2fHcGI9UzgR1bcdJon0yLfbdZrnBruFVKj8xEEmkrL/kXCRu/2c +5d1vHwRtHSF7+sY+XubuOGDxkZYr8Kghv50YG8E8fPAhrPhult6fylKDDvFrc5Ai +RBmfJTXWjcGNgMkFjkXtWzqdgg91Rgr1MRqL9Jxn/30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zf4KLsYQIypEyU +6GcBMX5kjKKFrh30+e6atQ40LxRW5QgzEQsuDSBrp/x/qRv6i87oqHC5dG7pEYuv +E/Fpb3fSQPpbTY5SpKvqWTVYOpXy++QrtpWqOGsGbKUep1/QZzBQnh4HHNHSbKdv +o73RSCg82A2YxuKiN226pqhI2MaC2+4MZgF6VkF2gmSr/Q84RdlyCcNN2l9uwQ0b +hiYkB04m/uB1agIiz6OO4VXklUVrbXrvEJmr8At+he4bDL4+W3khKKhR8JzIcR15 +fj7ja+gBRx/hIanusYbjmA20JWdKNEL5IHJwIBsvfuA0kq+eqXDcgL/MndOFkpoG +LslyJAhdhGMS57UZKq70SkyhMhFNtPv+JQ7qXwrXK7GzfFmymaQVvZ3Csf3YkTsb +zGcO44Lin/0b4kRA4kVA6m2sVdW2unKVeQqXRAT9k4CRQe57YmwynTboD3/gClRJ +8QWLCPTqUI9wqKrfb/RXDgzQ5UBKBY97FD+xL2jSSzJpq4ycVvrYVU9aJmFawlLV +gfdfTLGy50iWTYVjjrYUfryPhW/BSc8/DlbiihPHUpZOPBeJ418upVVhLuyQPfev +9N/hp5UpLqojA4Ti2ygzdnZQTFnYV5hS/m/OsYs5I3ZVBo1+NnEk2JVdV3hgeLAl +2g== +=nZ3G +-----END PGP PRIVATE KEY BLOCK----- diff --git a/test/uscan/PUBLIC_KEY.asc b/test/uscan/PUBLIC_KEY.asc new file mode 100644 index 0000000..214a603 --- /dev/null +++ b/test/uscan/PUBLIC_KEY.asc @@ -0,0 +1,52 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1 + +mQINBFXnCocBEACkNFn2IKAMyk3zR8QMVmZuZOESBivnbVUHfXiVCVKBTzLGrIUQ +WlMjw02CXJyekjHyB3Eqik4X7TEv5EqKME2oXj0WrMZLQQvu+8Mmx67kaYUoYIoH +U0I/a0yyEkshfki5tsr9qPkgC6R5OSAuGVaL9SC1q+p3uMbHQGnLsBzY8I8S7Ac2 +gsPPQTtX1EK2ZQ1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7GECMqRMlOhnATF+ZIyiha4d9PnumrUONC8UVuUIMxELLg0ga6f8f6kb+ovO +6KhwuXRu6RGLrxPxaW930kD6W02OUqSr6lk1WDqV8vvkK7aVqjhrBmylHqdf0Gcw +UJ4eBxzR0mynb6O90UgoPNgNmMbiojdtuqaoSNjGgtvuDGYBelZBdoJkq/0POEXZ +cgnDTdpfbsENG4YmJAdOJv7gdWoCIs+jjuFV5JVFa2167xCZq/ALfoXuGwy+Plt5 +ISioUfCcyHEdeX4+42voAUcf4SGp7rGG45gNtCVnSjRC+SBycCAbL37gNJKvnqlw +3IC/zJ3ThZKaBi7JciQIXYRjEue1GSqu9EpMoTIRTbT7/iUO6l8K1yuxs3xZspmk +Fb2dwrH92JE7G8xnDuOC4p/9G+JEQOJFQOptrFXVtrpylXkKl0QE/ZOAkUHue2Js +Mp026A9/4ApUSfEFiwj06lCPcKiq32/0Vw4M0OVASgWPexQ/sS9o0ksyaauMnFb6 +2FVPWiZhWsJS1YH3X0yxsudIlk2FY462FH68j4VvwUnPPw5W4ooTx1KWTjwXieNf +LqVVYS7skD33r/Tf4aeVKS6qIwOE4tsoM3Z2UExZ2FeYUv5vzrGLOSN2VQaNfjZx +JNiVXVd4YHiwJdo= +=GzOB +-----END PGP PUBLIC KEY BLOCK----- diff --git a/test/uscan/ftpserver.py b/test/uscan/ftpserver.py new file mode 100644 index 0000000..1c573ed --- /dev/null +++ b/test/uscan/ftpserver.py @@ -0,0 +1,28 @@ +#!/usr/bin/python3 + +import os +import logging +from pyftpdlib.authorizers import DummyAuthorizer +from pyftpdlib.handlers import FTPHandler +from pyftpdlib.servers import FTPServer + + +def test(): + authorizer = DummyAuthorizer() + authorizer.add_anonymous(os.getcwd()) + + handler = FTPHandler + handler.authorizer = authorizer + + logging.basicConfig(filename='info.log', level=logging.INFO) + # logging.basicConfig(filename='debug.log', level=logging.DEBUG) + + ftpserver = FTPServer(("127.0.0.1", 0), handler) + sa = ftpserver.socket.getsockname() + with open('port', 'w') as f: + f.write(str(sa[1])) + ftpserver.serve_forever() + + +if __name__ == '__main__': + test() diff --git a/test/uscan/manual-test/Makefile b/test/uscan/manual-test/Makefile new file mode 100644 index 0000000..382e479 --- /dev/null +++ b/test/uscan/manual-test/Makefile @@ -0,0 +1,35 @@ +TOPSRCDIR := $(abspath $(CURDIR)/../../..) +PATH := $(TOPSRCDIR)/scripts:$(PATH) +PERL5LIB := $(TOPSRCDIR)/lib +export PATH +export PERL5LIB +COMMAND := uscan --no-conf --debug +KEEP_THESE := $(wildcard _*) +TOSS_THESE := $(filter-out $(KEEP_THESE) Makefile, $(wildcard *)) + +all: + $(MAKE) prep # always run first + $(MAKE) test + +# Single archive run +test-%: + cd $*; $(COMMAND) + touch $*/stamp + +# Many single archive runs +test: $(patsubst %,test-%,$(KEEP_THESE)) + +# Multiple archive run at once +multi: + $(COMMAND) + +prep: + $(MAKE) -C $(TOPSRCDIR)/scripts uscan mk-origtargz uupdate debchange + $(MAKE) -C $(TOPSRCDIR)/scripts uscan.pl_check + touch stamp + +clean-%: + -rm $*/stamp + +clean: $(patsubst %,clean-%,$(KEEP_THESE)) + -rm -rf $(TOSS_THESE) diff --git a/test/uscan/manual-test/_dh-make-golang/debian/changelog b/test/uscan/manual-test/_dh-make-golang/debian/changelog new file mode 100644 index 0000000..836ca5e --- /dev/null +++ b/test/uscan/manual-test/_dh-make-golang/debian/changelog @@ -0,0 +1,5 @@ +dh-make-golang (0~0.0-1) unstable; urgency=medium + + * dummy changelog. + + -- Osamu Aoki <osamu@debian.org> Sat, 13 Jan 2018 22:48:47 +0900 diff --git a/test/uscan/manual-test/_dh-make-golang/debian/rules b/test/uscan/manual-test/_dh-make-golang/debian/rules new file mode 100755 index 0000000..e69de29 --- /dev/null +++ b/test/uscan/manual-test/_dh-make-golang/debian/rules diff --git a/test/uscan/manual-test/_dh-make-golang/debian/source/format b/test/uscan/manual-test/_dh-make-golang/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/test/uscan/manual-test/_dh-make-golang/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/test/uscan/manual-test/_dh-make-golang/debian/watch b/test/uscan/manual-test/_dh-make-golang/debian/watch new file mode 100644 index 0000000..08c6c95 --- /dev/null +++ b/test/uscan/manual-test/_dh-make-golang/debian/watch @@ -0,0 +1,5 @@ +version=4 +opts="mode=git, pgpmode=none" \ +https://github.com/Debian/dh-make-golang \ +HEAD debian uupdate + diff --git a/test/uscan/manual-test/_dl-poly-classic/debian/changelog b/test/uscan/manual-test/_dl-poly-classic/debian/changelog new file mode 100644 index 0000000..90e29b1 --- /dev/null +++ b/test/uscan/manual-test/_dl-poly-classic/debian/changelog @@ -0,0 +1,5 @@ +dl-poly-classic (0~0.0-1) unstable; urgency=medium + + * dummy changelog. + + -- Osamu Aoki <osamu@debian.org> Sat, 13 Jan 2018 22:48:47 +0900 diff --git a/test/uscan/manual-test/_dl-poly-classic/debian/rules b/test/uscan/manual-test/_dl-poly-classic/debian/rules new file mode 100755 index 0000000..e69de29 --- /dev/null +++ b/test/uscan/manual-test/_dl-poly-classic/debian/rules diff --git a/test/uscan/manual-test/_dl-poly-classic/debian/source/format b/test/uscan/manual-test/_dl-poly-classic/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/test/uscan/manual-test/_dl-poly-classic/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/test/uscan/manual-test/_dl-poly-classic/debian/watch b/test/uscan/manual-test/_dl-poly-classic/debian/watch new file mode 100644 index 0000000..791b6d3 --- /dev/null +++ b/test/uscan/manual-test/_dl-poly-classic/debian/watch @@ -0,0 +1,7 @@ +version=4 +opts="hrefdecode=percent-encoding, pgpmode=no, \ + filenamemangle=s/.*dl_class_([\d.]+)\.tar\.gz/dl-poly-classic-$1\.tar\.gz/" \ +https://ccpforge.cse.rl.ac.uk/gf/project/dl_poly_classic/frs/ \ + /gf/download/frsrelease/\d+/\d+/dl_class_([\d.]+)\.tar\.gz debian uupdate + + diff --git a/test/uscan/manual-test/_osamu-utils/debian/changelog b/test/uscan/manual-test/_osamu-utils/debian/changelog new file mode 100644 index 0000000..c521065 --- /dev/null +++ b/test/uscan/manual-test/_osamu-utils/debian/changelog @@ -0,0 +1,5 @@ +osamu-utils (0~0.0-1) unstable; urgency=medium + + * dummy changelog. + + -- Osamu Aoki <osamu@debian.org> Sat, 13 Jan 2018 22:48:47 +0900 diff --git a/test/uscan/manual-test/_osamu-utils/debian/rules b/test/uscan/manual-test/_osamu-utils/debian/rules new file mode 100755 index 0000000..e69de29 --- /dev/null +++ b/test/uscan/manual-test/_osamu-utils/debian/rules diff --git a/test/uscan/manual-test/_osamu-utils/debian/source/format b/test/uscan/manual-test/_osamu-utils/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/test/uscan/manual-test/_osamu-utils/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/test/uscan/manual-test/_osamu-utils/debian/watch b/test/uscan/manual-test/_osamu-utils/debian/watch new file mode 100644 index 0000000..30f5597 --- /dev/null +++ b/test/uscan/manual-test/_osamu-utils/debian/watch @@ -0,0 +1,5 @@ +version=4 +opts="mode=git,pretty=describe,pgpmode=no, \ + uversionmangle=s/^/0.0~/" \ + https://github.com/osamuaoki/osamu-utils.git \ + HEAD debian uupdate diff --git a/test/uscan/manual-test/_tweeper/debian/changelog b/test/uscan/manual-test/_tweeper/debian/changelog new file mode 100644 index 0000000..285d2e8 --- /dev/null +++ b/test/uscan/manual-test/_tweeper/debian/changelog @@ -0,0 +1,5 @@ +tweeper (0~0.0-1) unstable; urgency=medium + + * dummy changelog. + + -- Osamu Aoki <osamu@debian.org> Sat, 13 Jan 2018 22:48:47 +0900 diff --git a/test/uscan/manual-test/_tweeper/debian/rules b/test/uscan/manual-test/_tweeper/debian/rules new file mode 100755 index 0000000..e69de29 --- /dev/null +++ b/test/uscan/manual-test/_tweeper/debian/rules diff --git a/test/uscan/manual-test/_tweeper/debian/source/format b/test/uscan/manual-test/_tweeper/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/test/uscan/manual-test/_tweeper/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/test/uscan/manual-test/_tweeper/debian/watch b/test/uscan/manual-test/_tweeper/debian/watch new file mode 100644 index 0000000..83948f3 --- /dev/null +++ b/test/uscan/manual-test/_tweeper/debian/watch @@ -0,0 +1,5 @@ +version=4 +opts="mode=git, gitmode=full, pgpmode=none" \ +http://git.ao2.it/tweeper.git \ +refs/tags/v([\d\.]+) debian uupdate + diff --git a/test/uscan/manual-test/_upspin/debian/changelog b/test/uscan/manual-test/_upspin/debian/changelog new file mode 100644 index 0000000..c39d194 --- /dev/null +++ b/test/uscan/manual-test/_upspin/debian/changelog @@ -0,0 +1,5 @@ +upspin (0~0.0-1) unstable; urgency=medium + + * dummy changelog. + + -- Osamu Aoki <osamu@debian.org> Sat, 13 Jan 2018 22:48:47 +0900 diff --git a/test/uscan/manual-test/_upspin/debian/rules b/test/uscan/manual-test/_upspin/debian/rules new file mode 100755 index 0000000..e69de29 --- /dev/null +++ b/test/uscan/manual-test/_upspin/debian/rules diff --git a/test/uscan/manual-test/_upspin/debian/source/format b/test/uscan/manual-test/_upspin/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/test/uscan/manual-test/_upspin/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/test/uscan/manual-test/_upspin/debian/watch b/test/uscan/manual-test/_upspin/debian/watch new file mode 100644 index 0000000..42c3945 --- /dev/null +++ b/test/uscan/manual-test/_upspin/debian/watch @@ -0,0 +1,5 @@ +version=4 +opts="mode=git, pgpmode=none" \ +https://upspin.googlesource.com/upspin \ +HEAD debian uupdate + diff --git a/test/uscan/s3bucket b/test/uscan/s3bucket new file mode 100644 index 0000000..1391f38 --- /dev/null +++ b/test/uscan/s3bucket @@ -0,0 +1,3 @@ +version=4 +opts="pagemangle=s%<Key>([^<]*)</Key>%<Key><a href="$1">$1</a></Key>%g" \ +http://s3.amazonaws.com/rds-downloads/RDSCli-([0-9].*).zip diff --git a/test/uscan/server-head.py b/test/uscan/server-head.py new file mode 100644 index 0000000..539e74a --- /dev/null +++ b/test/uscan/server-head.py @@ -0,0 +1,25 @@ +#!/usr/bin/python3 +import http.server +from http.server import SimpleHTTPRequestHandler +import logging + + +class GetHandler(SimpleHTTPRequestHandler): + def do_GET(self): + logging.error(self.headers) + SimpleHTTPRequestHandler.do_GET(self) + + +def test(): + Handler = GetHandler + httpd = http.server.HTTPServer(('', 0), Handler) + + sa = httpd.socket.getsockname() + with open('port', 'w') as f: + f.write(str(sa[1])) + + httpd.serve_forever() + + +if __name__ == '__main__': + test() diff --git a/test/uscan/server.py b/test/uscan/server.py new file mode 100644 index 0000000..c4d108c --- /dev/null +++ b/test/uscan/server.py @@ -0,0 +1,18 @@ +#!/usr/bin/python3 +import http.server +from http.server import SimpleHTTPRequestHandler + + +def test(): + SimpleHTTPRequestHandler.protocol_version = 'HTTP/1.0' + httpd = http.server.HTTPServer(('', 0), SimpleHTTPRequestHandler) + + sa = httpd.socket.getsockname() + with open('port', 'w') as f: + f.write(str(sa[1])) + + httpd.serve_forever() + + +if __name__ == '__main__': + test() |