testsuite: add tests for cut and grep;
[oweals/busybox.git] / testsuite / cut.tests
1 #!/bin/sh
2
3 # grep tests.
4 # Copyright 2007 by Denys Vlasenko <vda.linux@googlemail.com>
5 # Licensed under GPL v2, see file LICENSE for details.
6
7 . testing.sh
8
9 # testing "test name" "options" "expected result" "file input" "stdin"
10 #   file input will be file called "input"
11 #   test can create a file "actual" instead of writing to stdout
12
13 testing "cut '-' (stdin) and multi file handling" \
14         "cut -d' ' -f2 - input" \
15         "over\n""quick\n" \
16         "the quick brown fox\n" \
17         "jumps over the lazy dog\n" \
18
19 exit $FAILCOUNT