summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2020-01-09 11:40:42 +0000
committerColin Watson <cjwatson@debian.org>2020-01-09 11:41:10 +0000
commit0ca4e20a45c69f424bfc4d99fb90b24fcf4b40b5 (patch)
tree99b2670cea103c1bd65caee40d7fb0392650ed1d
parent7c1c5c532e31ab72f5f9bba44b858d4db0a68ad7 (diff)
parentdf3ad29af495185aa9b051028ae94b965a4b1659 (diff)
Stop using 2020 as a future date in regress tests
-rw-r--r--debian/.git-dpm4
-rw-r--r--debian/changelog7
-rw-r--r--debian/patches/regress-2020.patch44
-rw-r--r--debian/patches/series1
-rw-r--r--regress/cert-hostkey.sh2
-rw-r--r--regress/cert-userkey.sh2
6 files changed, 56 insertions, 4 deletions
diff --git a/debian/.git-dpm b/debian/.git-dpm
index 261adc808..ae884c895 100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@ -1,6 +1,6 @@
1# see git-dpm(1) from git-dpm package 1# see git-dpm(1) from git-dpm package
2cfa01c635debb10e05f5ac34d269809c77c582dc 2df3ad29af495185aa9b051028ae94b965a4b1659
3cfa01c635debb10e05f5ac34d269809c77c582dc 3df3ad29af495185aa9b051028ae94b965a4b1659
44213eec74e74de6310c27a40c3e9759a08a73996 44213eec74e74de6310c27a40c3e9759a08a73996
54213eec74e74de6310c27a40c3e9759a08a73996 54213eec74e74de6310c27a40c3e9759a08a73996
6openssh_8.1p1.orig.tar.gz 6openssh_8.1p1.orig.tar.gz
diff --git a/debian/changelog b/debian/changelog
index cf9fe8a24..73a037710 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
1openssh (1:8.1p1-4) UNRELEASED; urgency=medium
2
3 * Apply upstream patch to stop using 2020 as a future date in regress
4 tests.
5
6 -- Colin Watson <cjwatson@debian.org> Thu, 09 Jan 2020 11:40:46 +0000
7
1openssh (1:8.1p1-3) unstable; urgency=medium 8openssh (1:8.1p1-3) unstable; urgency=medium
2 9
3 [ Colin Watson ] 10 [ Colin Watson ]
diff --git a/debian/patches/regress-2020.patch b/debian/patches/regress-2020.patch
new file mode 100644
index 000000000..b46e0df31
--- /dev/null
+++ b/debian/patches/regress-2020.patch
@@ -0,0 +1,44 @@
1From df3ad29af495185aa9b051028ae94b965a4b1659 Mon Sep 17 00:00:00 2001
2From: "djm@openbsd.org" <djm@openbsd.org>
3Date: Fri, 3 Jan 2020 03:02:26 +0000
4Subject: upstream: what bozo decided to use 2020 as a future date in a regress
5
6test?
7
8OpenBSD-Regress-ID: 3b953df5a7e14081ff6cf495d4e8d40e153cbc3a
9
10Origin: upstream, https://anongit.mindrot.org/openssh.git/commit/?id=ff31f15773ee173502eec4d7861ec56f26bba381
11Last-Update: 2020-01-09
12
13Patch-Name: regress-2020.patch
14---
15 regress/cert-hostkey.sh | 2 +-
16 regress/cert-userkey.sh | 2 +-
17 2 files changed, 2 insertions(+), 2 deletions(-)
18
19diff --git a/regress/cert-hostkey.sh b/regress/cert-hostkey.sh
20index 86ea62504..844adabcc 100644
21--- a/regress/cert-hostkey.sh
22+++ b/regress/cert-hostkey.sh
23@@ -252,7 +252,7 @@ test_one() {
24 test_one "user-certificate" failure "-n $HOSTS"
25 test_one "empty principals" success "-h"
26 test_one "wrong principals" failure "-h -n foo"
27-test_one "cert not yet valid" failure "-h -V20200101:20300101"
28+test_one "cert not yet valid" failure "-h -V20300101:20320101"
29 test_one "cert expired" failure "-h -V19800101:19900101"
30 test_one "cert valid interval" success "-h -V-1w:+2w"
31 test_one "cert has constraints" failure "-h -Oforce-command=false"
32diff --git a/regress/cert-userkey.sh b/regress/cert-userkey.sh
33index 38c14a698..5cd02fc3f 100644
34--- a/regress/cert-userkey.sh
35+++ b/regress/cert-userkey.sh
36@@ -338,7 +338,7 @@ test_one() {
37 test_one "correct principal" success "-n ${USER}"
38 test_one "host-certificate" failure "-n ${USER} -h"
39 test_one "wrong principals" failure "-n foo"
40-test_one "cert not yet valid" failure "-n ${USER} -V20200101:20300101"
41+test_one "cert not yet valid" failure "-n ${USER} -V20300101:20320101"
42 test_one "cert expired" failure "-n ${USER} -V19800101:19900101"
43 test_one "cert valid interval" success "-n ${USER} -V-1w:+2w"
44 test_one "wrong source-address" failure "-n ${USER} -Osource-address=10.0.0.0/8"
diff --git a/debian/patches/series b/debian/patches/series
index 8c1046a74..19a6569b8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -23,3 +23,4 @@ debian-config.patch
23restore-authorized_keys2.patch 23restore-authorized_keys2.patch
24conch-old-privkey-format.patch 24conch-old-privkey-format.patch
25revert-ipqos-defaults.patch 25revert-ipqos-defaults.patch
26regress-2020.patch
diff --git a/regress/cert-hostkey.sh b/regress/cert-hostkey.sh
index 86ea62504..844adabcc 100644
--- a/regress/cert-hostkey.sh
+++ b/regress/cert-hostkey.sh
@@ -252,7 +252,7 @@ test_one() {
252test_one "user-certificate" failure "-n $HOSTS" 252test_one "user-certificate" failure "-n $HOSTS"
253test_one "empty principals" success "-h" 253test_one "empty principals" success "-h"
254test_one "wrong principals" failure "-h -n foo" 254test_one "wrong principals" failure "-h -n foo"
255test_one "cert not yet valid" failure "-h -V20200101:20300101" 255test_one "cert not yet valid" failure "-h -V20300101:20320101"
256test_one "cert expired" failure "-h -V19800101:19900101" 256test_one "cert expired" failure "-h -V19800101:19900101"
257test_one "cert valid interval" success "-h -V-1w:+2w" 257test_one "cert valid interval" success "-h -V-1w:+2w"
258test_one "cert has constraints" failure "-h -Oforce-command=false" 258test_one "cert has constraints" failure "-h -Oforce-command=false"
diff --git a/regress/cert-userkey.sh b/regress/cert-userkey.sh
index 38c14a698..5cd02fc3f 100644
--- a/regress/cert-userkey.sh
+++ b/regress/cert-userkey.sh
@@ -338,7 +338,7 @@ test_one() {
338test_one "correct principal" success "-n ${USER}" 338test_one "correct principal" success "-n ${USER}"
339test_one "host-certificate" failure "-n ${USER} -h" 339test_one "host-certificate" failure "-n ${USER} -h"
340test_one "wrong principals" failure "-n foo" 340test_one "wrong principals" failure "-n foo"
341test_one "cert not yet valid" failure "-n ${USER} -V20200101:20300101" 341test_one "cert not yet valid" failure "-n ${USER} -V20300101:20320101"
342test_one "cert expired" failure "-n ${USER} -V19800101:19900101" 342test_one "cert expired" failure "-n ${USER} -V19800101:19900101"
343test_one "cert valid interval" success "-n ${USER} -V-1w:+2w" 343test_one "cert valid interval" success "-n ${USER} -V-1w:+2w"
344test_one "wrong source-address" failure "-n ${USER} -Osource-address=10.0.0.0/8" 344test_one "wrong source-address" failure "-n ${USER} -Osource-address=10.0.0.0/8"