test: implemented cli tests for input git,dir

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba
2021-04-02 16:40:41 -07:00
parent d3fc31ab57
commit b12a3bf45f
3 changed files with 54 additions and 0 deletions

25
tests/cli/input/main.cue Normal file
View File

@@ -0,0 +1,25 @@
package testing
import (
"dagger.io/llb"
"dagger.io/dagger"
)
source: dagger.#Artifact
foo: "bar"
bar: {
string
#compute: [
llb.#FetchContainer & {ref: "busybox"},
llb.#Exec & {
args: ["cp", "/source/testfile", "/out"],
mount: "/source": from: source
},
llb.#Export & {
format: "string"
source: "/out"
}
]
}

1
tests/cli/input/testdata/testfile vendored Normal file
View File

@@ -0,0 +1 @@
thisisatest