summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/include.rc8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/include.rc b/tests/include.rc
index 2c0d14362c2..6b933b036f7 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -519,6 +519,14 @@ which md5sum > /dev/null || {
}
}
+which sha1sum > /dev/null || {
+ sha1sum() {
+ for f in $* ; do
+ sha1 $f | awk -F'[() ]' '{printf("%s %s\n", $6, $3)}'
+ done
+ }
+}
+
alias EXPECT='_EXPECT $LINENO'
alias EXPECT_NOT='_EXPECT_NOT $LINENO'
alias TEST='_TEST $LINENO'