Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/scenarios/cmd/cut/help/help_flag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: cut --help prints usage to stdout and exits 0.
# skip: rshell builtin help output differs from GNU coreutils
skip_assert_against_bash: true
input:
script: |+
cut --help
expect:
stdout_contains: ["Usage: cut"]
stderr: ""
exit_code: 0
9 changes: 9 additions & 0 deletions tests/scenarios/cmd/echo/help/help_flag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: echo --help is not recognised as a flag and is printed as literal text.
input:
script: |+
echo --help
expect:
stdout: |+
--help
stderr: ""
exit_code: 0
10 changes: 10 additions & 0 deletions tests/scenarios/cmd/head/help/help_flag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: head --help prints usage to stdout and exits 0.
# skip: rshell builtin help output differs from GNU coreutils
skip_assert_against_bash: true
input:
script: |+
head --help
expect:
stdout_contains: ["Usage: head"]
stderr: ""
exit_code: 0
10 changes: 10 additions & 0 deletions tests/scenarios/cmd/head/help/short_help_flag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: head -h prints usage to stdout and exits 0.
# skip: rshell builtin help output differs from GNU coreutils
skip_assert_against_bash: true
input:
script: |+
head -h
expect:
stdout_contains: ["Usage: head"]
stderr: ""
exit_code: 0
10 changes: 10 additions & 0 deletions tests/scenarios/cmd/printf/help/help_flag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: printf --help prints usage to stdout and exits 2.
# skip: rshell builtin help output differs from GNU coreutils; also uses exit 2
skip_assert_against_bash: true
input:
script: |+
printf --help
expect:
stdout_contains: ["printf: usage: printf"]
stderr: ""
Comment thread
thieman marked this conversation as resolved.
exit_code: 2
10 changes: 10 additions & 0 deletions tests/scenarios/cmd/sed/help/help_flag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: sed --help prints usage to stdout and exits 0.
# skip: rshell builtin help output differs from GNU coreutils
skip_assert_against_bash: true
input:
script: |+
sed --help
expect:
stdout_contains: ["Usage: sed"]
stderr: ""
exit_code: 0
10 changes: 10 additions & 0 deletions tests/scenarios/cmd/sed/help/short_help_flag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: sed -h prints usage to stdout and exits 0.
# skip: rshell builtin help output differs from GNU coreutils
skip_assert_against_bash: true
input:
script: |+
sed -h
expect:
stdout_contains: ["Usage: sed"]
stderr: ""
exit_code: 0
10 changes: 10 additions & 0 deletions tests/scenarios/cmd/sort/help/help_flag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: sort --help prints usage to stdout and exits 0.
# skip: rshell builtin help output differs from GNU coreutils
skip_assert_against_bash: true
input:
script: |+
sort --help
expect:
stdout_contains: ["Usage: sort"]
stderr: ""
exit_code: 0
10 changes: 10 additions & 0 deletions tests/scenarios/cmd/sort/help/short_help_flag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: sort -h prints usage to stdout and exits 0.
# skip: rshell builtin help output differs from GNU coreutils
skip_assert_against_bash: true
input:
script: |+
sort -h
expect:
stdout_contains: ["Usage: sort"]
stderr: ""
exit_code: 0
10 changes: 10 additions & 0 deletions tests/scenarios/cmd/tail/help/help_flag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: tail --help prints usage to stdout and exits 0.
# skip: rshell builtin help output differs from GNU coreutils
skip_assert_against_bash: true
input:
script: |+
tail --help
expect:
stdout_contains: ["Usage: tail"]
stderr: ""
exit_code: 0
10 changes: 10 additions & 0 deletions tests/scenarios/cmd/tail/help/short_help_flag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: tail -h prints usage to stdout and exits 0.
# skip: rshell builtin help output differs from GNU coreutils
skip_assert_against_bash: true
input:
script: |+
tail -h
expect:
stdout_contains: ["Usage: tail"]
stderr: ""
exit_code: 0
10 changes: 10 additions & 0 deletions tests/scenarios/cmd/wc/help/help_flag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
description: wc --help prints usage to stdout and exits 0.
# skip: rshell builtin help output differs from GNU coreutils
skip_assert_against_bash: true
input:
script: |+
wc --help
expect:
stdout_contains: ["Usage: wc"]
stderr: ""
exit_code: 0
Loading