diff options
author | Rob Landley <rob@landley.net> | 2014-09-20 13:09:14 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-09-20 13:09:14 -0500 |
commit | 387edf547eb09b27ca6d49772eb048d729f09cf4 (patch) | |
tree | 59d482f33735690cab6d90723393afa1e2c8dce5 /scripts/test/tac.test | |
parent | d3df423a6cde0c6282658ff628574771d3824d71 (diff) | |
download | toybox-387edf547eb09b27ca6d49772eb048d729f09cf4.tar.gz |
Move testsuite out of scripts/test into its own top level tests directory, and make ctrl-c kill "make test" more reliably.
Diffstat (limited to 'scripts/test/tac.test')
-rw-r--r-- | scripts/test/tac.test | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/scripts/test/tac.test b/scripts/test/tac.test deleted file mode 100644 index 96f25310..00000000 --- a/scripts/test/tac.test +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -[ -f testing.sh ] && . testing.sh - -#testing "name" "command" "result" "infile" "stdin" - - -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 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" - -# xputs used by tac does not propagate this error condition properly. -#testing "tac > /dev/full" \ -# "tac - > /dev/full 2>stderr && echo ok; cat stderr; rm stderr" \ -# "tac: write: No space left on device\n" "" "zero\n" - -# - -rm file1 file2
\ No newline at end of file |