Skip to content

Commit d63ff99

Browse files
committed
test
1 parent 8c700b5 commit d63ff99

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ jobs:
5959
rustup target add x86_64-fortanix-unknown-sgx --toolchain nightly
6060
rustup update
6161
62+
- name: Run elf2uki example
63+
run: ./examples/elf2uki/convert_hello_world.sh
64+
6265
- name: Cargo test --all --exclude sgxs-loaders
6366
run: cargo test --verbose --locked --all --exclude sgxs-loaders --exclude async-usercalls && [ "$(echo $(nm -D target/debug/sgx-detect|grep __vdso_sgx_enter_enclave))" = "w __vdso_sgx_enter_enclave" ]
6467

@@ -135,5 +138,3 @@ jobs:
135138
- name: snmalloc correntness test
136139
run: cd ./examples/mem-correctness-test && cargo run
137140

138-
- name: Run elf2uki example
139-
run: ./examples/elf2uki/convert_hello_world.sh

examples/elf2uki/convert_hello_world.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,20 @@ app_dir="$source_dir/hello_world"
77

88
pushd "$app_dir"
99
#builds statically linked bin for `musl`
10-
cargo -q build --release
10+
cargo build --release -v
1111
popd
1212

13+
env
14+
rustc --version --verbose
15+
find . -name hello_world
16+
ls "$app_dir"
17+
ls "$source_dir"
18+
ls "$app_dir/target"
19+
ls "$app_dir/target/x86_64-unknown-linux-musl/"
20+
ls "$app_dir/target/x86_64-unknown-linux-musl/release"
21+
1322
# build UKI and write it to `/dev/null`
14-
cargo -q run -p elf2uki -- \
23+
cargo run -p elf2uki -v -- \
1524
--app "$app_dir/target/x86_64-unknown-linux-musl/release/hello_world" \
1625
--cmdline "console=ttyS0 earlyprintk=serial" \
1726
--output /dev/null

0 commit comments

Comments
 (0)