Skip to content

Commit

Permalink
tests: add 33_tasks_export
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Dec 15, 2023
1 parent 4545d14 commit 78e8dbb
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tests/33_tasks_export/EXPECTED_STDOUT_PATTERNS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
^FOO=foo$
^BAR=bar$
^FOOBAR='1 foo bar baz'$
^WHISKEYBAR=awesome$
34 changes: 34 additions & 0 deletions src/tests/33_tasks_export/laze-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
builders:
- name: default
rules:
- name: LINK
in: 'o'
cmd: 'cat ${in} > ${out}'

env:
bindir: build/${builder}/${app}
FOO: foo
BAR:
- bar
FOOBAR:
- "1"
- foo
- bar
- baz


tasks:
foobar:
export:
- FOO
- BAR
- FOOBAR
- WHISKEYBAR: awesome

cmd:
- set | grep ^FOO=
- set | grep ^BAR=
- set | grep ^WHISKEYBAR=

apps:
- name: app
1 change: 1 addition & 0 deletions src/tests/33_tasks_export/subdir/laze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apps:
11 changes: 11 additions & 0 deletions src/tests/33_tasks_export/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

. ../test-common.sh

cleanup

${LAZE} build foobar

echo TEST_OK

cleanup

0 comments on commit 78e8dbb

Please sign in to comment.