mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
test: copyright information updates
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.)
This commit is contained in:
parent
fd3503e99e
commit
b183f2635e
6 changed files with 9 additions and 8 deletions
|
@ -3,6 +3,7 @@
|
|||
# Run tests
|
||||
#
|
||||
# Copyright (c) 2005 Junio C Hamano
|
||||
# Copyright (c) 2010 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" "$@"
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
# Run tests
|
||||
#
|
||||
# Copyright (c) 2005 Junio C Hamano
|
||||
# Copyright (c) 2010 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" "$@"
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
# Run tests
|
||||
#
|
||||
# Copyright (c) 2005 Junio C Hamano
|
||||
# Copyright (c) 2010 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`}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#
|
||||
# Copyright (c) 2005 Junio C Hamano
|
||||
# Copyright (c) 2010 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,5 +1,6 @@
|
|||
#
|
||||
# Copyright (c) 2005 Junio C Hamano
|
||||
# Copyright (c) 2010 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
|
||||
|
|
Loading…
Reference in a new issue