1
0
mirror of https://github.com/moby/moby.git synced 2025-07-30 18:23:29 +03:00

initial version of cli integration tests

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
This commit is contained in:
unclejack
2014-02-25 18:17:48 +02:00
parent c705e4a80b
commit 6db32fdefd
22 changed files with 1117 additions and 2 deletions

View File

@ -0,0 +1,28 @@
package main
import (
"fmt"
"os/exec"
"path/filepath"
"testing"
)
func TestBuildSixtySteps(t *testing.T) {
buildDirectory := filepath.Join(workingDirectory, "build_tests", "TestBuildSixtySteps")
buildCmd := exec.Command(dockerBinary, "build", "-t", "foobuildsixtysteps", ".")
buildCmd.Dir = buildDirectory
out, exitCode, err := runCommandWithOutput(buildCmd)
errorOut(err, t, fmt.Sprintf("build failed to complete: %v %v", out, err))
if err != nil || exitCode != 0 {
t.Fatal("failed to build the image")
}
go deleteImages("foobuildsixtysteps")
logDone("build - build an image with sixty build steps")
}
// TODO: TestCaching
// TODO: TestADDCacheInvalidation