Skip to content

Commit 048bc46

Browse files
committed
Add tests for the new script name in help
1 parent aae65fb commit 048bc46

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/regressiontests/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ basic: $(TESTDIR)/basic.sh
266266
grep -q "local _key$$" $<
267267
$< -h | grep -q 'P percent: %'
268268
$< -h | grep -q 'O percent: %'
269+
$< -h | grep -q 'Usage: $(notdir $<) '
269270
! $< -h | grep -qe '\[--\]'
270271
test -z "$(SHELLCHECK)" || $(SHELLCHECK) "$(TESTDIR)/basic.sh"
271272
basic-dash: $(TESTDIR)/basic-dash.sh
@@ -275,6 +276,7 @@ basic-dash: $(TESTDIR)/basic-dash.sh
275276
$< LOO -b | grep -q BOOL=off,
276277
$< -h | grep -q 'P percent: %'
277278
$< -h | grep -q 'O percent: %'
279+
$< -h | grep -q 'Usage: $(notdir $<) '
278280
$< -h | grep -qe '\[--\]'
279281
test -z "$(SHELLCHECK)" || $(SHELLCHECK) "$(TESTDIR)/basic-dash.sh"
280282
test-void: $(TESTDIR)/test-void.sh

tests/regressiontests/make/tests/tests-base.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ADD_TEST_BASH([basic], [[
99
grep -q "local _key$$" $<
1010
$< -h | grep -q 'P percent: %'
1111
$< -h | grep -q 'O percent: %'
12+
$< -h | grep -q 'Usage: $(notdir $<) '
1213
! $< -h | grep -qe '\[--\]'
1314
]])
1415

@@ -20,6 +21,7 @@ ADD_TEST_DASH([basic], [[
2021
$< LOO -b | grep -q BOOL=off,
2122
$< -h | grep -q 'P percent: %'
2223
$< -h | grep -q 'O percent: %'
24+
$< -h | grep -q 'Usage: $(notdir $<) '
2325
$< -h | grep -qe '\[--\]'
2426
]])
2527

0 commit comments

Comments
 (0)