Adding tests

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
This commit is contained in:
dubo-dubon-duponey
2021-01-14 13:50:54 -08:00
parent 9338d10a04
commit e301dfa7b1
33 changed files with 761 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
package testing
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", "echo should not succeed"]
dir: "/thisisnonexistent"
},
]

View File

@@ -0,0 +1,16 @@
package testing
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo "pwd is: $(pwd)"
[ "$(pwd)" == "/etc" ] || exit 1
"""]
dir: "/etc"
},
]