forked from containers/toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
playbooks: Unify test setup for system & unit tests
There is no significant benefit in keeping this configuration separated. Now the to-be installed packages are tracked in a single place and the test playbooks only call the relevant tests. This was pointed out by in 6063eb2 containers#898
- Loading branch information
1 parent
6063eb2
commit b4b1c48
Showing
4 changed files
with
20 additions
and
44 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
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 |
---|---|---|
@@ -1,32 +1,10 @@ | ||
--- | ||
- hosts: all | ||
|
||
vars: | ||
toolbox_bin: '/usr/local/bin/toolbox' | ||
|
||
tasks: | ||
- name: Set up build directory | ||
command: meson builddir | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' | ||
|
||
- name: Build Toolbox | ||
command: ninja -C builddir | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' | ||
creates: builddir/src/toolbox | ||
|
||
- name: Install Toolbox | ||
become: yes | ||
command: ninja -C builddir install | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' | ||
creates: '{{ toolbox_bin }}' | ||
|
||
- name: Run system tests | ||
command: bats --timing ./test/system | ||
environment: | ||
PODMAN: '/usr/bin/podman' | ||
TOOLBOX: '{{ toolbox_bin }}' | ||
TOOLBOX: '/usr/local/bin/toolbox' | ||
args: | ||
chdir: '{{ zuul.project.src_dir }}' |
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