Ai
1 Star 0 Fork 2

BuildOpenSource/busybox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
hexdump.tests 719 Bytes
一键复制 编辑 原始数据 按行查看 历史
Denys Vlasenko 提交于 2020-10-21 01:26 +08:00 . hexdump: fix dup block comparison
#!/bin/sh
# Copyright 2018 by Denys Vlasenko <vda.linux@googlemail.com>
# Licensed under GPLv2, see file LICENSE in this source tree.
. ./testing.sh
# testing "description" "command" "result" "infile" "stdin"
testing 'hexdump -C with four NULs' \
'hexdump -C' \
"\
00000000 00 00 00 00 |....|
00000004
" \
'' \
'\0\0\0\0'
testing "hexdump does not think last padded block matches any full block" \
"hexdump -e '1/1 \"%02x|\"1/1 \"%02x!\\n\"'" \
"\
00|00!
*
00| !
" \
'' \
'\0\0\0\0\0\0\0\0\0\0\0'
testing "hexdump thinks last full block can match" \
"hexdump -e '1/1 \"%02x|\"1/1 \"%02x!\\n\"'" \
"\
00|00!
*
" \
'' \
'\0\0\0\0\0\0\0\0\0\0\0\0'
exit $FAILCOUNT
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/build-open-source/busybox.git
git@gitee.com:build-open-source/busybox.git
build-open-source
busybox
busybox
master

搜索帮助