From b47912160f2336dde3901e588cc23fb2c2f8d9dc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 5 Jun 2023 10:12:46 +0000 Subject: [PATCH 17/23] tests: get rid of sha1sum.rb and rsha1() sh function These are no longer needed since Perl has long included Digest::SHA --- t/bin/sha1sum.rb | 17 ----------------- t/test-lib.sh | 4 ---- 2 files changed, 21 deletions(-) delete mode 100755 t/bin/sha1sum.rb diff --git a/t/bin/sha1sum.rb b/t/bin/sha1sum.rb deleted file mode 100755 index 53d68ce..0000000 --- a/t/bin/sha1sum.rb +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby -# -*- encoding: binary -*- -# Reads from stdin and outputs the SHA1 hex digest of the input - -require 'digest/sha1' -$stdout.sync = $stderr.sync = true -$stdout.binmode -$stdin.binmode -bs = 16384 -digest = Digest::SHA1.new -if buf = $stdin.read(bs) - begin - digest.update(buf) - end while $stdin.read(bs, buf) -end - -$stdout.syswrite("#{digest.hexdigest}\n") diff --git a/t/test-lib.sh b/t/test-lib.sh index e70d0c6..8613144 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -123,7 +123,3 @@ unicorn_wait_start () { # no need to play tricks with FIFOs since we got "ready_pipe" now unicorn_pid=$(cat $pid) } - -rsha1 () { - sha1sum.rb -}