File: all.bash

package info (click to toggle)
golang-github-hanwen-go-fuse 0.0~git20161210.0.6c2b7d8-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 920 kB
  • ctags: 1,666
  • sloc: cpp: 78; sh: 77; makefile: 21
file content (50 lines) | stat: -rwxr-xr-x 1,339 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
set -eu

for d in fuse fuse/nodefs fuse/pathfs fuse/test zipfs unionfs \
    example/hello example/loopback example/zipfs \
    example/multizip example/unionfs example/memfs \
    example/autounionfs example/statfs ; \
do
  go build -o /dev/null github.com/hanwen/go-fuse/${d}
done


for d in fuse zipfs unionfs fuse/test
do
    (
        cd $d

        # Make sure it compiles on all platforms.
        for GOOS in darwin linux ; do
          export GOOS
          go test -c -i github.com/hanwen/go-fuse/$d
        done

        echo "go test github.com/hanwen/go-fuse/$d"
        go test github.com/hanwen/go-fuse/$d
        echo "go test -race github.com/hanwen/go-fuse/$d"
        go test -race github.com/hanwen/go-fuse/$d
    )
done

for target in "clean" "install" ; do
  for d in fuse fuse/nodefs fuse/pathfs fuse/test zipfs unionfs \
    example/hello example/loopback example/zipfs \
    example/multizip example/unionfs example/memfs \
    example/autounionfs example/statfs ; \
  do
    if test "${target}" = "install" && test "${d}" = "fuse/test"; then
      continue
    fi
    echo "go ${target} github.com/hanwen/go-fuse/${d}"
    go ${target} github.com/hanwen/go-fuse/${d}
  done
done


make -C benchmark
for d in benchmark
do
  go test github.com/hanwen/go-fuse/benchmark -test.bench '.*' -test.cpu 1,2
done