@@ -58,16 +58,15 @@ setup() {
|
||||
|
||||
|
||||
@test "task: #Mkdir" {
|
||||
# Make directory
|
||||
cd "$TESTDIR"/tasks/mkdir
|
||||
"$DAGGER" --europa up ./mkdir.cue
|
||||
}
|
||||
|
||||
@test "task: #Mkdir: create parents" {
|
||||
# Create parents
|
||||
cd "$TESTDIR"/tasks/mkdir
|
||||
"$DAGGER" --europa up ./mkdir_parents.cue
|
||||
}
|
||||
|
||||
@test "task: #Mkdir failure: disable parents creation" {
|
||||
# Disable parents creation
|
||||
cd "$TESTDIR"/tasks/mkdir
|
||||
run "$DAGGER" --europa up ./mkdir_failure_disable_parents.cue
|
||||
assert_failure
|
||||
|
@@ -12,7 +12,7 @@ engine.#Plan & {
|
||||
|
||||
mkdir: engine.#Mkdir & {
|
||||
input: image.output
|
||||
path: "/test"
|
||||
path: "/test"
|
||||
}
|
||||
|
||||
writeChecker: engine.#WriteFile & {
|
||||
@@ -24,10 +24,10 @@ engine.#Plan & {
|
||||
|
||||
readChecker: engine.#ReadFile & {
|
||||
input: writeChecker.output
|
||||
path: "/test/foo"
|
||||
path: "/test/foo"
|
||||
} & {
|
||||
// assert result
|
||||
contents: "bar"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -11,8 +11,8 @@ engine.#Plan & {
|
||||
}
|
||||
|
||||
mkdir: engine.#Mkdir & {
|
||||
input: image.output
|
||||
path: "/test/baz"
|
||||
input: image.output
|
||||
path: "/test/baz"
|
||||
parents: false
|
||||
}
|
||||
|
||||
@@ -25,10 +25,10 @@ engine.#Plan & {
|
||||
|
||||
readChecker: engine.#ReadFile & {
|
||||
input: writeChecker.output
|
||||
path: "/test/baz/foo"
|
||||
path: "/test/baz/foo"
|
||||
} & {
|
||||
// assert result
|
||||
contents: "bar"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -12,7 +12,7 @@ engine.#Plan & {
|
||||
|
||||
mkdir: engine.#Mkdir & {
|
||||
input: image.output
|
||||
path: "/test/baz"
|
||||
path: "/test/baz"
|
||||
}
|
||||
|
||||
writeChecker: engine.#WriteFile & {
|
||||
@@ -24,10 +24,10 @@ engine.#Plan & {
|
||||
|
||||
readChecker: engine.#ReadFile & {
|
||||
input: writeChecker.output
|
||||
path: "/test/baz/foo"
|
||||
path: "/test/baz/foo"
|
||||
} & {
|
||||
// assert result
|
||||
contents: "bar"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user