@cryptotaxi247 / kubo / commits / 8a3db7cbc

testing: nofuse testing (for osx travis)

Juan Batiz-Benet committed Mar 18, 2015 at 01:44 UTC 8a3db7cbc466bcc19f0c69a74ef9d2eede935c19
5 files changed +26 -12
Makefile
+14 -4
@@ -1,5 +1,15 @@
1 +
2 +ifeq ($(TEST_NO_FUSE),1)
3 +go_test=go test -tags nofuse
4 +else
5 +go_test=go test
6 +endif
7 +
8 +
9 all:
2 - # no-op
10 + # no-op. try:
11 + # make install
12 + # make test
13
14 godep:
15 go get github.com/tools/godep
@@ -32,13 +42,13 @@ test_3node:
42 cd test/3nodetest && make
43
44 test_go_short:
35 - go test -test.short ./...
45 + $(go_test) -test.short ./...
46
47 test_go_expensive:
38 - go test ./...
48 + $(go_test) ./...
49
50 test_go_race:
41 - go test ./... -race
51 + $(go_test) ./... -race
52
53 test_sharness_short:
54 cd test/sharness/ && make
core/commands/internal/incfusever/doc.go new
+7
@@ -0,0 +1,7 @@
1 +// Package incfusever is only here to prevent go src tools (like godep)
2 +// from thinking fuseversion is not a required package. Though we do not
3 +// actually use github.com/jbenet/go-fuse-version as a library, we
4 +// _may_ need its binary. We avoid it as much as possible as compiling
5 +// it _requires_ fuse headers. Users must be able to install go-ipfs
6 +// without also installing fuse.
7 +package incfusever
core/commands/internal/incfusever/incfusever.go
+2 -6
@@ -1,9 +1,5 @@
1 -// Package incfusever is only here to prevent go src tools (like godep)
2 -// from thinking fuseversion is not a required package. Though we do not
3 -// actually use github.com/jbenet/go-fuse-version as a library, we
4 -// _may_ need its binary. We avoid it as much as possible as compiling
5 -// it _requires_ fuse headers. Users must be able to install go-ipfs
6 -// without also installing fuse.
1 +// +build !nofuse
2 +
3 package incfusever
4
5 import (
fuse/readonly/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// package fuse/readonly implements a fuse filesystem to access files
2 +// stored inside of ipfs.
3 +package readonly
fuse/readonly/readonly_unix.go
-2
@@ -1,8 +1,6 @@
1 // +build linux darwin freebsd
2 // +build !nofuse
3
4 -// package fuse/readonly implements a fuse filesystem to access files
5 -// stored inside of ipfs.
4 package readonly
5
6 import (