diff options
author | Rob Landley <rob@landley.net> | 2016-03-02 15:20:04 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-03-02 15:20:04 -0600 |
commit | 336c44adca1768ada1e1e2f4d7dbbc33e994e582 (patch) | |
tree | 9780ee9602ffbca6b04e472d3ac0d158f92ac49c /tests/tac.test | |
parent | eb830728b12152702c3852d079ad5c8a7f6e709b (diff) | |
download | toybox-336c44adca1768ada1e1e2f4d7dbbc33e994e582.tar.gz |
Factor out command name at the start of test name, have runtest.sh print it.
Diffstat (limited to 'tests/tac.test')
-rwxr-xr-x | tests/tac.test | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/tac.test b/tests/tac.test index 96f25310..5c095b4b 100755 --- a/tests/tac.test +++ b/tests/tac.test @@ -8,19 +8,19 @@ echo -e "one-A\none-B" > file1 echo -e "two-A\ntwo-B" > file2 testing "tac" "tac && echo yes" "one-B\none-A\nyes\n" "" "one-A\none-B\n" -testing "tac -" "tac - && echo yes" "one-B\none-A\nyes\n" "" "one-A\none-B\n" -testing "tac file1 file2" "tac file1 file2" "one-B\none-A\ntwo-B\ntwo-A\n" "" "" -testing "tac - file" "tac - file1" "zero-B\nzero-A\none-B\none-A\n" "" "zero-A\nzero-B\n" -testing "tac file -" "tac file1 -" "one-B\none-A\nzero-B\nzero-A\n" "" "zero-A\nzero-B\n" +testing "-" "tac - && echo yes" "one-B\none-A\nyes\n" "" "one-A\none-B\n" +testing "file1 file2" "tac file1 file2" "one-B\none-A\ntwo-B\ntwo-A\n" "" "" +testing "- file" "tac - file1" "zero-B\nzero-A\none-B\none-A\n" "" "zero-A\nzero-B\n" +testing "file -" "tac file1 -" "one-B\none-A\nzero-B\nzero-A\n" "" "zero-A\nzero-B\n" -testing "tac file1 notfound file2" \ +testing "file1 notfound file2" \ "tac file1 notfound file2 2>stderr && echo ok ; tac stderr; rm stderr" \ "one-B\none-A\ntwo-B\ntwo-A\ntac: notfound: No such file or directory\n" "" "" -testing "tac no trailing newline" "tac -" "defabc\n" "" "abc\ndef" +testing "no trailing newline" "tac -" "defabc\n" "" "abc\ndef" # xputs used by tac does not propagate this error condition properly. -#testing "tac > /dev/full" \ +#testing "> /dev/full" \ # "tac - > /dev/full 2>stderr && echo ok; cat stderr; rm stderr" \ # "tac: write: No space left on device\n" "" "zero\n" |