diff options
Diffstat (limited to 'bp2build/sh_conversion_test.go')
-rw-r--r-- | bp2build/sh_conversion_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bp2build/sh_conversion_test.go b/bp2build/sh_conversion_test.go index f6d2a2066..ac890878b 100644 --- a/bp2build/sh_conversion_test.go +++ b/bp2build/sh_conversion_test.go @@ -73,3 +73,20 @@ func TestShBinarySimple(t *testing.T) { })}, }) } + +func TestShBinaryDefaults(t *testing.T) { + runShBinaryTestCase(t, bp2buildTestCase{ + description: "sh_binary test", + moduleTypeUnderTest: "sh_binary", + moduleTypeUnderTestFactory: sh.ShBinaryFactory, + blueprint: `sh_binary { + name: "foo", + src: "foo.sh", + bazel_module: { bp2build_available: true }, +}`, + expectedBazelTargets: []string{ + makeBazelTarget("sh_binary", "foo", attrNameToString{ + "srcs": `["foo.sh"]`, + })}, + }) +} |