kubo/test
Brian Tiger Chow 4678dea045 tests(sharness) attempt to execute sharness tests on ipfs2
@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
2014-11-16 03:20:10 -08:00
..
lib vendor: updated random + fixed test import 2014-11-08 20:12:02 -08:00
.gitignore test: moved installed things into own dirs 2014-11-08 20:12:02 -08:00
Makefile tests(sharness) attempt to execute sharness tests on ipfs2 2014-11-16 03:20:10 -08:00
README.md Update test/README.md about sharness directory 2014-11-09 19:16:02 +01:00
t0010-basic-commands.sh test: moved installed things into own dirs 2014-11-08 20:12:02 -08:00
t0020-init.sh test: moved installed things into own dirs 2014-11-08 20:12:02 -08:00
t0030-mount.sh test: moved installed things into own dirs 2014-11-08 20:12:02 -08:00
t0040-add-and-cat.sh Update hashes in test/t0040-add-and-cat.sh 2014-11-15 02:10:52 -08:00
t0050-block.sh Add test script for block command 2014-11-09 18:00:25 +01:00

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.