-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix_uffd_kernel_faults
- Loading branch information
Showing
5 changed files
with
35 additions
and
4 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
22 changes: 22 additions & 0 deletions
22
tests/integration_tests/build/test_binary_static_linking.py
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
"""Tests to check if the release binary is statically linked. | ||
""" | ||
|
||
import pytest | ||
import host_tools.cargo_build as host | ||
from framework import utils | ||
|
||
@pytest.mark.timeout(500) | ||
def test_firecracker_binary_static_linking(): | ||
""" | ||
Test to make sure the firecracker binary is statically linked. | ||
""" | ||
fc_binary_path = host.get_binary("firecracker") | ||
_, stdout,stderr = utils.run_cmd(f"file {fc_binary_path}") | ||
assert "" in stderr | ||
# expected "statically linked" for aarch64 and | ||
# "static-pie linked" for x86_64 | ||
assert "statically linked" in stdout or \ | ||
"static-pie linked" in stdout |
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