test: implemented cli tests for input git,dir
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
25
tests/cli/input/main.cue
Normal file
25
tests/cli/input/main.cue
Normal 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
1
tests/cli/input/testdata/testfile
vendored
Normal file
@@ -0,0 +1 @@
|
||||
thisisatest
|
Reference in New Issue
Block a user