Skip to content

Commit

Permalink
Add justfile recipe to run tests
Browse files Browse the repository at this point in the history
This new recipe ensures that all the dependencies are rebuilt and up to
date.

As an example:

Modify
/usr/local/google/home/tzn/src/oak/oak_restricted_kernel_wrapper/src/asm/boot.s
and add an `int3` instruction in `_wrapper_entry`, then run `just
run_oak_functions_test`, and see it fail. Then remove the `int3` and
rerun the command, and see it pass again within 30s.

Bug: 355606262
Change-Id: Idbc4c42c3f926129d55103349b49dfe9f25b6f3c
  • Loading branch information
tiziano88 committed Jul 26, 2024
1 parent d73ee8c commit 589d8fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ run_oak_functions_containers_launcher wasm_path port lookup_data_path communicat
--communication-channel={{communication_channel}}

run_oak_functions_launcher wasm_path port lookup_data_path:
target/x86_64-unknown-linux-gnu/debug/oak_functions_launcher \
target/x86_64-unknown-linux-gnu/release/oak_functions_launcher \
--bios-binary=stage0_bin/target/x86_64-unknown-none/release/stage0_bin \
--kernel=oak_restricted_kernel_wrapper/target/x86_64-unknown-none/release/oak_restricted_kernel_wrapper_bin \
--vmm-binary=$(which qemu-system-x86_64) \
Expand All @@ -58,7 +58,9 @@ run_oak_functions_launcher wasm_path port lookup_data_path:
--port={{port}} \
--lookup-data={{lookup_data_path}} \


# Run an integration test for Oak Functions making sure all the dependencies are built.
run_oak_functions_test: oak_orchestrator oak_functions_launcher oak_functions_enclave_app (wasm_release_crate "key_value_lookup") oak_restricted_kernel_wrapper
cargo test --package=key_value_lookup test_server

# Builds a variant of the restricted kernel and creates a bzImage of it.
# Then creates provenance subjects for it.
Expand Down

0 comments on commit 589d8fd

Please sign in to comment.