From 4678dea045ced1f566bcc17fb409789b7a4fc799 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Fri, 14 Nov 2014 04:34:08 -0800 Subject: [PATCH] tests(sharness) attempt to execute sharness tests on ipfs2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @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 --- test/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Makefile b/test/Makefile index 100401f03..6e08d5947 100644 --- a/test/Makefile +++ b/test/Makefile @@ -32,8 +32,8 @@ $(SHARNESS): ipfs: @echo "*** installing $@ ***" mkdir -p bin - cd ../cmd/ipfs && go build - cp ../cmd/ipfs/ipfs bin/ipfs + cd ../cmd/ipfs2 && go build + cp ../cmd/ipfs2/ipfs2 bin/ipfs random: @echo "*** installing $@ ***"