Skip to content

Commit

Permalink
Local CI support
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulstrackx committed Feb 22, 2024
1 parent b578adc commit ab2ae6e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ct.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash -ex
repo_root=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
cd ${repo_root}

source ${repo_root}/ct_env.sh

cargo test

pushd tokio
cargo test --target x86_64-fortanix-unknown-sgx --features "full-sgx"
popd

pushd tokio-macros
cargo test --target x86_64-fortanix-unknown-sgx
popd

pushd tokio-stream
cargo test --target x86_64-fortanix-unknown-sgx
popd

pushd stress-test
cargo test --target x86_64-fortanix-unknown-sgx
popd
10 changes: 10 additions & 0 deletions ct_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash -ex
repo_root=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
cd ${repo_root}

# Unfortunately, the `ftxsgx-runner-cargo` application doesn't enable us to point to a runner within the same workspace. We use a hack here by pointing to `enclave-runner` and making sure such an executable exists when running CI
pushd enclave-runner
cargo build
popd

export PATH=${repo_root}/target/debug/:${PATH}

0 comments on commit ab2ae6e

Please sign in to comment.