aboutsummaryrefslogtreecommitdiff
path: root/scripts/test/xargs.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-09-20 13:09:14 -0500
committerRob Landley <rob@landley.net>2014-09-20 13:09:14 -0500
commit387edf547eb09b27ca6d49772eb048d729f09cf4 (patch)
tree59d482f33735690cab6d90723393afa1e2c8dce5 /scripts/test/xargs.test
parentd3df423a6cde0c6282658ff628574771d3824d71 (diff)
downloadtoybox-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/xargs.test')
-rwxr-xr-xscripts/test/xargs.test35
1 files changed, 0 insertions, 35 deletions
diff --git a/scripts/test/xargs.test b/scripts/test/xargs.test
deleted file mode 100755
index e49445d6..00000000
--- a/scripts/test/xargs.test
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-[ -f testing.sh ] && . testing.sh
-
-#testing "name" "command" "result" "infile" "stdin"
-
-testing "xargs" "xargs && echo yes" "hello\nyes\n" "" "hello"
-testing "xargs spaces" "xargs" \
- "one two three four\n" "" "one two\tthree \nfour\n\n"
-
-testing "xargs -n 0" "xargs -n 0 2>/dev/null || echo ok" "ok\n" \
- "" "one \ntwo\n three"
-testing "xargs -n 2" "xargs -n 2" "one two\nthree\n" "" "one \ntwo\n three"
-testing "xargs -n exact match" "xargs -n 3" "one two three\n" "" "one two three"
-testing "xargs2" "xargs -n2" "one two\nthree four\nfive\n" "" \
- "one two three four five"
-testing "xargs -s too long" "xargs -s 9 echo 2>/dev/null || echo ok" \
- "one\ntwo\nok\n" "" "one two three"
-testing "xargs -s 13" "xargs -s 13 echo" "one two\nthree\n" "" "one \ntwo\n three"
-testing "xargs -s 12" "xargs -s 12 echo" "one\ntwo\nthree\n" "" "one \ntwo\n three"
-
-touch one two three
-testing "xargs command -opt" "xargs -n2 ls -1" "one\ntwo\nthree\n" "" \
- "one two three"
-rm one two three
-
-exit
-
-testing "xargs -n exact match"
-testing "xargs -s exact match"
-testing "xargs -s 0"
-testing "xargs -s impossible"
-
-# xargs command_not_found - returns 127
-# xargs false - returns 1