[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] maint: fix factor's tests to use coreutil's own sha1sum
From: |
Bernhard Voelker |
Subject: |
[PATCH] maint: fix factor's tests to use coreutil's own sha1sum |
Date: |
Fri, 09 Nov 2012 15:12:24 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121025 Thunderbird/16.0.2 |
>From 3b16882dc7af6b84ad269f42a8d611c1fdcd0493 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <address@hidden>
Date: Fri, 9 Nov 2012 15:09:05 +0100
Subject: [PATCH] maint: 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.
---
tests/factor/run.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/factor/run.sh b/tests/factor/run.sh
index 33ec8cd..c292f2b 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
--
1.7.7
- [PATCH] maint: fix factor's tests to use coreutil's own sha1sum,
Bernhard Voelker <=