give up on trying to make travis happy

pull/1284/head
cornfeedhobo 2019-06-29 19:08:39 -05:00
parent baed42aa57
commit e158f12b33
No known key found for this signature in database
GPG Key ID: 724357093F994B26
2 changed files with 38 additions and 74 deletions

View File

@ -16,6 +16,4 @@ function _go_pathmunge_wrap() {
export GOROOT="${GOROOT:-$(go env GOROOT)}" export GOROOT="${GOROOT:-$(go env GOROOT)}"
export GOPATH="${GOPATH:-$(go env GOPATH)}" export GOPATH="${GOPATH:-$(go env GOPATH)}"
echo $PATH
_go_pathmunge_wrap "${GOPATH}:${GOROOT}" _go_pathmunge_wrap "${GOPATH}:${GOROOT}"
echo $PATH

View File

@ -51,78 +51,44 @@ load ../../lib/composure
assert_line 'function' assert_line 'function'
} }
@test 'debug travis' { @test 'plugins go: single entry in GOPATH' {
export GOROOT='/foo' export GOPATH="/foo"
export GOPATH='/bar' export GOROOT="/baz"
load ../../plugins/available/go.plugin load ../../plugins/available/go.plugin
run _go_pathmunge_wrap "${GOPATH}:${GOROOT}" assert_equal "$(cut -d':' -f1,2 <<<$PATH)" "/foo/bin:/baz/bin"
assert_line 'dummy'
} }
#@test 'plugins go: single entry in GOPATH' { @test 'plugins go: single entry in GOPATH, with space' {
# export GOROOT='/baz' export GOPATH="/foo bar"
# export GOPATH='/foo' export GOROOT="/baz"
# load ../../plugins/available/go.plugin load ../../plugins/available/go.plugin
# assert_equal $(cut -d':' -f1,2 <<<$PATH) '/foo/bin:/baz/bin' assert_equal "$(cut -d':' -f1,2 <<<$PATH)" "/foo bar/bin:/baz/bin"
#} }
#
#@test 'plugins go: single entry in GOPATH, with space' { @test 'plugins go: single entry in GOPATH, with escaped space' {
# export GOROOT="/baz" export GOPATH="/foo\ bar"
# export GOPATH="/foo bar" export GOROOT="/baz"
# load ../../plugins/available/go.plugin load ../../plugins/available/go.plugin
# assert_equal "$(cut -d':' -f1,2 <<<$PATH)" "/foo\ bar/bin:/baz/bin"
# echo "$(echo $PATH | cut -d':' -f1)" }
# [ "$(echo $PATH | cut -d':' -f1)" = "/foo bar/bin" ]
# @test 'plugins go: multiple entries in GOPATH' {
# echo "$(echo $PATH | cut -d':' -f2)" export GOPATH="/foo:/bar"
# [ "$(echo $PATH | cut -d':' -f2)" = "/baz/bin" ] export GOROOT="/baz"
#} load ../../plugins/available/go.plugin
# assert_equal "$(cut -d':' -f1,2,3 <<<$PATH)" "/foo/bin:/bar/bin:/baz/bin"
#@test 'plugins go: single entry in GOPATH, with escaped space' { }
# export GOROOT="/baz"
# export GOPATH="/foo\ bar" @test 'plugins go: multiple entries in GOPATH, with space' {
# load ../../plugins/available/go.plugin export GOPATH="/foo:/foo bar"
# export GOROOT="/baz"
# echo "$(echo $PATH | cut -d':' -f1)" load ../../plugins/available/go.plugin
# [ "$(echo $PATH | cut -d':' -f1)" = "/foo\ bar/bin" ] assert_equal "$(cut -d':' -f1,2,3 <<<$PATH)" "/foo/bin:/foo bar/bin:/baz/bin"
# }
# echo "$(echo $PATH | cut -d':' -f2)"
# [ "$(echo $PATH | cut -d':' -f2)" = "/baz/bin" ] @test 'plugins go: multiple entries in GOPATH, with escaped space' {
#} export GOPATH="/foo:/foo\ bar"
# export GOROOT="/baz"
#@test 'plugins go: multiple entries in GOPATH' { load ../../plugins/available/go.plugin
# export GOROOT="/baz" assert_equal "$(cut -d':' -f1,2,3 <<<$PATH)" "/foo/bin:/foo\ bar/bin:/baz/bin"
# export GOPATH="/foo:/bar" }
# load ../../plugins/available/go.plugin
#
# echo "$(echo $PATH | cut -d':' -f1,2)"
# [ "$(echo $PATH | cut -d':' -f1,2)" = "/foo/bin:/bar/bin" ]
#
# echo "$(echo $PATH | cut -d':' -f3)"
# [ "$(echo $PATH | cut -d':' -f3)" = "/baz/bin" ]
#}
#
#@test 'plugins go: multiple entries in GOPATH, with space' {
# export GOROOT="/baz"
# export GOPATH="/foo:/foo bar"
# load ../../plugins/available/go.plugin
#
# echo "$(echo $PATH | cut -d':' -f1,2)"
# [ "$(echo $PATH | cut -d':' -f1,2)" = "/foo/bin:/foo bar/bin" ]
#
# echo "$(echo $PATH | cut -d':' -f3)"
# [ "$(echo $PATH | cut -d':' -f3)" = "/baz/bin" ]
#}
#
#@test 'plugins go: multiple entries in GOPATH, with escaped space' {
# export GOROOT="/baz"
# export GOPATH="/foo:/foo\ bar"
# load ../../plugins/available/go.plugin
#
# echo "$(echo $PATH | cut -d':' -f1,2)"
# [ "$(echo $PATH | cut -d':' -f1,2)" = "/foo/bin:/foo\ bar/bin" ]
#
# echo "$(echo $PATH | cut -d':' -f3)"
# [ "$(echo $PATH | cut -d':' -f3)" = "/baz/bin" ]
#}