Skip to content

Commit

Permalink
Code cleanup (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulstrackx authored Jan 17, 2025
1 parent f420ca8 commit b844b28
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 1 addition & 3 deletions build-converter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ if [ ! -z "$2" ]; then
features_list="--features "$2
fi;

rustup target add $enclave_startup_toolchain

pushd tools/container-converter
cargo build $cargo_build_flag $features_list
cargo build $cargo_build_flag $features_list --locked

popd
16 changes: 9 additions & 7 deletions unit-test-solution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@ if [ -z "$SKIP_RUNNING_TESTS" ]; then
echo "Environment variable FORTANIX_API_KEY is unset. Unable to run dsm_key_config unit tests"
exit 1
fi
unit_test_dirs="vsock-proxy/enclave
vsock-proxy/parent
tools/container-converter"
for unit_test_dir in $unit_test_dirs
unit_test_dirs=(
"vsock-proxy/enclave"
"vsock-proxy/parent"
"tools/container-converter"
)
for unit_test_dir in "${unit_test_dirs[@]}"
do
pushd $unit_test_dir
cargo test
pushd "$unit_test_dir"
cargo test --locked
popd
done
fi

pushd api-model
cargo test --features=serde
cargo test --features=serde --locked
popd

0 comments on commit b844b28

Please sign in to comment.