-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from bedroge/playbook_test_step
Run the ReFrame tests at the end of the playbook
- Loading branch information
Showing
4 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
ansible/playbooks/roles/compatibility_layer/tasks/test.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Run a ReFrame test suite to validate the correctness | ||
# of the compatibility layer installation. | ||
--- | ||
|
||
- name: Copy ReFrame test file | ||
copy: | ||
src: "{{ playbook_dir }}/../../test/compat_layer.py" | ||
dest: /tmp/compat_layer.py | ||
mode: 0644 | ||
tags: | ||
- test | ||
|
||
- name: Run ReFrame tests | ||
command: reframe -r -v -c /tmp/compat_layer.py | ||
environment: | ||
EESSI_VERSION: "{{ eessi_version }}" | ||
EESSI_OS: "{{ eessi_host_os }}" | ||
EESSI_ARCH: "{{ eessi_host_arch }}" | ||
register: reframe_cmd | ||
changed_when: false | ||
failed_when: reframe_cmd.rc != 0 | ||
tags: | ||
- test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters