blob: 7cd42dc69c0ecf0588487df80cd1384f899b08c1 [file] [log] [blame]
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")
}
deleteImages("foobuildsixtysteps")
logDone("build - build an image with sixty build steps")
}
// TODO: TestCaching
// TODO: TestADDCacheInvalidation