hexdump.tests 385 B

123456789101112131415161718
  1. #!/bin/sh
  2. # Copyright 2018 by Denys Vlasenko <vda.linux@googlemail.com>
  3. # Licensed under GPLv2, see file LICENSE in this source tree.
  4. . ./testing.sh
  5. # testing "description" "command" "result" "infile" "stdin"
  6. testing 'hexdump -C with four NULs' \
  7. 'hexdump -C' \
  8. "\
  9. 00000000 00 00 00 00 |....|
  10. 00000004
  11. " \
  12. '' \
  13. '\0\0\0\0'
  14. exit $FAILCOUNT