From 69f590d35090f15dd6ed1a72c611778d2c49d8f2 Mon Sep 17 00:00:00 2001 From: Philip Orr Date: Tue, 25 Jul 2023 07:37:33 +0000 Subject: [PATCH] Bug 29324: change test to look for copyright This patch makes some changes to the test file find-license-problems.t so that it will also check if the file contains a copyright statement and fail if it doesn't. Note that the test file now only checks files that end with .pm, other file types are ignored. To test: 1. Apply the patch 2. run find-license-problems.t from the root of your Koha src directory: $ perl xt/find-license-problems.t 3. Note that now many more files are failing the test than before. --- xt/find-license-problems.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xt/find-license-problems.t b/xt/find-license-problems.t index 49e4a7c770..1417677b89 100755 --- a/xt/find-license-problems.t +++ b/xt/find-license-problems.t @@ -1,12 +1,12 @@ #!/usr/bin/perl # # Find copyright and license problems in Koha source files. At this -# time it only looks for references to the old FSF address in GPLv2 -# license notices, but it might in the future be extended to look for -# other things, too. +# time it looks for references to the old FSF address in GPLv2 +# license notices and checks if the file has a copyright statement, +# but it might in the future be extended to look for other things, too. # # Copyright 2010 Catalyst IT Ltd -# Copyright 2020 Koha Development Team +# Copyright 2020 Koha development team # # This file is part of Koha. # -- 2.30.2