Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
f67868ff
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
大约 1 年 前同步成功
通知
9
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f67868ff
编写于
12月 06, 2000
作者:
B
Bodo Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Workaround for broken (or missing) bc.
上级
a6576c56
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
29 addition
and
2 deletion
+29
-2
test/Makefile.ssl
test/Makefile.ssl
+6
-2
test/bctest
test/bctest
+23
-0
未找到文件。
test/Makefile.ssl
浏览文件 @
f67868ff
...
@@ -195,8 +195,12 @@ test_bn:
...
@@ -195,8 +195,12 @@ test_bn:
@
echo
starting big number library
test
, could take a
while
...
@
echo
starting big number library
test
, could take a
while
...
@
./
$(BNTEST)
>
tmp.bntest
@
./
$(BNTEST)
>
tmp.bntest
@
echo
quit
>>
tmp.bntest
@
echo
quit
>>
tmp.bntest
@
echo
"running bc"
@
if
sh ./bctest
;
then
\
@
bc tmp.bntest 2>&1 |
$(PERL)
-e
'while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} print STDERR "."; $$i++;} print STDERR "\n$$i tests passed\n"'
echo
"running bc"
;
\
bc tmp.bntest 2>&1 |
$(PERL)
-e
'while (<STDIN>) {if (/^test (.*)/) {print STDERR "\nverify $$1";} elsif (!/^0$$/) {die "\nFailed! bc: $$_";} print STDERR "."; $$i++;} print STDERR "\n$$i tests passed\n"'
;
\
else
\
echo
"skipping bc-based verification"
;
\
fi
@
echo
'test a^b%c implementations'
@
echo
'test a^b%c implementations'
./
$(EXPTEST)
./
$(EXPTEST)
...
...
test/bctest
0 → 100755
浏览文件 @
f67868ff
#!/bin/sh
if
[
0
!=
"
`
bc
<<
\
EOF
obase=16
ibase=16
a=AD88C418F31B3FC712D0425001D522B3AE9134FF3A98C13C1FCC1682211195406C1A6C66C6A
\
CEEC1A0EC16950233F77F1C2F2363D56DD71A36C57E0B2511FC4BA8F22D261FE2E9356D99AF57
\
10F3817C0E05BF79C423C3F66FDF321BE8D3F18F625D91B670931C1EF25F28E489BDA1C5422D1
\
C3F6F7A1AD21585746ECC4F10A14A778AF56F08898E965E9909E965E0CB6F85B514150C644759
\
3BE731877B16EA07B552088FF2EA728AC5E0FF3A23EB939304519AB8B60F2C33D6BA0945B66F0
\
4FC3CADF855448B24A9D7640BCF473E
b=DCE91E7D120B983EA9A104B5A96D634DD644C37657B1C7860B45E6838999B3DCE5A555583C6
\
9209E41F413422954175A06E67FFEF6746DD652F0F48AEFECC3D8CAC13523BDAAD3F5AF4212BD
\
8B3CD64126E1A82E190228020C05B91C8B141F1110086FC2A4C6ED631EBA129D04BB9A19FC53D
\
3ED0E2017D60A68775B75481449
(a/b)*b + (a%b) - a
EOF`" ]
then
echo "bc does not work. Consider installing GNU bc." >&2
exit 1
else
exit 0
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录