3
0

od.tests 624 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/sh
  2. # Copyright 2008 by Denys Vlasenko
  3. # Licensed under GPLv2, see file LICENSE in this source tree.
  4. . ./testing.sh
  5. # testing "test name" "commands" "expected result" "file input" "stdin"
  6. optional DESKTOP
  7. testing "od -b" \
  8. "od -b" \
  9. "\
  10. 0000000 110 105 114 114 117
  11. 0000005
  12. " \
  13. "" "HELLO"
  14. SKIP=
  15. optional DESKTOP LONG_OPTS
  16. testing "od -b --traditional" \
  17. "od -b --traditional" \
  18. "\
  19. 0000000 110 105 114 114 117
  20. 0000005
  21. " \
  22. "" "HELLO"
  23. SKIP=
  24. optional DESKTOP LONG_OPTS
  25. testing "od -b --traditional FILE" \
  26. "od -b --traditional input" \
  27. "\
  28. 0000000 110 105 114 114 117
  29. 0000005
  30. " \
  31. "HELLO" ""
  32. SKIP=
  33. exit $FAILCOUNT