taskserver
taskserver copied to clipboard
Failed test 'Copyright is current'
Hello Gothenburg bit factory,
In $SOURCEDIR/test/all.log I have:
# ./version.t
1..1
not ok 1 - Copyright is current
# Failed test 'Copyright is current'
# at ./version.t line 35.
# '
# taskd 1.1.0 3caa8e2 built for linux
# Copyright (C) 2010 - 2015 Göteborg Bit Factory.
#
# Taskd may be copied only under the terms of the MIT license, which may be found in the taskd source kit.
# Documentation for taskd can be found using 'man taskd' or at http://taskwarrior.org
#
# '
# doesn't match '(?^:Copyright \(C\) \d{4} - 2022)'
# Looks like you failed 1 test of 1.
I'll propose a patch to prevent this unneeded fail during test.
Oops, preparing a patch was too optimistic. I see three options:
Option 1:
find . -type f | xargs sed --in-place 's/Copyright 2010 - 2015/Copyright 2010 - 2022/'
Option 2:
--- a/test/version.t
+++ b/test/version.t
@@ -32,7 +32,7 @@ use Test::More tests => 1;
my $year = (localtime (time))[5] + 1900;
my $output = qx{../src/taskd --version 2>&1};
-like ($output, qr/Copyright \(C\) \d{4} - $year/, 'Copyright is current');
+like ($output, qr/Copyright \(C\) \d{4} - 2015/, 'Copyright is current');
exit 0;
Option 3:
--- a/test/version.t
+++ /dev/null
@@ -1,38 +0,0 @@
-#! /usr/bin/env perl
-################################################################################
-##
-## Copyright 2010 - 2015, Göteborg Bit Factory.
-##
-## Permission is hereby granted, free of charge, to any person obtaining a copy
-## of this software and associated documentation files (the "Software"), to deal
-## in the Software without restriction, including without limitation the rights
-## to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-## copies of the Software, and to permit persons to whom the Software is
-## furnished to do so, subject to the following conditions:
-##
-## The above copyright notice and this permission notice shall be included
-## in all copies or substantial portions of the Software.
-##
-## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-## OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-## FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
-## THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-## LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-## OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-## SOFTWARE.
-##
-## http://www.opensource.org/licenses/mit-license.php
-##
-################################################################################
-
-use strict;
-use warnings;
-use Test::More tests => 1;
-
-my $year = (localtime (time))[5] + 1900;
-
-my $output = qx{../src/taskd --version 2>&1};
-like ($output, qr/Copyright \(C\) \d{4} - $year/, 'Copyright is current');
-
-exit 0;
-