You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by ms...@apache.org on 2020/01/15 05:48:14 UTC
[incubator-teaclave] branch develop updated: [tests] Add
protected_fs tests (untrusted part) in the test script
This is an automated email from the ASF dual-hosted git repository.
mssun pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git
The following commit(s) were added to refs/heads/develop by this push:
new e8f4c6b [tests] Add protected_fs tests (untrusted part) in the test script
e8f4c6b is described below
commit e8f4c6b8d5bb75febb356487a19b4ee837369fb1
Author: Mingshen Sun <bo...@mssun.me>
AuthorDate: Tue Jan 14 21:35:08 2020 -0800
[tests] Add protected_fs tests (untrusted part) in the test script
---
cmake/scripts/test.sh | 14 ++++++++++++++
common/protected_fs_rs/tests/large_file.rs | 2 +-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/cmake/scripts/test.sh b/cmake/scripts/test.sh
index 9e4afa2..3a0c238 100755
--- a/cmake/scripts/test.sh
+++ b/cmake/scripts/test.sh
@@ -14,10 +14,24 @@ if [ "${SGX_MODE}" = "HW" ]; then
fi
fi
+echo_title() {
+ width=70
+ padding="$(printf '%0.1s' ={1..70})"
+ padding_width="$(((width-2-${#1})/2))"
+ printf '\e[1m\e[96m%*.*s %s %*.*s\n\e[39m\e[0m' 0 "$padding_width" "$padding" "$1" 0 "$padding_width" "$padding"
+}
+
pushd ${MESATEE_TEST_INSTALL_DIR}
+echo_title "encalve unit tests"
./teaclave_enclave_unit_test
+
+echo_title "leveldb tests"
./teaclave_leveldb_tests
+
+echo_title "protect_fs tests"
./teaclave_protected_fs_tests
+cargo test --manifest-path ${MESATEE_PROJECT_ROOT}/common/protected_fs_rs/Cargo.toml \
+ --target-dir ${MESATEE_TARGET_DIR}/untrusted
popd
diff --git a/common/protected_fs_rs/tests/large_file.rs b/common/protected_fs_rs/tests/large_file.rs
index 95f6845..1c8cbae 100644
--- a/common/protected_fs_rs/tests/large_file.rs
+++ b/common/protected_fs_rs/tests/large_file.rs
@@ -22,7 +22,7 @@ use std::io::{Read, Write};
#[test]
fn test_large_file() {
const BLOCK_SIZE: usize = 2048;
- const NBLOCKS: usize = 0x0010_0000;
+ const NBLOCKS: usize = 0x001_0000;
let key = [90u8; 16];
let mut auth_tag = [0u8; 16];
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org