在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ipfs-inactive/ipfs-sharness-tests开源软件地址:https://github.com/ipfs-inactive/ipfs-sharness-tests开源编程语言:Shell 99.1%开源软件介绍:This repository has been archived!This IPFS-related repository has been archived, and all issues are therefore frozen. If you want to ask a question or open/continue a discussion related to this repo, please visit the official IPFS forums. We archive repos for one or more of the following reasons:
Please note that in order to keep the primary IPFS GitHub org tidy, most archived repos are moved into the ipfs-inactive org. If you feel this repo should not be archived (or portions of it should be moved to a non-archived repo), please reach out and let us know. Archiving can always be reversed if needed. ipfs-sharness-testsIPFS whole tests using the Sharness framework Running all the testsJust use
The usual ipfs env flags also apply: # the output will make your eyes bleed
IPFS_LOGGING=debug TEST_VERBOSE=1 make Running just one testYou can run only one test script by launching it like a regular shell script:
Debugging one testYou can use the
SharnessWhen running sharness tests from main Makefile or when Please do not change anything in the "lib/sharness" directory. If you really need some changes in sharness, please fork it from its cannonical repo and send pull requests there. Writing TestsPlease have a look at existing tests and try to follow their example. When possible and not too inefficient, that means most of the time,
an ipfs command should not be on the left side of a pipe, because if
the ipfs command fails (exit non zero), the pipe will mask this failure.
For example after It should be possible to put most of the code inside DiagnosticsMake your test case output helpful for when running sharness verbosely. This means cating certain files, or running diagnostic commands. For example:
The Testing commands on daemon or mountedUse the provided functions in To init, run daemon, and mount in one go: test_launch_ipfs_daemon_and_mount
test_expect_success "'ipfs add --help' succeeds" '
ipfs add --help >actual
'
# other tests here...
# dont forget to kill the daemon!!
test_kill_ipfs_daemon To init, run daemon, and then mount separately: test_init_ipfs
# tests inited but not running here
test_launch_ipfs_daemon
# tests running but not mounted here
test_mount_ipfs
# tests mounted here
# dont forget to kill the daemon!!
test_kill_ipfs_daemon |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论