Sfoglia il codice sorgente

* Builder: added a regression test for #895

Solomon Hykes 12 anni fa
parent
commit
f50e40008f
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. 10 0
      buildfile_test.go

+ 10 - 0
buildfile_test.go

@@ -66,6 +66,16 @@ run    mkdir -p /var/run/sshd`,
 			{[]string{"ls", "-d", "/var/run/sshd"}, "/var/run/sshd\n"},
 		},
 	},
+
+	{
+		`
+from docker-ut
+add foo /usr/lib/bla/bar`,
+		[][2]string{{"foo", "hello world!"}},
+		[]testCommand{
+			{[]string{"cat", "/usr/lib/bla/bar"}, "hello world!"},
+		},
+	},
 }
 
 func TestBuild(t *testing.T) {