mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
testing: nofuse testing (for osx travis)
This commit is contained in:
parent
06801a0e3a
commit
8a3db7cbc4
18
Makefile
18
Makefile
@ -1,5 +1,15 @@
|
|||||||
|
|
||||||
|
ifeq ($(TEST_NO_FUSE),1)
|
||||||
|
go_test=go test -tags nofuse
|
||||||
|
else
|
||||||
|
go_test=go test
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
all:
|
all:
|
||||||
# no-op
|
# no-op. try:
|
||||||
|
# make install
|
||||||
|
# make test
|
||||||
|
|
||||||
godep:
|
godep:
|
||||||
go get github.com/tools/godep
|
go get github.com/tools/godep
|
||||||
@ -32,13 +42,13 @@ test_3node:
|
|||||||
cd test/3nodetest && make
|
cd test/3nodetest && make
|
||||||
|
|
||||||
test_go_short:
|
test_go_short:
|
||||||
go test -test.short ./...
|
$(go_test) -test.short ./...
|
||||||
|
|
||||||
test_go_expensive:
|
test_go_expensive:
|
||||||
go test ./...
|
$(go_test) ./...
|
||||||
|
|
||||||
test_go_race:
|
test_go_race:
|
||||||
go test ./... -race
|
$(go_test) ./... -race
|
||||||
|
|
||||||
test_sharness_short:
|
test_sharness_short:
|
||||||
cd test/sharness/ && make
|
cd test/sharness/ && make
|
||||||
|
|||||||
7
core/commands/internal/incfusever/doc.go
Normal file
7
core/commands/internal/incfusever/doc.go
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
// Package incfusever is only here to prevent go src tools (like godep)
|
||||||
|
// from thinking fuseversion is not a required package. Though we do not
|
||||||
|
// actually use github.com/jbenet/go-fuse-version as a library, we
|
||||||
|
// _may_ need its binary. We avoid it as much as possible as compiling
|
||||||
|
// it _requires_ fuse headers. Users must be able to install go-ipfs
|
||||||
|
// without also installing fuse.
|
||||||
|
package incfusever
|
||||||
@ -1,9 +1,5 @@
|
|||||||
// Package incfusever is only here to prevent go src tools (like godep)
|
// +build !nofuse
|
||||||
// from thinking fuseversion is not a required package. Though we do not
|
|
||||||
// actually use github.com/jbenet/go-fuse-version as a library, we
|
|
||||||
// _may_ need its binary. We avoid it as much as possible as compiling
|
|
||||||
// it _requires_ fuse headers. Users must be able to install go-ipfs
|
|
||||||
// without also installing fuse.
|
|
||||||
package incfusever
|
package incfusever
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
3
fuse/readonly/doc.go
Normal file
3
fuse/readonly/doc.go
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// package fuse/readonly implements a fuse filesystem to access files
|
||||||
|
// stored inside of ipfs.
|
||||||
|
package readonly
|
||||||
@ -1,8 +1,6 @@
|
|||||||
// +build linux darwin freebsd
|
// +build linux darwin freebsd
|
||||||
// +build !nofuse
|
// +build !nofuse
|
||||||
|
|
||||||
// package fuse/readonly implements a fuse filesystem to access files
|
|
||||||
// stored inside of ipfs.
|
|
||||||
package readonly
|
package readonly
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user