summaryrefslogtreecommitdiff
path: root/tests/factor
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2012-11-09 15:09:05 +0100
committerPádraig Brady <P@draigBrady.com>2012-11-09 14:50:23 +0000
commitcd4139df89d56d03c6e953153b33b33ba054b079 (patch)
treedab1d2841951c3b659cf55eaf4ca243cb4dbe45e /tests/factor
parent2aeb77bf0f005a079ebaa78caf0b4d21ff10563c (diff)
downloadcoreutils-cd4139df89d56d03c6e953153b33b33ba054b079.tar.xz
tests: fix factor's tests to use coreutil's own sha1sum
The test used the shasum utility which seems to belong to the perl package. On SLES-10.4, perl doesn't include this yet: + seq 0 10000000 + factor + shasum -c --status exp ./tests/factor/t00.sh: line 30: shasum: command not found + Exit 1 It is better to use our own stuff anyway. * tests/factor/run.sh: s/shasum/sha1sum/. Additionally, add sha1sum to the print_ver_ call.
Diffstat (limited to 'tests/factor')
-rw-r--r--tests/factor/run.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/factor/run.sh b/tests/factor/run.sh
index 33ec8cd69..c292f2bd8 100644
--- a/tests/factor/run.sh
+++ b/tests/factor/run.sh
@@ -17,7 +17,7 @@
# Don't run these tests by default.
very_expensive_
-print_ver_ factor seq
+print_ver_ factor seq sha1sum
# Template variables.
START=__START__
@@ -27,6 +27,6 @@ CKSUM=__CKSUM__
echo "$CKSUM -" > exp
f=1
-seq $START $END | factor | shasum -c --status exp && f=0
+seq $START $END | factor | sha1sum -c --status exp && f=0
Exit $f