aboutsummaryrefslogtreecommitdiff
path: root/testsuite/cut.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/cut.tests')
-rw-r--r--testsuite/cut.tests19
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/cut.tests b/testsuite/cut.tests
new file mode 100644
index 000000000..e332e801d
--- /dev/null
+++ b/testsuite/cut.tests
@@ -0,0 +1,19 @@
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
13testing "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
19exit $FAILCOUNT