buildctl: add test for usage

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
docker-18.09
Tonis Tiigi 2018-02-09 17:16:00 -08:00
parent 787af956e3
commit a0d98d3e6b
1 changed files with 10 additions and 0 deletions

View File

@ -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())
}