From fb0f66264bee902b46f2d0e2a1e24f19b25358dc Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Wed, 26 Oct 2022 19:30:22 -0500 Subject: [PATCH] Add tests for tighter file name patterns in bad directory names Also fixes a minor bug in the testsuite that prevented $BDIR from being properly substituted in messages for these tests. --- testsuite/gatekeeper.all/03_triplet.exp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testsuite/gatekeeper.all/03_triplet.exp b/testsuite/gatekeeper.all/03_triplet.exp index 7084cef..250d7c0 100644 --- a/testsuite/gatekeeper.all/03_triplet.exp +++ b/testsuite/gatekeeper.all/03_triplet.exp @@ -1013,8 +1013,10 @@ foreach FVER $DIRECTIVE_FORMAT_VERSIONS { foreach BDIR { foo/bar/../baz /foo/bar/baz + foo/+bar foo/-bar foo/.bar + foo/_bar } { check_triplet "bogus: v$FVER format directive\ with bad directory $BDIR" \ @@ -1035,7 +1037,7 @@ foreach FVER $DIRECTIVE_FORMAT_VERSIONS { } dsig { good 0C 1000 } file { test } fsig { good 0D 1000 } } - }] check { + }] check [subst { file-tree { { incoming stage pub archive } empty {} { in-stage } files { @@ -1050,7 +1052,7 @@ foreach FVER $DIRECTIVE_FORMAT_VERSIONS { } email-to { ftp-upload-script@gnu.org foo@example.gnu.org } - } + }] } check_triplet "bogus: v$FVER format directive with directory too deep" \ -- 2.25.1