diff options
author | EuAndreh <eu@euandre.org> | 2021-06-22 12:42:33 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-22 12:42:33 -0300 |
commit | cd541acb31365259ccee9af9272e63692585ed6e (patch) | |
tree | 9acc806ee821085e982fd3702d3252bbcd0fad60 /tests/cli-opts.sh | |
parent | mv src/git-permalink.sh src/git-permalink.sh.in (diff) | |
download | git-permalink-cd541acb31365259ccee9af9272e63692585ed6e.tar.gz git-permalink-cd541acb31365259ccee9af9272e63692585ed6e.tar.xz |
tests/cli-opts.sh: Use portable "sh git-permalink" over "./git-permalink"
Diffstat (limited to 'tests/cli-opts.sh')
-rwxr-xr-x | tests/cli-opts.sh | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/cli-opts.sh b/tests/cli-opts.sh index 92716ab..26d2a58 100755 --- a/tests/cli-opts.sh +++ b/tests/cli-opts.sh @@ -10,7 +10,7 @@ test_langs() { OUT="$(mktemp)" ERR="$(mktemp)" - LANG=POSIX ./git-permalink -h 1>"$OUT" 2>"$ERR" + LANG=POSIX sh git-permalink -h 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr @@ -19,7 +19,7 @@ test_langs() { OUT="$(mktemp)" ERR="$(mktemp)" - LANG=C ./git-permalink -h 1>"$OUT" 2>"$ERR" + LANG=C sh git-permalink -h 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr @@ -28,7 +28,7 @@ test_langs() { OUT="$(mktemp)" ERR="$(mktemp)" - LANG=en_US.UTF-8 ./git-permalink -h 1>"$OUT" 2>"$ERR" + LANG=en_US.UTF-8 sh git-permalink -h 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr @@ -37,7 +37,7 @@ test_langs() { OUT="$(mktemp)" ERR="$(mktemp)" - LANG=en_AU.UTF-8 ./git-permalink -h 1>"$OUT" 2>"$ERR" + LANG=en_AU.UTF-8 sh git-permalink -h 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr @@ -46,7 +46,7 @@ test_langs() { OUT="$(mktemp)" ERR="$(mktemp)" - LANG=pt_BR.UTF-8 ./git-permalink -h 1>"$OUT" 2>"$ERR" + LANG=pt_BR.UTF-8 sh git-permalink -h 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr @@ -55,7 +55,7 @@ test_langs() { OUT="$(mktemp)" ERR="$(mktemp)" - LANG=pt_PT.UTF-8 ./git-permalink -h 1>"$OUT" 2>"$ERR" + LANG=pt_PT.UTF-8 sh git-permalink -h 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr @@ -64,7 +64,7 @@ test_langs() { OUT="$(mktemp)" ERR="$(mktemp)" - LANG=C LC_MESSAGES=pt ./git-permalink -h 1>"$OUT" 2>"$ERR" + LANG=C LC_MESSAGES=pt sh git-permalink -h 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr @@ -79,7 +79,7 @@ test_help_flags() { OUT="$(mktemp)" ERR="$(mktemp)" - LANG=en_US.UTF-8 ./git-permalink -h 1>"$OUT" 2>"$ERR" + LANG=en_US.UTF-8 sh git-permalink -h 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr @@ -88,7 +88,7 @@ test_help_flags() { OUT="$(mktemp)" ERR="$(mktemp)" - LANG=en_US.UTF-8 ./git-permalink --help 1>"$OUT" 2>"$ERR" + LANG=en_US.UTF-8 sh git-permalink --help 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr @@ -98,7 +98,7 @@ test_help_flags() { OUT="$(mktemp)" ERR="$(mktemp)" - LANG=en_US.UTF-8 ./git-permalink --something somethign -h 1>"$OUT" 2>"$ERR" + LANG=en_US.UTF-8 sh git-permalink --something somethign -h 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr @@ -108,7 +108,7 @@ test_help_flags() { OUT="$(mktemp)" ERR="$(mktemp)" - LANG=en_US.UTF-8 ./git-permalink --help more things 1>"$OUT" 2>"$ERR" + LANG=en_US.UTF-8 sh git-permalink --help more things 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr @@ -125,7 +125,7 @@ test_version_flags() { OUT="$(mktemp)" ERR="$(mktemp)" - ./git-permalink -V 1>"$OUT" 2>"$ERR" + sh git-permalink -V 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr @@ -133,7 +133,7 @@ test_version_flags() { OUT="$(mktemp)" ERR="$(mktemp)" - ./git-permalink --version 1>"$OUT" 2>"$ERR" + sh git-permalink --version 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr @@ -141,7 +141,7 @@ test_version_flags() { OUT="$(mktemp)" ERR="$(mktemp)" - ./git-permalink --abc xyz -V 1>"$OUT" 2>"$ERR" + sh git-permalink --abc xyz -V 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr @@ -149,7 +149,7 @@ test_version_flags() { OUT="$(mktemp)" ERR="$(mktemp)" - ./git-permalink --version things again 1>"$OUT" 2>"$ERR" + sh git-permalink --version things again 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr |