Skip to content

Commit f4f9375

Browse files
JackThomson2Firecracker CI
authored andcommitted
test: Add test for kernel build
Adding a new integration test to assert that the kernel build script will succeed. Signed-off-by: Jack Thomson <[email protected]>
1 parent 5149dfe commit f4f9375

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.buildkite/pipeline_pr.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@
6868
for step in kani_grp["steps"]:
6969
step["label"] = "🔍 Kani"
7070

71+
if any(x.parent.name == "hiding_ci" for x in changed_files):
72+
pipeline.build_group_per_arch(
73+
"🕵️ Build Secret Hiding Kernel",
74+
pipeline.devtool_test(
75+
pytest_opts="-m nonci integration_tests/build/test_hiding_kernel.py",
76+
),
77+
depends_on_build=False,
78+
)
79+
7180
if run_all_tests(changed_files):
7281
pipeline.build_group(
7382
"📦 Build",
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
"""A test which checks that the secret hiding enable kernel builds successfully."""
4+
5+
import pytest
6+
7+
from framework import utils
8+
9+
10+
@pytest.mark.nonci
11+
def test_build_hiding_kernel():
12+
"""
13+
In the test we will run our kernel build script to check it succeeds an builds the hidden kernel
14+
"""
15+
utils.check_output(
16+
"../resources/hiding_ci/build_and_install_kernel.sh --no-install --tidy"
17+
)

0 commit comments

Comments
 (0)