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/head.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/head.test')
-rwxr-xr-x | scripts/test/head.test | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/scripts/test/head.test b/scripts/test/head.test deleted file mode 100755 index eeb07e00..00000000 --- a/scripts/test/head.test +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -[ -f testing.sh ] && . testing.sh - -#testing "name" "command" "result" "infile" "stdin" - -testing "head, stdin" "head -n 1 && echo yes" "one\nyes\n" "" "one\ntwo" -testing "head, stdin via -" "head -n 1 - && echo yes" "one\nyes\n" "" "one\ntwo" -testing "head, file" "head input -n 1 && echo yes" "one\nyes\n" "one\ntwo" "" -testing "head, default lines" "head" "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n" "" "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12" - -echo "foo -bar -baz" > file1 -testing "head, multiple files" "head -n 2 input file1" "==> input <==\none\ntwo\n\n==> file1 <==\nfoo\nbar\n" "one\ntwo\nthree\n" "" -rm file1 - |