-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cksum base64: update the GNU test to manage our output
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
cspell:disable-next-line: algs | ||
diff --git a/tests/cksum/cksum-base64.pl b/tests/cksum/cksum-base64.pl | ||
index a037a1628..c6d87d447 100755 | ||
--- a/tests/cksum/cksum-base64.pl | ||
+++ b/tests/cksum/cksum-base64.pl | ||
@@ -91,8 +91,8 @@ my $prog = 'cksum'; | ||
my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose); | ||
|
||
# Ensure hash names from cksum --help match those in @pairs above. | ||
-my $help_algs = join ' ', map { m{^ ([[:alpha:]]\S+)} } | ||
- grep { m{^ ([[:alpha:]]\S+)} } split ('\n', `cksum --help`); | ||
+my $help_algs = join ' ', map { m{^\s*-\s*([[:alpha:]]\S+):} ? $1 : () } | ||
+ grep { m{^\s*-\s*([[:alpha:]]\S+):} } split ('\n', `cksum --help`); | ||
my $test_algs = join ' ', map {$_->[0]} @pairs; | ||
$help_algs eq $test_algs or die "$help_algs not equal to\n$test_algs"; | ||
|