← Commit list

65deb9f7d

Denys Vlasenko
Denys Vlasenko
2025-07-30
SUCCESS Duration: 155s

Subject

sha3sum: add -aBITS tests

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

testsuite/md5sum.tests+3 -3
@@ -32,9 +32,9 @@ text=`yes "$text" | head -c 9999`
result=`(
n=0
while test $n -le 999; do
- echo "$text" | head -c $n | "$sum"
+ echo "$text" | head -c $n | $sum
n=$(($n+1))
-done | "$sum"
+done | $sum
)`
if test x"$result" != x"$expected -"; then
echo "FAIL: $sum (r:$result exp:$expected)"
@@ -45,7 +45,7 @@ fi
# GNU compat: -c EMPTY must fail (exitcode 1)!
>EMPTY
-if "$sum" -c EMPTY 2>/dev/null; then
+if $sum -c EMPTY 2>/dev/null; then
echo "FAIL: $sum -c EMPTY"
: $((FAILCOUNT++))
else
testsuite/sha3sum.tests+5 -1
@@ -1,3 +1,7 @@
#!/bin/sh
-. ./md5sum.tests sha3sum 11659f09370139f8ef384f4a6260947fafa6e4fcd87a1ef3f35410e9
+ (. ./md5sum.tests sha3sum 11659f09370139f8ef384f4a6260947fafa6e4fcd87a1ef3f35410e9) \
+&& (. ./md5sum.tests "sha3sum -a224" 11659f09370139f8ef384f4a6260947fafa6e4fcd87a1ef3f35410e9) \
+&& (. ./md5sum.tests "sha3sum -a256" 6f69c8d36a9a579a943d878dab38c179d2a9dde12b244aa8840002c0f3d5bb73) \
+&& (. ./md5sum.tests "sha3sum -a384" 303913449042257996a869e0378323193b4f58d90eea801b12186a3d65640bd3403d3404c63527424ec43dff842c0cd0) \
+&& (. ./md5sum.tests "sha3sum -a512" e14814dccc2fef967af74eb6710885b35dfe660a362c0609b642404987d24a13dac66ad037e6affa5c42631110231655fcf4c972b1457ac49fb83af8113fc51f)