mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 20:07:45 +08:00
@jbenet @chriscool (not to be merged into master) This is a hack to run sharness tests on th ipfs2 binary. Instead of compiling cmd/ipfs, it compiles cmd/ipfs2 and copies this into test/bin/ipfs. I thought this would be enough to pass the `basic-commands` test, but it's not. Although the output is fairly similar, the `ipfs version` test fails. ``` test (feat/test2) λ. diff version1 version2 1c1 < ipfs version 0.1.7 --- > ipfs version 0.1.5 ``` I'm not very experienced with `sh` scripting, so perhaps I'm missing a key ingredient or maybe misunderstanding the the tests are meant to work. Would like to get input on this. Thanks, @maybebtc |
||
|---|---|---|
| .. | ||
| lib | ||
| .gitignore | ||
| Makefile | ||
| README.md | ||
| t0010-basic-commands.sh | ||
| t0020-init.sh | ||
| t0030-mount.sh | ||
| t0040-add-and-cat.sh | ||
| t0050-block.sh | ||
ipfs whole tests using the sharness framework
Running all the tests
Just use make in this directory to run all the tests.
Running just one test
You can run only one test script by launching it like a regular shell script:
$ ./t0010-basic-commands.sh
Sharness
When running "make" in this directory for the first time, sharness will be downloaded from its github repo and installed in a "lib/sharness" directory.
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.