From 30999e675f1bb9d0088d1fbd355a552e25b42f20 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 28 Feb 2024 16:28:33 +0100 Subject: [PATCH] Bug 36176: Reject cud- for stable branches Signed-off-by: Lucas Gass Signed-off-by: Marcel de Rooy --- xt/find-cud.t | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 xt/find-cud.t diff --git a/xt/find-cud.t b/xt/find-cud.t new file mode 100755 index 0000000000..0f0805773a --- /dev/null +++ b/xt/find-cud.t @@ -0,0 +1,26 @@ +#!/usr/bin/perl + +# This file is part of Koha. +# +# Koha is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# Koha is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Koha; if not, see . + +use Modern::Perl; +use Test::More tests => 1; +use Data::Dumper; + +my @files = `git grep 'cud-' ':(exclude)xt/find-cud.t'`; +chomp for @files; + +is( @files, 0, "This branch is not supposed to have 'cud-', see bug 34478." ) + or diag( Dumper \@files ); -- 2.20.1