From 5560f00c6fc3893b714016d76ad1b8e1417e82f8 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Fri, 15 Apr 2016 19:06:14 +0300 Subject: [PATCH] [PATCH] test: copyright information updates --- b8/20835ade43b7ebea00831df301d188d9e3b683 | 175 ++++++++++++++++++++++ 1 file changed, 175 insertions(+) create mode 100644 b8/20835ade43b7ebea00831df301d188d9e3b683 diff --git a/b8/20835ade43b7ebea00831df301d188d9e3b683 b/b8/20835ade43b7ebea00831df301d188d9e3b683 new file mode 100644 index 000000000..2a48fceea --- /dev/null +++ b/b8/20835ade43b7ebea00831df301d188d9e3b683 @@ -0,0 +1,175 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 524586DE00F5 + for ; Fri, 15 Apr 2016 09:06:31 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.282 +X-Spam-Level: +X-Spam-Status: No, score=0.282 tagged_above=-999 required=5 tests=[AWL=0.291, + HEADER_FROM_DIFFERENT_DOMAINS=0.001, T_RP_MATCHES_RCVD=-0.01] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id bvmxKtefbFue for ; + Fri, 15 Apr 2016 09:06:23 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id 79F5E6DE00EB + for ; Fri, 15 Apr 2016 09:06:22 -0700 (PDT) +Received: by guru.guru-group.fi (Postfix, from userid 501) + id 67BA510019D; Fri, 15 Apr 2016 19:06:15 +0300 (EEST) +From: Tomi Ollila +To: notmuch@notmuchmail.org +Cc: tomi.ollila@iki.fi +Subject: [PATCH] test: copyright information updates +Date: Fri, 15 Apr 2016 19:06:14 +0300 +Message-Id: <1460736374-10238-1-git-send-email-tomi.ollila@iki.fi> +X-Mailer: git-send-email 2.6.4 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Fri, 15 Apr 2016 16:06:31 -0000 + +Files in test directories had only copyright of a single individual, +of which code was adapted here as a base of the test system. +Since then many Notmuch Developers have contributed to the test +system, which is now acknowledged with a constant string in some +of the test files. + +The README file in test directory instructed new files contain a +copyright notice, but that has never been done (and it is also not +needed). To simplify things a bit (and lessen confusion) this +instruction is now removed. + +As a side enchangement, all of the 3 entries in the whole source +tree cd'ing to `dirname` of "$0" now uses syntax cd "$(dirname "$0")". +This makes these particular lines work when current working directory +is e.g. /c/Program Files/notmuch/test/. +(Probably it would fail elsewhere, though.) +--- + performance-test/notmuch-memory-test | 3 ++- + performance-test/notmuch-time-test | 3 ++- + test/README | 6 +----- + test/notmuch-test | 3 ++- + test/test-lib-common.sh | 1 + + test/test-lib.sh | 1 + + 6 files changed, 9 insertions(+), 8 deletions(-) + +diff --git a/performance-test/notmuch-memory-test b/performance-test/notmuch-memory-test +index 3cf28c7..2db25ef 100755 +--- a/performance-test/notmuch-memory-test ++++ b/performance-test/notmuch-memory-test +@@ -3,6 +3,7 @@ + # Run tests + # + # Copyright (c) 2005 Junio C Hamano ++# Copyright (c) 2010-today Notmuch Developers + # + # Adapted from a Makefile to a shell script by Carl Worth (2010) + +@@ -14,7 +15,7 @@ if [ ${BASH_VERSINFO[0]} -lt 4 ]; then + exit 1 + fi + +-cd $(dirname "$0") ++cd "$(dirname "$0")" + + for test in M*.sh; do + ./"$test" "$@" +diff --git a/performance-test/notmuch-time-test b/performance-test/notmuch-time-test +index 7113efb..262b5f9 100755 +--- a/performance-test/notmuch-time-test ++++ b/performance-test/notmuch-time-test +@@ -3,6 +3,7 @@ + # Run tests + # + # Copyright (c) 2005 Junio C Hamano ++# Copyright (c) 2010-today Notmuch Developers + # + # Adapted from a Makefile to a shell script by Carl Worth (2010) + +@@ -14,7 +15,7 @@ if [ ${BASH_VERSINFO[0]} -lt 4 ]; then + exit 1 + fi + +-cd $(dirname "$0") ++cd "$(dirname "$0")" + + for test in T*.sh; do + ./"$test" "$@" +diff --git a/test/README b/test/README +index bd9ab54..104a120 100644 +--- a/test/README ++++ b/test/README +@@ -145,13 +145,9 @@ Tddd-testname.sh where 'ddd' is three digits and 'testname' the "bare" + name of your test. Tests will be run in order the 'ddd' part determines. + + The test script should start with the standard "#!/usr/bin/env bash" +-with copyright notices, and an assignment to variable 'test_description', +-like this: ++and an assignment to variable 'test_description', like this: + + #!/usr/bin/env bash +- # +- # Copyright (c) 2005 Junio C Hamano +- # + + test_description='xxx test (option --frotz) + +diff --git a/test/notmuch-test b/test/notmuch-test +index b843712..967d61c 100755 +--- a/test/notmuch-test ++++ b/test/notmuch-test +@@ -3,6 +3,7 @@ + # Run tests + # + # Copyright (c) 2005 Junio C Hamano ++# Copyright (c) 2010-today Notmuch Developers + # + # Adapted from a Makefile to a shell script by Carl Worth (2010) + +@@ -14,7 +15,7 @@ if [ ${BASH_VERSINFO[0]} -lt 4 ]; then + exit 1 + fi + +-cd $(dirname "$0") ++cd "$(dirname "$0")" + + TESTS=${NOTMUCH_TESTS:-`echo T[0-9][0-9][0-9]-*.sh`} + +diff --git a/test/test-lib-common.sh b/test/test-lib-common.sh +index 4e17b78..15ebfb5 100644 +--- a/test/test-lib-common.sh ++++ b/test/test-lib-common.sh +@@ -1,5 +1,6 @@ + # + # Copyright (c) 2005 Junio C Hamano ++# Copyright (c) 2010-today Notmuch Developers + # + # This program is free software: you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by +diff --git a/test/test-lib.sh b/test/test-lib.sh +index 17e46f8..491db1f 100644 +--- a/test/test-lib.sh ++++ b/test/test-lib.sh +@@ -1,5 +1,6 @@ + # + # Copyright (c) 2005 Junio C Hamano ++# Copyright (c) 2010-today Notmuch Developers + # + # This program is free software: you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by +-- +1.9.3 + -- 2.26.2