Adding simple overlay test

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
This commit is contained in:
dubo-dubon-duponey 2021-01-14 18:55:23 -08:00
parent 7a837ef8fb
commit 6010178131
No known key found for this signature in database
GPG Key ID: C3B96779C681DA56
2 changed files with 2 additions and 4 deletions

View File

@ -14,7 +14,6 @@ bar: string
[ "$foo" == "overlay environment" ] || exit 1 [ "$foo" == "overlay environment" ] || exit 1
"""] """]
env: foo: bar env: foo: bar
always: true
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19 // XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/" dir: "/"
}, },

View File

@ -82,9 +82,8 @@ test::exec(){
"$dagger" compute "$d"/exec/env/invalid "$dagger" compute "$d"/exec/env/invalid
test::one "Exec: env valid" --exit=0 --stdout={} \ test::one "Exec: env valid" --exit=0 --stdout={} \
"$dagger" compute "$d"/exec/env/valid "$dagger" compute "$d"/exec/env/valid
# XXX overlays are not wired yet test::one "Exec: env with overlay" --exit=0 \
# test::one "Exec: env with overlay" --exit=0 --stdout={} \ "$dagger" compute --input 'bar: "overlay environment"' "$d"/exec/env/overlay
# "$dagger" compute --input-string 'bar: "overlay environment"' "$d"/exec/env/overlay
# XXX broken right now: https://github.com/blocklayerhq/dagger/issues/30 # XXX broken right now: https://github.com/blocklayerhq/dagger/issues/30
#test::one "Exec: non existent dir" --exit=0 --stdout={} \ #test::one "Exec: non existent dir" --exit=0 --stdout={} \
# "$dagger" compute "$d"/exec/dir/doesnotexist # "$dagger" compute "$d"/exec/dir/doesnotexist