Add mkdir docs

Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
Vasek - Tom C
2021-12-17 22:17:06 +01:00
parent d2580f4a73
commit e11cb1b6fd
9 changed files with 36 additions and 41 deletions

View File

@@ -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

View File

@@ -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"
}
}
}
}

View File

@@ -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"
}
}
}
}

View File

@@ -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"
}
}
}
}