Skip to content

Commit

Permalink
Add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Jul 20, 2024
1 parent 7ed18f1 commit 4fc02ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sush"
version = "0.5.4"
version = "0.5.5"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
6 changes: 6 additions & 0 deletions test/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1353,6 +1353,12 @@ res=$($com <<< 'set -e ; false || false ; echo NG')
res=$($com <<< 'set -e ; while false ; do echo NG ; done ; echo OK')
[ "$res" == "OK" ] || err $LINENO

res=$($com <<< 'set -o pipefail; ls aaaa | false | true')
[ "$?" == "1" ] || err $LINENO

res=$($com <<< 'set -o pipefail; set -e; false | true ; echo NG')
[ "$res" == "" ] || err $LINENO

### JOB TEST ###

res=$($com <<< 'sleep 1 & sleep 2 & sleep 3 & jobs')
Expand Down

0 comments on commit 4fc02ef

Please sign in to comment.