Skip to content

Commit

Permalink
tmp: make seccomp test work without new docker container
Browse files Browse the repository at this point in the history
this commit should be dropped once we have rebuilt the devctr.

Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
  • Loading branch information
roypat committed Dec 3, 2024
1 parent 8f072f5 commit 3af738c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ def test_redundant_seccomp_rules():
).stdout.strip()
target = f"{arch}-unknown-linux-musl"

utils.check_output(f"rustup component add rust-src --toolchain {nightly_toolchain}")
utils.check_output(f"rustup target add {target} --toolchain {nightly_toolchain}")

utils.check_output(
f'RUSTFLAGS="-C relocation-model=static -C link-args=-no-pie" cargo +{nightly_toolchain} -Zbuild-std=panic_abort,std build --release --target {target} -p firecracker'
)
Expand Down
3 changes: 3 additions & 0 deletions tools/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ fi
say "Copy CI artifacts to /srv, so hardlinks work"
cp -ruvf build/img /srv

apt-get update && apt-get install python3-seccomp
cp /usr/lib/python3/dist-packages/seccomp.cpython-312-$(uname -m)-linux-gnu.so /opt/venv/lib/python3.12/site-packages/

cd tests
export PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} --pdbcls=IPython.terminal.debugger:TerminalPdb"

Expand Down

0 comments on commit 3af738c

Please sign in to comment.