| |
@@ -1,13 +1,24 @@
|
| |
---
|
| |
|
| |
+ # If you make a change, then test with next playbook:
|
| |
+ # -hosts: localhost
|
| |
+ # roles:
|
| |
+ # - role: standard-test-basic
|
| |
+ # tags:
|
| |
+ # - classic
|
| |
+ # tests:
|
| |
+ # - test one:
|
| |
+ # dir: tdir for test 1
|
| |
+ # run: echo '$'; echo '\$'; echo a1; echo "a$2"; a3="a3\na3"; echo -e ${a3}; echo \$a4; echo '$a5'; echo ">\"a6\"<"; echo "a7'\""; echo "(a8)" ; (echo "a9"); echo $(echo "a10"); echo 'a11$a11"'; echo '\\a12\\'; echo '"a13';false
|
| |
+
|
| |
- block:
|
| |
- name: Execute tests
|
| |
- script:
|
| |
- run-basic-test -v
|
| |
- --workdir {{ tenv_workdir | regex_escape() }}/{{ item if item.keys is not defined else item[(item.keys()|list)[0]]['dir']|default((item.keys()|list)[0]) | regex_escape() }}
|
| |
- --artifactsdir {{ remote_artifacts | regex_escape() }}
|
| |
- --test {{ item if item.keys is not defined else (item.keys()|list)[0] | regex_escape() }}
|
| |
- --cmd {{ './runtest.sh' if item.keys is not defined else item[(item.keys()|list)[0]]['run']|default('./runtest.sh') | regex_escape() }}
|
| |
+ script: |
|
| |
+ run-basic-test -v \
|
| |
+ --workdir "{{ tenv_workdir }}/{{ item if item.keys is not defined else item[(item.keys()|list)[0]]['dir']|default((item.keys()|list)[0]) }}" \
|
| |
+ --artifactsdir "{{ remote_artifacts }}" \
|
| |
+ --test "{{ item if item.keys is not defined else (item.keys()|list)[0] }}" \
|
| |
+ --cmd "{{ './runtest.sh' if item.keys is not defined else item[(item.keys()|list)[0]]['run']|default('./runtest.sh') | regex_replace('\\', '\\\\') | regex_replace('\"', '\"') | regex_replace('\$', '\\$') }}"
|
| |
with_items:
|
| |
- "{{ tests }}"
|
| |
|
| |
Signed-off-by: Andrei Stepanov astepano@redhat.com