diff -Nru mosh-1.4.0/debian/changelog mosh-1.4.0/debian/changelog --- mosh-1.4.0/debian/changelog 2023-01-04 16:32:24.000000000 +0000 +++ mosh-1.4.0/debian/changelog 2023-03-22 13:55:57.000000000 +0000 @@ -1,3 +1,14 @@ +mosh (1.4.0-1ubuntu1) lunar; urgency=medium + + [ Sergio Durigan Junior ] + * d/t/upstream-tests: New dep8 test which runs the upstream test + suite against a system mosh. + + [ Robie Basak ] + * d/t/smoke: smoke test for mosh using pexpect. + + -- Robie Basak Wed, 22 Mar 2023 13:36:00 +0000 + mosh (1.4.0-1build1) lunar; urgency=medium * Rebuild against new libprotobuf32. diff -Nru mosh-1.4.0/debian/control mosh-1.4.0/debian/control --- mosh-1.4.0/debian/control 2022-10-27 00:10:18.000000000 +0000 +++ mosh-1.4.0/debian/control 2023-03-22 13:39:04.000000000 +0000 @@ -1,7 +1,8 @@ Source: mosh Section: net Priority: optional -Maintainer: Keith Winstein +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Keith Winstein Uploaders: Alex Chernyakhovsky , Benjamin Barenblat Build-Depends: debhelper-compat (= 12), protobuf-compiler, libprotobuf-dev, pkg-config, libutempter-dev, zlib1g-dev, libncurses5-dev, libssl-dev, bash-completion, locales , tmux , less Rules-Requires-Root: binary-targets diff -Nru mosh-1.4.0/debian/tests/control mosh-1.4.0/debian/tests/control --- mosh-1.4.0/debian/tests/control 1970-01-01 00:00:00.000000000 +0000 +++ mosh-1.4.0/debian/tests/control 2023-03-22 13:55:57.000000000 +0000 @@ -0,0 +1,7 @@ +Tests: upstream-tests +Depends: @, @builddeps@ +Restrictions: allow-stderr + +Tests: smoke +Depends: mosh, openssh-server, python3-pexpect +Restrictions: allow-stderr, isolation-container, needs-root, superficial, breaks-testbed diff -Nru mosh-1.4.0/debian/tests/smoke mosh-1.4.0/debian/tests/smoke --- mosh-1.4.0/debian/tests/smoke 1970-01-01 00:00:00.000000000 +0000 +++ mosh-1.4.0/debian/tests/smoke 2023-03-22 13:55:57.000000000 +0000 @@ -0,0 +1,28 @@ +#!/bin/sh +set -ex + +# HOME may not be set in an autopkgtest environment, but we want to be on the +# same page as ssh on where ~/.ssh is. See LP: #2012514. +if [ "$HOME" = "" ]; then + export HOME=$(getent passwd `whoami`|cut -d: -f6) +fi + +echo 'mosh motd test' > /etc/motd +mkdir -pm700 "$HOME"/.ssh +if [ ! -f "$HOME"/.ssh/id_rsa ]; then + ssh-keygen -N '' -C mosh-smoke -f "$HOME"/.ssh/id_rsa +fi +if [ ! -f "$HOME"/.ssh/authorized_keys ] || ! grep -q mosh-smoke\$ "$HOME"/.ssh/authorized_keys; then + cat "$HOME"/.ssh/id_rsa.pub >> "$HOME"/.ssh/authorized_keys +fi +python3 <