diff --git a/tests/README b/tests/README index 3f1740d2..b2025f86 100644 --- a/tests/README +++ b/tests/README @@ -125,10 +125,10 @@ Writing Tests ------------- The test script is written as a shell script. It should start -with the standard "#!/bin/bash" with copyright notices, and an +with the standard "#!/usr/bin/env bash" with copyright notices, and an assignment to variable 'test_description', like this: - #!/bin/bash + #!/usr/bin/env bash # # Copyright (c) 2005 Junio C Hamano # diff --git a/tests/actions-test-lib.sh b/tests/actions-test-lib.sh index 42185f24..541babb3 100644 --- a/tests/actions-test-lib.sh +++ b/tests/actions-test-lib.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash make_dummy_action() { diff --git a/tests/aggregate-results.sh b/tests/aggregate-results.sh index cbf64f64..46559cf3 100755 --- a/tests/aggregate-results.sh +++ b/tests/aggregate-results.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash [ "x$TERM" != "xdumb" ] && ( export TERM && diff --git a/tests/t0000-config.sh b/tests/t0000-config.sh index 1aced0cb..b82a867e 100755 --- a/tests/t0000-config.sh +++ b/tests/t0000-config.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='todo.sh configuration file location diff --git a/tests/t0001-null.sh b/tests/t0001-null.sh index 58f16e6a..14b2224f 100755 --- a/tests/t0001-null.sh +++ b/tests/t0001-null.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='todo.sh basic null functionality test. diff --git a/tests/t0002-actions.sh b/tests/t0002-actions.sh index 402ae6eb..5cacb068 100755 --- a/tests/t0002-actions.sh +++ b/tests/t0002-actions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='todo.sh actions.d diff --git a/tests/t0100-code-nobacktick.sh b/tests/t0100-code-nobacktick.sh index eb42fbc8..931c56cf 100755 --- a/tests/t0100-code-nobacktick.sh +++ b/tests/t0100-code-nobacktick.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='no old-style backtick command substitution diff --git a/tests/t1000-addlist.sh b/tests/t1000-addlist.sh index c20d257d..50f0a8b4 100755 --- a/tests/t1000-addlist.sh +++ b/tests/t1000-addlist.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='basic add and list functionality diff --git a/tests/t1010-add-date.sh b/tests/t1010-add-date.sh index 74f5917d..38260983 100755 --- a/tests/t1010-add-date.sh +++ b/tests/t1010-add-date.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='test the date on add feature diff --git a/tests/t1020-addtolistfile.sh b/tests/t1020-addtolistfile.sh index 5d827db2..87d7b930 100755 --- a/tests/t1020-addtolistfile.sh +++ b/tests/t1020-addtolistfile.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='basic addto and list functionality diff --git a/tests/t1030-addto-date.sh b/tests/t1030-addto-date.sh index 2cb7400f..88743b5c 100755 --- a/tests/t1030-addto-date.sh +++ b/tests/t1030-addto-date.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='test the date on addto feature diff --git a/tests/t1040-add-priority.sh b/tests/t1040-add-priority.sh index 3adaec61..329485fe 100755 --- a/tests/t1040-add-priority.sh +++ b/tests/t1040-add-priority.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='test the priority on add feature' . ./test-lib.sh diff --git a/tests/t1100-replace.sh b/tests/t1100-replace.sh index 67112d41..2416a5df 100755 --- a/tests/t1100-replace.sh +++ b/tests/t1100-replace.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='basic replace functionality diff --git a/tests/t1200-pri.sh b/tests/t1200-pri.sh index 54b610fd..08ce029f 100755 --- a/tests/t1200-pri.sh +++ b/tests/t1200-pri.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='basic priority functionality ' diff --git a/tests/t1250-listpri.sh b/tests/t1250-listpri.sh index 26303cbc..8cce291a 100755 --- a/tests/t1250-listpri.sh +++ b/tests/t1250-listpri.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='list priority functionality ' diff --git a/tests/t1300-ls.sh b/tests/t1300-ls.sh index 1ba25885..c862a9ed 100755 --- a/tests/t1300-ls.sh +++ b/tests/t1300-ls.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='list functionality diff --git a/tests/t1310-listcon.sh b/tests/t1310-listcon.sh index edf3bd91..0c878514 100755 --- a/tests/t1310-listcon.sh +++ b/tests/t1310-listcon.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='listcon functionality diff --git a/tests/t1320-listproj.sh b/tests/t1320-listproj.sh index 7fa9f10f..13d28b15 100755 --- a/tests/t1320-listproj.sh +++ b/tests/t1320-listproj.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='listproj functionality diff --git a/tests/t1330-ls-highlighting.sh b/tests/t1330-ls-highlighting.sh index 339b4ae5..ab652084 100755 --- a/tests/t1330-ls-highlighting.sh +++ b/tests/t1330-ls-highlighting.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='list highlighting diff --git a/tests/t1340-listescapes.sh b/tests/t1340-listescapes.sh index 32a1a76c..c6a7ff81 100755 --- a/tests/t1340-listescapes.sh +++ b/tests/t1340-listescapes.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='list with escape sequences diff --git a/tests/t1350-listall.sh b/tests/t1350-listall.sh index 72af1355..40c0ee5f 100755 --- a/tests/t1350-listall.sh +++ b/tests/t1350-listall.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='listall functionality ' diff --git a/tests/t1360-ls-project-context-highlighting.sh b/tests/t1360-ls-project-context-highlighting.sh index 019c75df..d13c786f 100755 --- a/tests/t1360-ls-project-context-highlighting.sh +++ b/tests/t1360-ls-project-context-highlighting.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='highlighting projects and contexts diff --git a/tests/t1380-ls-date-number-metadata-highlighting.sh b/tests/t1380-ls-date-number-metadata-highlighting.sh index e14bef25..1adbe91d 100755 --- a/tests/t1380-ls-date-number-metadata-highlighting.sh +++ b/tests/t1380-ls-date-number-metadata-highlighting.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='highlighting date, item numbers and metadata diff --git a/tests/t1400-prepend.sh b/tests/t1400-prepend.sh index 44d8f0e3..c45a04ae 100755 --- a/tests/t1400-prepend.sh +++ b/tests/t1400-prepend.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='basic prepend functionality ' diff --git a/tests/t1500-do.sh b/tests/t1500-do.sh index d359a49d..20b2bccf 100755 --- a/tests/t1500-do.sh +++ b/tests/t1500-do.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='do functionality ' diff --git a/tests/t1600-append.sh b/tests/t1600-append.sh index af25896c..0d350882 100755 --- a/tests/t1600-append.sh +++ b/tests/t1600-append.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='basic append functionality diff --git a/tests/t1700-depri.sh b/tests/t1700-depri.sh index f459ef10..33f65fab 100755 --- a/tests/t1700-depri.sh +++ b/tests/t1700-depri.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='basic depriority functionality ' diff --git a/tests/t1800-del.sh b/tests/t1800-del.sh index 356596fa..b9058ce5 100755 --- a/tests/t1800-del.sh +++ b/tests/t1800-del.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='basic del functionality ' diff --git a/tests/t1850-move.sh b/tests/t1850-move.sh index 2a9e6ea3..66f95d8e 100755 --- a/tests/t1850-move.sh +++ b/tests/t1850-move.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='basic move functionality ' diff --git a/tests/t1900-archive.sh b/tests/t1900-archive.sh index f8baca5e..af95ba0c 100755 --- a/tests/t1900-archive.sh +++ b/tests/t1900-archive.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='archive functionality diff --git a/tests/t1910-deduplicate.sh b/tests/t1910-deduplicate.sh index 67217864..186c6ec2 100755 --- a/tests/t1910-deduplicate.sh +++ b/tests/t1910-deduplicate.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='deduplicate functionality diff --git a/tests/t1950-report.sh b/tests/t1950-report.sh index 5e762e78..6b88d658 100755 --- a/tests/t1950-report.sh +++ b/tests/t1950-report.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='report functionality diff --git a/tests/t2000-multiline.sh b/tests/t2000-multiline.sh index fe35100d..06776804 100755 --- a/tests/t2000-multiline.sh +++ b/tests/t2000-multiline.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='Multi-line functionality' diff --git a/tests/t2100-help.sh b/tests/t2100-help.sh index 705ca1e7..ee8f57a6 100755 --- a/tests/t2100-help.sh +++ b/tests/t2100-help.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='help functionality diff --git a/tests/t2110-help-action.sh b/tests/t2110-help-action.sh index 06d910c8..ada2047b 100755 --- a/tests/t2110-help-action.sh +++ b/tests/t2110-help-action.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='built-in actions help functionality diff --git a/tests/t2120-shorthelp.sh b/tests/t2120-shorthelp.sh index 82275db5..fe50fb05 100755 --- a/tests/t2120-shorthelp.sh +++ b/tests/t2120-shorthelp.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='shorthelp functionality diff --git a/tests/t2200-no-done-report-files.sh b/tests/t2200-no-done-report-files.sh index a0a471fb..306fc4d2 100755 --- a/tests/t2200-no-done-report-files.sh +++ b/tests/t2200-no-done-report-files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='todo.sh configuration with a sole todo.txt data file. diff --git a/tests/t6000-completion.sh b/tests/t6000-completion.sh index 61cf5948..71036308 100755 --- a/tests/t6000-completion.sh +++ b/tests/t6000-completion.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='Bash completion functionality diff --git a/tests/t6010-completion-contexts.sh b/tests/t6010-completion-contexts.sh index 5cc7862d..fe0cac05 100755 --- a/tests/t6010-completion-contexts.sh +++ b/tests/t6010-completion-contexts.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='Bash context completion functionality diff --git a/tests/t6020-completion-projects.sh b/tests/t6020-completion-projects.sh index 11f554b5..73f7ef0a 100755 --- a/tests/t6020-completion-projects.sh +++ b/tests/t6020-completion-projects.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='Bash project completion functionality diff --git a/tests/t6030-completion-tasks.sh b/tests/t6030-completion-tasks.sh index 35fc055a..ff3b7a8a 100755 --- a/tests/t6030-completion-tasks.sh +++ b/tests/t6030-completion-tasks.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='Bash task number completion functionality diff --git a/tests/t6040-completion-files.sh b/tests/t6040-completion-files.sh index 94ff2ba7..959abf60 100755 --- a/tests/t6040-completion-files.sh +++ b/tests/t6040-completion-files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='Bash todo file completion functionality diff --git a/tests/t6050-completion-addons.sh b/tests/t6050-completion-addons.sh index 79ed0f19..20664590 100755 --- a/tests/t6050-completion-addons.sh +++ b/tests/t6050-completion-addons.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='Bash add-on action completion functionality diff --git a/tests/t6060-completion-addon-files.sh b/tests/t6060-completion-addon-files.sh index eb65662f..eb14e0d4 100755 --- a/tests/t6060-completion-addon-files.sh +++ b/tests/t6060-completion-addon-files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='Bash add-on action file completion functionality diff --git a/tests/t6080-completion-path.sh b/tests/t6080-completion-path.sh index 7ec777c5..01459e57 100755 --- a/tests/t6080-completion-path.sh +++ b/tests/t6080-completion-path.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='Bash completion with different path functionality diff --git a/tests/t6090-completion-aliases.sh b/tests/t6090-completion-aliases.sh index 7e9f00f3..4879d040 100755 --- a/tests/t6090-completion-aliases.sh +++ b/tests/t6090-completion-aliases.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='Bash completion with different aliases functionality diff --git a/tests/t6100-completion-help.sh b/tests/t6100-completion-help.sh index a0440c44..c6db96fd 100755 --- a/tests/t6100-completion-help.sh +++ b/tests/t6100-completion-help.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='Bash help completion functionality diff --git a/tests/t8000-actions.sh b/tests/t8000-actions.sh index 1c480c67..3f9c607d 100755 --- a/tests/t8000-actions.sh +++ b/tests/t8000-actions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='custom actions functionality diff --git a/tests/t8010-listaddons.sh b/tests/t8010-listaddons.sh index ee0495a9..a0426c5a 100755 --- a/tests/t8010-listaddons.sh +++ b/tests/t8010-listaddons.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='listaddons functionality diff --git a/tests/t8020-actions-help.sh b/tests/t8020-actions-help.sh index cc79bc14..449f46e8 100755 --- a/tests/t8020-actions-help.sh +++ b/tests/t8020-actions-help.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='custom actions help functionality diff --git a/tests/t9999-testsuite_example.sh b/tests/t9999-testsuite_example.sh index ef25884e..0228fc99 100755 --- a/tests/t9999-testsuite_example.sh +++ b/tests/t9999-testsuite_example.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='basic tests imported from previous framework ' diff --git a/tests/test-lib.sh b/tests/test-lib.sh index 4640c207..2f39877a 100644 --- a/tests/test-lib.sh +++ b/tests/test-lib.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright (c) 2005 Junio C Hamano # diff --git a/tests/testshell.sh b/tests/testshell.sh index 83abeaae..6008771f 100755 --- a/tests/testshell.sh +++ b/tests/testshell.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='Providing an interactive shell in the proper environment' . ./test-lib.sh