Bugzilla – Attachment 2859 Details for
Bug 1585
Allow an `Include' option which reads another config file in place and does not error out when `Include' file not readable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
remove duplicate code from regress test
include-regress.patch (text/plain), 2.83 KB, created by
Jakub Jelen
on 2016-08-04 18:23:27 AEST
(
hide
)
Description:
remove duplicate code from regress test
Filename:
MIME Type:
Creator:
Jakub Jelen
Created:
2016-08-04 18:23:27 AEST
Size:
2.83 KB
patch
obsolete
>From 9fa88a01107103db37f4cc237de7ee7f22bd7a80 Mon Sep 17 00:00:00 2001 >From: Jakub Jelen <jjelen@redhat.com> >Date: Thu, 4 Aug 2016 10:17:12 +0200 >Subject: [PATCH] Remove duplicate code for include regression test > >--- > regress/cfginclude.sh | 141 -------------------------------------------------- > 1 file changed, 141 deletions(-) > >diff --git a/regress/cfginclude.sh b/regress/cfginclude.sh >index 2fc39ce..4284037 100644 >--- a/regress/cfginclude.sh >+++ b/regress/cfginclude.sh >@@ -140,147 +140,6 @@ _EOF > > trial a aa > >-# cleanup >-rm -f $OBJ/ssh_config.i $OBJ/ssh_config.i.* $OBJ/ssh_config.out >-# $OpenBSD: cfginclude.sh,v 1.2 2016/05/03 15:30:46 dtucker Exp $ >-# Placed in the Public Domain. >- >-tid="config include" >- >-cat > $OBJ/ssh_config.i << _EOF >-Match host a >- Hostname aa >- >-Match host b >- Hostname bb >- Include $OBJ/ssh_config.i.* >- >-Match host c >- Include $OBJ/ssh_config.i.* >- Hostname cc >- >-Match host m >- Include $OBJ/ssh_config.i.* >- >-Host d >- Hostname dd >- >-Host e >- Hostname ee >- Include $OBJ/ssh_config.i.* >- >-Host f >- Include $OBJ/ssh_config.i.* >- Hostname ff >- >-Host n >- Include $OBJ/ssh_config.i.* >-_EOF >- >-cat > $OBJ/ssh_config.i.0 << _EOF >-Match host xxxxxx >-_EOF >- >-cat > $OBJ/ssh_config.i.1 << _EOF >-Match host a >- Hostname aaa >- >-Match host b >- Hostname bbb >- >-Match host c >- Hostname ccc >- >-Host d >- Hostname ddd >- >-Host e >- Hostname eee >- >-Host f >- Hostname fff >-_EOF >- >-cat > $OBJ/ssh_config.i.2 << _EOF >-Match host a >- Hostname aaaa >- >-Match host b >- Hostname bbbb >- >-Match host c >- Hostname cccc >- >-Host d >- Hostname dddd >- >-Host e >- Hostname eeee >- >-Host f >- Hostname ffff >- >-Match all >- Hostname xxxx >-_EOF >- >-trial() { >- _host="$1" >- _exp="$2" >- ${REAL_SSH} -F $OBJ/ssh_config.i -G "$_host" > $OBJ/ssh_config.out || >- fatal "ssh config parse failed" >- _got=`grep -i '^hostname ' $OBJ/ssh_config.out | awk '{print $2}'` >- if test "x$_exp" != "x$_got" ; then >- fail "host $_host include fail: expected $_exp got $_got" >- fi >-} >- >-trial a aa >-trial b bb >-trial c ccc >-trial d dd >-trial e ee >-trial f fff >-trial m xxxx >-trial n xxxx >-trial x x >- >-# Prepare an included config with an error. >- >-cat > $OBJ/ssh_config.i.3 << _EOF >-Hostname xxxx >- Junk >-_EOF >- >-${REAL_SSH} -F $OBJ/ssh_config.i -G a 2>/dev/null && \ >- fail "ssh include allowed invalid config" >- >-${REAL_SSH} -F $OBJ/ssh_config.i -G x 2>/dev/null && \ >- fail "ssh include allowed invalid config" >- >-rm -f $OBJ/ssh_config.i.* >- >-# Ensure that a missing include is not fatal. >-cat > $OBJ/ssh_config.i << _EOF >-Include $OBJ/ssh_config.i.* >-Hostname aa >-_EOF >- >-trial a aa >- >-# Ensure that Match/Host in an included config does not affect parent. >-cat > $OBJ/ssh_config.i.x << _EOF >-Match host x >-_EOF >- >-trial a aa >- >-cat > $OBJ/ssh_config.i.x << _EOF >-Host x >-_EOF >- >-trial a aa >- > # Ensure that recursive includes are bounded. > cat > $OBJ/ssh_config.i << _EOF > Include $OBJ/ssh_config.i >-- >2.5.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1585
:
1623
|
2274
|
2647
|
2790
| 2859