Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Autopkgtest should cover Ed25519 as well
· 2a55855b
Daniel Kahn Gillmor
authored
Jan 24, 2019
2a55855b
cherry-pick three upstream testing patches
· a2abfdf6
Daniel Kahn Gillmor
authored
Jan 24, 2019
a2abfdf6
Hide whitespace changes
Inline
Side-by-side
debian/patches/0001-Expose-sshd-logs-when-ssh-test-fails.patch
0 → 100644
View file @
a2abfdf6
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Thu, 24 Jan 2019 15:33:32 -0500
Subject: Expose sshd logs when ssh test fails
(cherry picked from commit 27a86a05d74ca8f03e574d9776c2f0efd370ed17)
---
tests/basic | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/basic b/tests/basic
index 8815d69..5bf1149 100755
--- a/tests/basic
+++ b/tests/basic
@@ -87,6 +87,7 @@
ssh_test() {
return 0
else
echo "##### ssh connection test FAILED. returned: $RETURN, expected: $CODE"
+ cat "$TEMPDIR/sshd.log"
return 1
fi
}
debian/patches/0002-Ensure-that-make-test-ed25519-works-when-no-tty-is-p.patch
0 → 100644
View file @
a2abfdf6
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Thu, 24 Jan 2019 16:57:26 -0500
Subject: Ensure that "make test-ed25519" works when no tty is present
(cherry picked from commit a8f4ac40bdf8d3a5331ca9b10e2c49a7af7d0e66)
---
tests/basic | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/basic b/tests/basic
index 5bf1149..d5c4692 100755
--- a/tests/basic
+++ b/tests/basic
@@ -344,7 +344,7 @@
if [ "$MONKEYSPHERE_TEST_USE_ED25519" = true ]; then
echo "### generating ed25519 key for testuser..."
# from the imported secret key
USER_FPR=8A4B353B4CBA6F30625498BAE00B5EEEBA79B482
- gpg --quick-add-key "$USER_FPR" ed25519 auth 2d
+ gpg --batch --no-tty --quick-add-key "$USER_FPR" ed25519 auth 2d
else
echo "### generating standard monkeysphere key for testuser..."
monkeysphere gen-subkey
debian/patches/0003-Dump-remaining-jobs-during-test-cleanup.patch
0 → 100644
View file @
a2abfdf6
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Thu, 24 Jan 2019 15:53:55 -0500
Subject: Dump remaining jobs during test cleanup
See https://bugs.debian.org/920038 for more information about why this
additional debugging information might be useful.
(cherry picked from commit 318134aaa04befb6c1cf99b1b5ed21ec16ed33ff)
---
tests/common | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/common b/tests/common
index 727ad0f..0fc6c19 100644
--- a/tests/common
+++ b/tests/common
@@ -33,5 +33,6 @@
cleanup() {
kill "$SSHD_PID"
fi
+ jobs
wait
}
debian/patches/series
0 → 100644
View file @
a2abfdf6
0001-Expose-sshd-logs-when-ssh-test-fails.patch
0002-Ensure-that-make-test-ed25519-works-when-no-tty-is-p.patch
0003-Dump-remaining-jobs-during-test-cleanup.patch
debian/tests/control
View file @
a2abfdf6
...
...
@@ -4,3 +4,6 @@ Restrictions: allow-stderr
Test-Command: MONKEYSPHERE_TEST_USE_SYSTEM=true MONKEYSPHERE_TEST_NO_EXAMINE=true tests/basic
Depends: @, openssh-server, openssl, socat, cpio
Test-Command: MONKEYSPHERE_TEST_USE_SYSTEM=true MONKEYSPHERE_TEST_NO_EXAMINE=true MONKEYSPHERE_TEST_USE_ED25519=true tests/basic
Depends: @, openssh-server, openssl, socat, cpio