diff --git a/tests/f b/tests/f --- a/tests/f +++ b/tests/f @@ -59,7 +59,7 @@ def visit(opts, filenames, outfile): if isfile: if opts.type: facts.append('file') - if opts.hexdump or opts.dump or opts.md5: + if opts.hexdump or opts.dump or opts.md5 or opts.sha1: content = open(f, 'rb').read() elif islink: if opts.type: diff --git a/tests/test-tools.t b/tests/test-tools.t --- a/tests/test-tools.t +++ b/tests/test-tools.t @@ -38,6 +38,9 @@ Tests of the file helper tool $ f foo foo: + $ f --sha1 foo + foo: sha1=f1d2d2f924e986ac86fdf7b36c94bcdf32beec15 + #if symlink $ f foo --mode foo: mode=644