From a0d98d3e6b6e468aad1bc128cfdcea46c9ba46ca Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Fri, 9 Feb 2018 17:16:00 -0800 Subject: [PATCH] buildctl: add test for usage Signed-off-by: Tonis Tiigi --- cmd/buildctl/buildctl_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmd/buildctl/buildctl_test.go b/cmd/buildctl/buildctl_test.go index f7073fec..e128c1f5 100644 --- a/cmd/buildctl/buildctl_test.go +++ b/cmd/buildctl/buildctl_test.go @@ -4,6 +4,7 @@ import ( "testing" "github.com/moby/buildkit/util/testutil/integration" + "github.com/stretchr/testify/require" ) func TestCLIIntegration(t *testing.T) { @@ -13,5 +14,14 @@ func TestCLIIntegration(t *testing.T) { testBuildLocalExporter, testBuildContainerdExporter, testPrune, + testUsage, }) } + +func testUsage(t *testing.T, sb integration.Sandbox) { + t.Parallel() + + require.NoError(t, sb.Cmd().Run()) + + require.NoError(t, sb.Cmd("--help").Run()) +}