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 <[email protected]>
  • Loading branch information
roypat committed Nov 25, 2024
1 parent dbc886a commit 13f4cf4
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 rustfilt
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 13f4cf4

Please sign in to comment.