tail.tests 434 B

1234567891011121314151617
  1. #!/bin/sh
  2. # Copyright 2009 by Denys Vlasenko <vda.linux@googlemail.com>
  3. # Licensed under GPL v2, see file LICENSE for details.
  4. . ./testing.sh
  5. # testing "test name" "command" "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 "tail: +N with N > file length" \
  9. "tail -c +55 2>&1; echo \$?" \
  10. "0\n" \
  11. "" "qw"
  12. exit $FAILCOUNT