Guest User

beats_go_make_unit-tests

a guest
May 3rd, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.63 KB | None | 0 0
  1.     mkdir -p /home/<user>/git/go/src/github.com/elastic/beats/filebeat/build/coverage
  2.     # gotestcover is needed to fetch coverage for multiple packages
  3.     go get github.com/elastic/beats/vendor/github.com/pierrre/gotestcover
  4.     # testify is needed for unit and integration tests
  5.     go get github.com/elastic/beats/vendor/github.com/stretchr/testify/assert
  6.     # libcompose is needed for integration tests
  7.     go get github.com/docker/libcompose
  8.     warning: ignoring symlink /home/<user>/git/go/src/github.com/elastic/beats/filebeat/build/python-env/include/python2.7
  9.     warning: ignoring symlink /home/<user>/git/go/src/github.com/elastic/beats/filebeat/build/python-env/lib/python2.7/encodings
  10.     warning: ignoring symlink /home/<user>/git/go/src/github.com/elastic/beats/filebeat/build/python-env/lib/python2.7/lib-dynload
  11.     warning: ignoring symlink /home/<user>/git/go/src/github.com/elastic/beats/filebeat/build/python-env/local/bin
  12.     warning: ignoring symlink /home/<user>/git/go/src/github.com/elastic/beats/filebeat/build/python-env/local/include
  13.     warning: ignoring symlink /home/<user>/git/go/src/github.com/elastic/beats/filebeat/build/python-env/local/lib
  14.     warning: ignoring symlink /home/<user>/git/go/src/github.com/elastic/beats/filebeat/build/python-env/include/python2.7
  15.     warning: ignoring symlink /home/<user>/git/go/src/github.com/elastic/beats/filebeat/build/python-env/lib/python2.7/encodings
  16.     warning: ignoring symlink /home/<user>/git/go/src/github.com/elastic/beats/filebeat/build/python-env/lib/python2.7/lib-dynload
  17.     warning: ignoring symlink /home/<user>/git/go/src/github.com/elastic/beats/filebeat/build/python-env/local/bin
  18.     warning: ignoring symlink /home/<user>/git/go/src/github.com/elastic/beats/filebeat/build/python-env/local/include
  19.     warning: ignoring symlink /home/<user>/git/go/src/github.com/elastic/beats/filebeat/build/python-env/local/lib
  20.     go test -i github.com/elastic/beats/filebeat github.com/elastic/beats/filebeat/autodiscover github.com/elastic/beats/filebeat/autodiscover/builder/hints github.com/elastic/beats/filebeat/beater github.com/elastic/beats/filebeat/channel github.com/elastic/beats/filebeat/cmd github.com/elastic/beats/filebeat/config github.com/elastic/beats/filebeat/crawler github.com/elastic/beats/filebeat/fileset github.com/elastic/beats/filebeat/harvester github.com/elastic/beats/filebeat/harvester/encoding github.com/elastic/beats/filebeat/harvester/reader github.com/elastic/beats/filebeat/include github.com/elastic/beats/filebeat/input github.com/elastic/beats/filebeat/input/docker github.com/elastic/beats/filebeat/input/file github.com/elastic/beats/filebeat/input/log github.com/elastic/beats/filebeat/input/redis github.com/elastic/beats/filebeat/input/stdin github.com/elastic/beats/filebeat/input/syslog github.com/elastic/beats/filebeat/input/tcp github.com/elastic/beats/filebeat/input/udp github.com/elastic/beats/filebeat/inputsource github.com/elastic/beats/filebeat/inputsource/tcp github.com/elastic/beats/filebeat/inputsource/udp github.com/elastic/beats/filebeat/processor/add_kubernetes_metadata github.com/elastic/beats/filebeat/prospector github.com/elastic/beats/filebeat/registrar github.com/elastic/beats/filebeat/scripts/generator github.com/elastic/beats/filebeat/scripts/generator/fields github.com/elastic/beats/filebeat/scripts/generator/fileset github.com/elastic/beats/filebeat/scripts/generator/module github.com/elastic/beats/filebeat/scripts/tester github.com/elastic/beats/filebeat/util
  21.     /home/<user>/git/go/bin/gotestcover  -coverprofile=/home/<user>/git/go/src/github.com/elastic/beats/filebeat/build/coverage/unit.cov  github.com/elastic/beats/filebeat github.com/elastic/beats/filebeat/autodiscover github.com/elastic/beats/filebeat/autodiscover/builder/hints github.com/elastic/beats/filebeat/beater github.com/elastic/beats/filebeat/channel github.com/elastic/beats/filebeat/cmd github.com/elastic/beats/filebeat/config github.com/elastic/beats/filebeat/crawler github.com/elastic/beats/filebeat/fileset github.com/elastic/beats/filebeat/harvester github.com/elastic/beats/filebeat/harvester/encoding github.com/elastic/beats/filebeat/harvester/reader github.com/elastic/beats/filebeat/include github.com/elastic/beats/filebeat/input github.com/elastic/beats/filebeat/input/docker github.com/elastic/beats/filebeat/input/file github.com/elastic/beats/filebeat/input/log github.com/elastic/beats/filebeat/input/redis github.com/elastic/beats/filebeat/input/stdin github.com/elastic/beats/filebeat/input/syslog github.com/elastic/beats/filebeat/input/tcp github.com/elastic/beats/filebeat/input/udp github.com/elastic/beats/filebeat/inputsource github.com/elastic/beats/filebeat/inputsource/tcp github.com/elastic/beats/filebeat/inputsource/udp github.com/elastic/beats/filebeat/processor/add_kubernetes_metadata github.com/elastic/beats/filebeat/prospector github.com/elastic/beats/filebeat/registrar github.com/elastic/beats/filebeat/scripts/generator github.com/elastic/beats/filebeat/scripts/generator/fields github.com/elastic/beats/filebeat/scripts/generator/fileset github.com/elastic/beats/filebeat/scripts/generator/module github.com/elastic/beats/filebeat/scripts/tester github.com/elastic/beats/filebeat/util
  22.     ?       github.com/elastic/beats/filebeat/channel   [no test files]
  23.     ?       github.com/elastic/beats/filebeat/autodiscover  [no test files]
  24.     ?       github.com/elastic/beats/filebeat/crawler   [no test files]
  25.     ?       github.com/elastic/beats/filebeat/cmd   [no test files]
  26.     ?       github.com/elastic/beats/filebeat/beater    [no test files]
  27.     ?       github.com/elastic/beats/filebeat/include   [no test files]
  28.     ok      github.com/elastic/beats/filebeat/harvester/encoding    0.009s  coverage: 63.6% of statements
  29.     ok      github.com/elastic/beats/filebeat/harvester 0.038s  coverage: 9.3% of statements
  30.     command [go test -cover -coverprofile /tmp/gotestcover-316349418 github.com/elastic/beats/filebeat/config]: exit status 1
  31.     --- FAIL: TestMergeConfigFiles (0.00s)
  32.             Error Trace:    config_test.go:97
  33.         Error:          Not equal:
  34.                         expected: 4
  35.                         actual  : 0
  36.         Test:           TestMergeConfigFiles
  37.     FAIL
  38.     coverage: 55.8% of statements
  39.     FAIL    github.com/elastic/beats/filebeat/config    0.005s
  40.     ?       github.com/elastic/beats/filebeat/input/docker  [no test files]
  41.     ok      github.com/elastic/beats/filebeat/autodiscover/builder/hints    0.014s  coverage: 90.8% of statements
  42.     ok      github.com/elastic/beats/filebeat/harvester/reader  0.211s  coverage: 80.6% of statements
  43.     ?       github.com/elastic/beats/filebeat/input/stdin   [no test files]
  44.     ?       github.com/elastic/beats/filebeat/input/redis   [no test files]
  45.     ok      github.com/elastic/beats/filebeat/fileset   0.020s  coverage: 51.1% of statements
  46.     ok      github.com/elastic/beats/filebeat/input/file    0.005s  coverage: 64.1% of statements
  47.     ?       github.com/elastic/beats/filebeat/inputsource   [no test files]
  48.     ?       github.com/elastic/beats/filebeat/input/udp [no test files]
  49.     ok      github.com/elastic/beats/filebeat/input 0.005s  coverage: 17.7% of statements
  50.     ?       github.com/elastic/beats/filebeat/prospector    [no test files]
  51.     ?       github.com/elastic/beats/filebeat/registrar [no test files]
  52.     ok      github.com/elastic/beats/filebeat   0.028s  coverage: 0.0% of statements
  53.     ok      github.com/elastic/beats/filebeat/inputsource/udp   0.025s  coverage: 85.7% of statements
  54.     ok      github.com/elastic/beats/filebeat/inputsource/tcp   0.113s  coverage: 87.9% of statements
  55.     ok      github.com/elastic/beats/filebeat/input/tcp 0.005s  coverage: 13.5% of statements
  56.     ?       github.com/elastic/beats/filebeat/scripts/generator [no test files]
  57.     ?       github.com/elastic/beats/filebeat/scripts/generator/fileset [no test files]
  58.     ok      github.com/elastic/beats/filebeat/input/syslog  0.010s  coverage: 31.3% of statements
  59.     ?       github.com/elastic/beats/filebeat/scripts/generator/module  [no test files]
  60.     ok      github.com/elastic/beats/filebeat/input/log 0.711s  coverage: 16.4% of statements
  61.     ok      github.com/elastic/beats/filebeat/scripts/generator/fields  0.007s  coverage: 38.4% of statements
  62.     ok      github.com/elastic/beats/filebeat/processor/add_kubernetes_metadata 0.003s  coverage: 93.8% of statements
  63.     ok      github.com/elastic/beats/filebeat/util  0.003s  coverage: 71.4% of statements
  64.     ok      github.com/elastic/beats/filebeat/scripts/tester    0.003s  coverage: 14.0% of statements
  65.     test failed
  66.     ../libbeat/scripts/Makefile:169: recipe for target 'unit-tests' failed
  67.     make: *** [unit-tests] Error 1
Advertisement
Add Comment
Please, Sign In to add comment