We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29697b6 commit d2f8431Copy full SHA for d2f8431
main_test.go
@@ -27,6 +27,20 @@ func TestHelp(t *testing.T) {
27
assert.Contains(t, output, "Usage:")
28
}
29
30
+func TestEntrypoint(t *testing.T) {
31
+ var projectDir = dockerized.GetDockerizedRoot() + "/test/test_entrypoint"
32
+ defer context().
33
+ WithDir(projectDir).
34
+ WithCwd(projectDir).
35
+ WithFile("foo.txt", "foo").
36
+ WithFile("bar.txt", "bar").
37
+ Restore()
38
+
39
+ output := testDockerized(t, []string{"--entrypoint", "ls", "go"})
40
+ assert.Contains(t, output, "foo.txt")
41
+ assert.Contains(t, output, "bar.txt")
42
+}
43
44
func TestOverrideVersionWithEnvVar(t *testing.T) {
45
defer context().WithEnv("PROTOC_VERSION", "3.6.0").Restore()
46
var output = testDockerized(t, []string{"protoc", "--version"})
0 commit comments