cut.tests 507 B

123456789101112131415161718
  1. #!/bin/sh
  2. # Copyright 2007 by Denys Vlasenko <vda.linux@googlemail.com>
  3. # Licensed under GPLv2, see file LICENSE in this source tree.
  4. . ./testing.sh
  5. # testing "test name" "options" "expected result" "file input" "stdin"
  6. # file input will be file called "input"
  7. # test can create a file "actual" instead of writing to stdout
  8. testing "cut '-' (stdin) and multi file handling" \
  9. "cut -d' ' -f2 - input" \
  10. "over\n""quick\n" \
  11. "the quick brown fox\n" \
  12. "jumps over the lazy dog\n" \
  13. exit $FAILCOUNT