2017-11-30 02:15:01 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/moby/buildkit/util/testutil/integration"
|
2018-02-10 01:16:00 +00:00
|
|
|
"github.com/stretchr/testify/require"
|
2017-11-30 02:15:01 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestCLIIntegration(t *testing.T) {
|
2017-11-30 02:49:04 +00:00
|
|
|
integration.Run(t, []integration.Test{
|
|
|
|
testDiskUsage,
|
2017-12-01 00:06:09 +00:00
|
|
|
testBuildWithLocalFiles,
|
2017-12-01 00:28:35 +00:00
|
|
|
testBuildLocalExporter,
|
2017-12-01 00:56:58 +00:00
|
|
|
testBuildContainerdExporter,
|
2017-12-28 23:03:49 +00:00
|
|
|
testPrune,
|
2018-02-10 01:16:00 +00:00
|
|
|
testUsage,
|
2017-11-30 02:49:04 +00:00
|
|
|
})
|
2017-11-30 02:15:01 +00:00
|
|
|
}
|
2018-02-10 01:16:00 +00:00
|
|
|
|
|
|
|
func testUsage(t *testing.T, sb integration.Sandbox) {
|
|
|
|
t.Parallel()
|
|
|
|
|
|
|
|
require.NoError(t, sb.Cmd().Run())
|
|
|
|
|
|
|
|
require.NoError(t, sb.Cmd("--help").Run())
|
|
|
|
}
|