Skip to content

Commit 5497cdc

Browse files
committed
tests: Add build test for GDB
Adding a test to ensure that firecracker will build with the gdb flag enabled Signed-off-by: Jack Thomson <[email protected]>
1 parent 2e090da commit 5497cdc

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
"""A test that ensures that firecracker builds with GDB feature enabled at integration time."""
4+
5+
import platform
6+
7+
import pytest
8+
9+
import host_tools.cargo_build as host # pylint:disable=import-error
10+
11+
MACHINE = platform.machine()
12+
TARGET = "{}-unknown-linux-musl".format(MACHINE)
13+
14+
15+
@pytest.mark.skipif(MACHINE != "x86_64", reason="GDB runs only on x86_64.")
16+
def test_gdb_compiles():
17+
"""Checks that all benchmarks compile"""
18+
19+
host.cargo("build", f"--features gdb --target {TARGET}")

0 commit comments

Comments
 (0)