Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
---
- job:
name: unit-test
description: Run Toolbox's unit tests declared in Meson
description: Run Toolbx's unit tests declared in Meson
timeout: 1800
nodeset:
nodes:
Expand All @@ -28,7 +28,7 @@

- job:
name: unit-test-migration-path-for-coreos-toolbox
description: Run Toolbox's unit tests declared in Meson when built with -Dmigration_path_for_coreos_toolbox
description: Run Toolbx's unit tests declared in Meson when built with -Dmigration_path_for_coreos_toolbox
timeout: 600
nodeset:
nodes:
Expand All @@ -39,7 +39,7 @@

- job:
name: unit-test-restricted
description: Run Toolbox's unit tests declared in Meson in a restricted build environment
description: Run Toolbx's unit tests declared in Meson in a restricted build environment
timeout: 1800
nodeset:
nodes:
Expand All @@ -50,8 +50,8 @@

- job:
name: system-test-fedora-rawhide
description: Run Toolbox's system tests in Fedora Rawhide
timeout: 4800
description: Run Toolbx's system tests in Fedora Rawhide
timeout: 10800
nodeset:
nodes:
- name: fedora-rawhide
Expand All @@ -60,46 +60,46 @@
run: playbooks/system-test.yaml

- job:
name: system-test-fedora-39
description: Run Toolbx's system tests in Fedora 39
timeout: 3600
name: system-test-fedora-40
description: Run Toolbx's system tests in Fedora 40
timeout: 9000
nodeset:
nodes:
- name: fedora-39
label: cloud-fedora-39
- name: fedora-40
label: cloud-fedora-40
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test.yaml

- job:
name: system-test-fedora-38
description: Run Toolbx's system tests in Fedora 38
timeout: 3600
name: system-test-fedora-39
description: Run Toolbx's system tests in Fedora 39
timeout: 9000
nodeset:
nodes:
- name: fedora-38
label: cloud-fedora-38
- name: fedora-39
label: cloud-fedora-39
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test.yaml

- project:
periodic:
jobs:
- system-test-fedora-rawhide
- system-test-fedora-40
- system-test-fedora-39
- system-test-fedora-38
check:
jobs:
- unit-test
- unit-test-migration-path-for-coreos-toolbox
- unit-test-restricted
- system-test-fedora-rawhide
- system-test-fedora-40
- system-test-fedora-39
- system-test-fedora-38
gate:
jobs:
- unit-test
- unit-test-migration-path-for-coreos-toolbox
- unit-test-restricted
- system-test-fedora-rawhide
- system-test-fedora-40
- system-test-fedora-39
- system-test-fedora-38
4 changes: 2 additions & 2 deletions test/system/101-create.bats
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ load 'libs/helpers'

setup() {
_setup_environment
cleanup_containers
cleanup_all
}

teardown() {
cleanup_containers
cleanup_all
}

@test "create: Smoke test" {
Expand Down
4 changes: 2 additions & 2 deletions test/system/103-container.bats
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ load 'libs/helpers'

setup() {
_setup_environment
cleanup_containers
cleanup_all
}

teardown() {
cleanup_containers
cleanup_all
}


Expand Down
6 changes: 4 additions & 2 deletions test/system/104-run.bats
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ load 'libs/helpers'
setup() {
bats_require_minimum_version 1.7.0
_setup_environment
cleanup_containers
cleanup_all
pushd "$HOME" || return 1
}

teardown() {
cleanup_containers
popd || return 1
cleanup_all
}

@test "run: Smoke test with true(1)" {
Expand Down
4 changes: 2 additions & 2 deletions test/system/105-enter.bats
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ load 'libs/helpers'

setup() {
_setup_environment
cleanup_containers
cleanup_all
}

teardown() {
cleanup_containers
cleanup_all
}

@test "enter: Try to enter the default container with no containers created" {
Expand Down
4 changes: 2 additions & 2 deletions test/system/106-rm.bats
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ load 'libs/helpers'

setup() {
_setup_environment
cleanup_containers
cleanup_all
}

teardown() {
cleanup_containers
cleanup_all
}


Expand Down
6 changes: 4 additions & 2 deletions test/system/201-ipc.bats
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ load 'libs/helpers'
setup() {
bats_require_minimum_version 1.7.0
_setup_environment
cleanup_containers
cleanup_all
pushd "$HOME" || return 1
}

teardown() {
cleanup_containers
popd || return 1
cleanup_all
}

@test "ipc: No namespace" {
Expand Down
6 changes: 4 additions & 2 deletions test/system/203-network.bats
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ readonly RESOLVER_SH='resolvectl --legend false --no-pager --type "$0" query "$1
setup() {
bats_require_minimum_version 1.7.0
_setup_environment
cleanup_containers
cleanup_all
pushd "$HOME" || return 1
}

teardown() {
cleanup_containers
popd || return 1
cleanup_all
}

@test "network: No namespace" {
Expand Down
6 changes: 4 additions & 2 deletions test/system/206-user.bats
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ load 'libs/helpers'
setup() {
bats_require_minimum_version 1.7.0
_setup_environment
cleanup_containers
cleanup_all
pushd "$HOME" || return 1
}

teardown() {
cleanup_containers
popd || return 1
cleanup_all
}

@test "user: Separate namespace" {
Expand Down
6 changes: 4 additions & 2 deletions test/system/210-ulimit.bats
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ load 'libs/helpers'
setup() {
bats_require_minimum_version 1.7.0
_setup_environment
cleanup_containers
cleanup_all
pushd "$HOME" || return 1
}

teardown() {
cleanup_containers
popd || return 1
cleanup_all
}

@test "ulimit: real-time non-blocking time (hard)" {
Expand Down
6 changes: 4 additions & 2 deletions test/system/211-dbus.bats
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ load 'libs/helpers'
setup() {
bats_require_minimum_version 1.7.0
_setup_environment
cleanup_containers
cleanup_all
pushd "$HOME" || return 1
}

teardown() {
cleanup_containers
popd || return 1
cleanup_all
}

@test "dbus: session bus inside the default container" {
Expand Down
6 changes: 4 additions & 2 deletions test/system/220-environment-variables.bats
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ load 'libs/helpers'
setup() {
bats_require_minimum_version 1.7.0
_setup_environment
cleanup_containers
cleanup_all
pushd "$HOME" || return 1
}

teardown() {
cleanup_containers
popd || return 1
cleanup_all
}

@test "environment variables: HISTFILESIZE inside the default container" {
Expand Down
5 changes: 0 additions & 5 deletions test/system/libs/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ function cleanup_all() {
}


function cleanup_containers() {
"$PODMAN" rm --all --force >/dev/null
}


function _setup_environment() {
_setup_containers_storage
check_xdg_runtime_dir
Expand Down
2 changes: 1 addition & 1 deletion test/system/setup_suite.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

missing_dependencies=false

if [ -f test/system/libs/bats-assert/load.bash ] && [ -f test/system/libs/bats-support/load.bash ]; then
if [ -f "$BATS_TEST_DIRNAME/libs/bats-assert/load.bash" ] && [ -f "$BATS_TEST_DIRNAME/libs/bats-support/load.bash" ]; then
load 'libs/helpers'
else
missing_dependencies=true
Expand Down