tests: move tests top-level

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-02-03 15:02:43 -08:00
parent f6650901fd
commit 89c7136f75
74 changed files with 2 additions and 2 deletions

15
tests/exec/env/invalid/main.cue vendored Normal file
View File

@@ -0,0 +1,15 @@
package testing
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", #"""
echo "$foo"
"""#]
env: foo: lala: "lala"
},
]

18
tests/exec/env/overlay/main.cue vendored Normal file
View File

@@ -0,0 +1,18 @@
package testing
bar: string
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo "foo: $foo"
[ "$foo" == "overlay environment" ] || exit 1
"""]
env: foo: bar
},
]

15
tests/exec/env/valid/main.cue vendored Normal file
View File

@@ -0,0 +1,15 @@
package testing
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
[ "$foo" == "output environment" ] || exit 1
"""]
env: foo: "output environment"
},
]