diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/md5sum.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/md5sum.test b/tests/md5sum.test index f159d1ed..cda9871f 100755 --- a/tests/md5sum.test +++ b/tests/md5sum.test @@ -28,3 +28,12 @@ testing "-c spaces" "md5sum -c input || echo ok" \ rm "te st" empty testing "-c nolines" "md5sum -c input 2>/dev/null || echo ok" "ok\n" "" "" + +touch empty +echo "d41d8cd98f00b204e9800998ecf8427e empty" > list +echo "041d8cd98f00b204e9800998ecf8427e empty" > badlist +testing "--status okay" "md5sum --status -c list ; echo \$?" "0\n" "" "" +testing "--status fail" "md5sum --status -c badlist ; echo \$?" "1\n" "" "" +testing "-c multiple" "md5sum -c list badlist --status ; echo \$?" "1\n" "" "" + +rm empty list badlist |