Skip to content

Commit

Permalink
test(builtin): extend toolchain test
Browse files Browse the repository at this point in the history
  • Loading branch information
Globegitter committed Jul 3, 2019
1 parent 9f1b1e5 commit 97b8daa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/node/test/nodejs_toolchain_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def _runfiles_contents_test_impl(ctx):
asserts.true(env, ctx.file.node_selected in runfiles)
asserts.false(env, ctx.files.node_other[0] in runfiles)
asserts.false(env, ctx.files.node_other[1] in runfiles)
asserts.false(env, ctx.files.node_other[2] in runfiles)

return analysistest.end(env)

Expand All @@ -21,7 +22,7 @@ linux_platform_toolchain_test = analysistest.make(
},
attrs = {
"node_other": attr.label_list(
default = [Label("@nodejs_windows_amd64//:node_bin"), Label("@nodejs_darwin_amd64//:node_bin")],
default = [Label("@nodejs//:node_bin"), Label("@nodejs_windows_amd64//:node_bin"), Label("@nodejs_darwin_amd64//:node_bin")],
allow_files = True,
),
"node_selected": attr.label(
Expand All @@ -38,7 +39,7 @@ windows_platform_toolchain_test = analysistest.make(
},
attrs = {
"node_other": attr.label_list(
default = [Label("@nodejs_linux_amd64//:node_bin"), Label("@nodejs_darwin_amd64//:node_bin")],
default = [Label("@nodejs//:node_bin"), Label("@nodejs_linux_amd64//:node_bin"), Label("@nodejs_darwin_amd64//:node_bin")],
allow_files = True,
),
"node_selected": attr.label(
Expand All @@ -55,7 +56,7 @@ darwin_platform_toolchain_test = analysistest.make(
},
attrs = {
"node_other": attr.label_list(
default = [Label("@nodejs_windows_amd64//:node_bin"), Label("@nodejs_linux_amd64//:node_bin")],
default = [Label("@nodejs//:node_bin"), Label("@nodejs_windows_amd64//:node_bin"), Label("@nodejs_linux_amd64//:node_bin")],
allow_files = True,
),
"node_selected": attr.label(
Expand Down

0 comments on commit 97b8daa

Please sign in to comment.