github.com/hanwen/go-fuse@v1.0.0/all.bash (about)

     1  #!/bin/sh
     2  set -eu
     3  
     4  for d in fuse fuse/nodefs fuse/pathfs fuse/test zipfs unionfs \
     5      example/hello example/loopback example/zipfs \
     6      example/multizip example/unionfs example/memfs \
     7      example/autounionfs example/statfs ; \
     8  do
     9    go build -o /dev/null github.com/hanwen/go-fuse/${d}
    10  done
    11  
    12  
    13  for d in fuse zipfs unionfs fuse/test
    14  do
    15      (
    16          cd $d
    17  
    18          # Make sure it compiles on all platforms.
    19          for GOOS in darwin linux ; do
    20            export GOOS
    21            go test -c -i github.com/hanwen/go-fuse/$d
    22          done
    23  
    24          echo "go test github.com/hanwen/go-fuse/$d"
    25          go test github.com/hanwen/go-fuse/$d
    26          echo "go test -race github.com/hanwen/go-fuse/$d"
    27          go test -race github.com/hanwen/go-fuse/$d
    28      )
    29  done
    30  
    31  for target in "clean" "install" ; do
    32    for d in fuse fuse/nodefs fuse/pathfs fuse/test zipfs unionfs \
    33      example/hello example/loopback example/zipfs \
    34      example/multizip example/unionfs example/memfs \
    35      example/autounionfs example/statfs ; \
    36    do
    37      if test "${target}" = "install" && test "${d}" = "fuse/test"; then
    38        continue
    39      fi
    40      echo "go ${target} github.com/hanwen/go-fuse/${d}"
    41      go ${target} github.com/hanwen/go-fuse/${d}
    42    done
    43  done
    44  
    45  
    46  make -C benchmark
    47  for d in benchmark
    48  do
    49    go test github.com/hanwen/go-fuse/benchmark -test.bench '.*' -test.cpu 1,2
    50  done