Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102118824
D43988.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D43988.diff
View Options
diff --git a/sbin/md5/tests/md5_test.sh b/sbin/md5/tests/md5_test.sh
--- a/sbin/md5/tests/md5_test.sh
+++ b/sbin/md5/tests/md5_test.sh
@@ -369,6 +369,28 @@
}
+atf_test_case gnu_cflag_mode
+gnu_cflag_mode_head()
+{
+ atf_set descr "Verify handling of input modes in GNU check mode"
+ atf_set require.progs "sha1sum"
+}
+gnu_cflag_mode_body()
+{
+ printf "The Magic Words are 01010011 01001111\r\n" >input
+ # The first line is malformed per GNU coreutils but matches
+ # what we produce when mode == mode_bsd && output_mode ==
+ # output_reverse (i.e. `sha1 -r`) so we want to support it.
+ cat >digests <<EOF
+53d88300dfb2be42f0ef25e3d9de798e31bb7e69 input
+53d88300dfb2be42f0ef25e3d9de798e31bb7e69 *input
+53d88300dfb2be42f0ef25e3d9de798e31bb7e69 input
+2290cf6ba4ac5387e520088de760b71a523871b0 ^input
+c1065e0d2bbc1c67dcecee0187d61316fb9c5582 Uinput
+EOF
+ atf_check sha1sum --quiet --check digests
+}
+
atf_init_test_cases()
{
for alg in $algorithms ; do
@@ -383,4 +405,5 @@
done
atf_add_test_case gnu_bflag
atf_add_test_case gnu_cflag
+ atf_add_test_case gnu_cflag_mode
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 8, 8:40 PM (22 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14527722
Default Alt Text
D43988.diff (1 KB)
Attached To
Mode
D43988: md5: Add test case for GNU input modes.
Attached
Detach File
Event Timeline
Log In to Comment