Skip to content

Commit 975df57

Browse files
authored
Merge pull request #57 from senamakel/tinybox-27-win11-arm64-appcontainer
ci: run AppContainer acceptance tests on Windows ARM64
2 parents dd0107e + e1ad658 commit 975df57

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,35 @@ jobs:
6969
- name: Run Windows feature tests
7070
shell: bash
7171
run: scripts/test-features.sh
72+
- name: Run required ARM64 AppContainer acceptance tests
73+
shell: bash
74+
env:
75+
TINYBOX_REQUIRE_APPCONTAINER_RESOURCE_TESTS: "1"
76+
run: |
77+
set -euo pipefail
78+
tests=(
79+
windows::tests::appcontainer_backend_is_available_through_owned_process_supervision
80+
windows::tests::appcontainer_plan_check_keeps_cpu_unsupported_and_reports_job_limits
81+
windows::tests::appcontainer_owned_launch_captures_output_from_a_confined_child
82+
windows::tests::appcontainer_owned_termination_stops_descendants_after_parent_exit
83+
windows::tests::appcontainer_process_limit_enforces_maximum_child_count
84+
windows::tests::appcontainer_denies_reads_and_writes_outside_granted_roots
85+
windows::tests::appcontainer_denies_verbatim_path_reads_outside_granted_roots
86+
windows::tests::appcontainer_denies_parent_traversal_reads_outside_granted_roots
87+
windows::tests::appcontainer_child_cannot_connect_to_host_loopback
88+
windows::tests::live_appcontainer_memory_limit_blocks_over_budget_allocation
89+
)
90+
for test in "${tests[@]}"; do
91+
output="$(cargo test --locked -p tinybox-jail --lib "$test" -- --exact --nocapture --test-threads=1 2>&1)" || {
92+
printf '%s\n' "$output"
93+
exit 1
94+
}
95+
printf '%s\n' "$output"
96+
if ! grep -qE '1 passed; 0 failed' <<<"$output"; then
97+
echo "expected exactly one ARM64 AppContainer test to run: $test" >&2
98+
exit 1
99+
fi
100+
done
72101
windows-2025:
73102
name: Windows Server 2025 E2E and feature tests (x64)
74103
runs-on: windows-2025

0 commit comments

Comments
 (0)