This is an automated email from the ASF dual-hosted git repository. yuanz pushed a commit to branch no-std in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git
commit 4c65f128373af756bbd24d5f5e8e66d7f2ccc822 Author: Sumit Garg <[email protected]> AuthorDate: Thu Dec 28 15:43:18 2023 +0530 CI: tests: Drop std TAs support Signed-off-by: Sumit Garg <[email protected]> --- ci/ci.sh | 6 ---- ci/qemu-check.exp | 52 ----------------------------- tests/test_message_passing_interface.sh | 54 ------------------------------ tests/test_serde.sh | 57 -------------------------------- tests/test_tcp_client.sh | 54 ------------------------------ tests/test_tls_client.sh | 54 ------------------------------ tests/test_tls_server.sh | 58 --------------------------------- tests/test_udp_socket.sh | 54 ------------------------------ 8 files changed, 389 deletions(-) diff --git a/ci/ci.sh b/ci/ci.sh index 50c72bc..bcd076b 100755 --- a/ci/ci.sh +++ b/ci/ci.sh @@ -25,7 +25,6 @@ pushd ../tests ./test_random.sh ./test_secure_storage.sh ./test_aes.sh -./test_serde.sh ./test_hotp.sh ./test_acipher.sh ./test_big_int.sh @@ -33,12 +32,7 @@ pushd ../tests ./test_digest.sh ./test_authentication.sh ./test_time.sh -./test_tcp_client.sh -./test_udp_socket.sh -./test_message_passing_interface.sh ./test_signature_verification.sh ./test_supp_plugin.sh -./test_tls_client.sh -./test_tls_server.sh popd diff --git a/ci/qemu-check.exp b/ci/qemu-check.exp index d8d4b26..a76deb4 100644 --- a/ci/qemu-check.exp +++ b/ci/qemu-check.exp @@ -180,19 +180,6 @@ expect { } } -expect "# " -info "Running message_passing_interface-rs...\n" -send -- "message_passing_interface-rs\r" -expect { - -re "Hello, World" { - info "Test success\n" - } - timeout { - info "!!! Timeout: Test failed\n" - exit 1 - } -} - expect "# " info "Running random-rs...\n" send -- "random-rs\r" @@ -219,19 +206,6 @@ expect { } } -expect "# " -info "Running serde-rs...\n" -send -- "serde-rs\r" -expect { - "Success" { - info "Test success\n" - } - timeout { - info "!!! Timeout: Test failed\n" - exit 1 - } -} - expect "# " info "Running supp_plugin-rs...\n" send -- "supp_plugin-rs\r" @@ -245,19 +219,6 @@ expect { } } -expect "# " -info "Running tcp_client-rs...\n" -send -- "tcp_client-rs\r" -expect { - "Success" { - info "Test success\n" - } - timeout { - info "!!! Timeout: Test failed\n" - exit 1 - } -} - expect "# " info "Running time-rs...\n" send -- "time-rs\r" @@ -271,19 +232,6 @@ expect { } } -expect "# " -info "Running udp_socket-rs...\n" -send -- "udp_socket-rs\r" -expect { - "Success" { - info "Test success\n" - } - timeout { - info "!!! Timeout: Test failed\n" - exit 1 - } -} - expect "# " info "Running signature_verification-rs...\n" send -- "signature_verification-rs\r" diff --git a/tests/test_message_passing_interface.sh b/tests/test_message_passing_interface.sh deleted file mode 100755 index 8e80088..0000000 --- a/tests/test_message_passing_interface.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -xe - -rm -rf screenlog.0 -rm -rf optee-qemuv8-3.20.0-ubuntu-20.04 -rm -rf shared - -curl https://nightlies.apache.org/teaclave/teaclave-trustzone-sdk/optee-qemuv8-3.20.0-ubuntu-20.04.tar.gz | tar zxv -mkdir shared -cp ../examples/message_passing_interface-rs/ta/target/aarch64-unknown-optee-trustzone/release/*.ta shared -cp ../examples/message_passing_interface-rs/host/target/aarch64-unknown-linux-gnu/release/message_passing_interface-rs shared - -screen -L -d -m -S qemu_screen ./optee-qemuv8.sh -sleep 30 -screen -S qemu_screen -p 0 -X stuff "root\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "mkdir shared && mount -t 9p -o trans=virtio host shared && cd shared\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "cp *.ta /lib/optee_armtz/\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "./message_passing_interface-rs\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "^C" -sleep 5 - -{ - grep -q "Hello, World" screenlog.0 -} || { - cat -v screenlog.0 - cat -v /tmp/serial.log - false -} - -rm -rf screenlog.0 -rm -rf optee-qemuv8-3.20.0-ubuntu-20.04 -rm -rf shared diff --git a/tests/test_serde.sh b/tests/test_serde.sh deleted file mode 100755 index 43b940c..0000000 --- a/tests/test_serde.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -xe - -rm -rf screenlog.0 -rm -rf optee-qemuv8-3.20.0-ubuntu-20.04 -rm -rf shared - -curl https://nightlies.apache.org/teaclave/teaclave-trustzone-sdk/optee-qemuv8-3.20.0-ubuntu-20.04.tar.gz | tar zxv -mkdir shared -cp ../examples/serde-rs/ta/target/aarch64-unknown-optee-trustzone/release/*.ta shared -cp ../examples/serde-rs/host/target/aarch64-unknown-linux-gnu/release/serde-rs shared - -screen -L -d -m -S qemu_screen ./optee-qemuv8.sh -sleep 30 -screen -S qemu_screen -p 0 -X stuff "root\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "mkdir shared && mount -t 9p -o trans=virtio host shared && cd shared\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "cp *.ta /lib/optee_armtz/\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "./serde-rs\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "^C" -sleep 5 - -{ - grep -q "Success" screenlog.0 && - grep -q "Point { x: 1, y: 2 }" screenlog.0 && - grep -q "serialized = " /tmp/serial.log && - grep -q "deserialized = " /tmp/serial.log -} || { - cat -v screenlog.0 - cat -v /tmp/serial.log - false -} - -rm -rf screenlog.0 -rm -rf optee-qemuv8-3.20.0-ubuntu-20.04 -rm -rf shared diff --git a/tests/test_tcp_client.sh b/tests/test_tcp_client.sh deleted file mode 100755 index efb3d99..0000000 --- a/tests/test_tcp_client.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -xe - -rm -rf screenlog.0 -rm -rf optee-qemuv8-3.20.0-ubuntu-20.04 -rm -rf shared - -curl https://nightlies.apache.org/teaclave/teaclave-trustzone-sdk/optee-qemuv8-3.20.0-ubuntu-20.04.tar.gz | tar zxv -mkdir shared -cp ../examples/tcp_client-rs/ta/target/aarch64-unknown-optee-trustzone/release/*.ta shared -cp ../examples/tcp_client-rs/host/target/aarch64-unknown-linux-gnu/release/tcp_client-rs shared - -screen -L -d -m -S qemu_screen ./optee-qemuv8.sh -sleep 30 -screen -S qemu_screen -p 0 -X stuff "root\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "mkdir shared && mount -t 9p -o trans=virtio host shared && cd shared\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "cp *.ta /lib/optee_armtz/\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "./tcp_client-rs\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "^C" -sleep 5 - -{ - grep -q "Success" screenlog.0 -} || { - cat -v screenlog.0 - cat -v /tmp/serial.log - false -} - -rm -rf screenlog.0 -rm -rf optee-qemuv8-3.20.0-ubuntu-20.04 -rm -rf shared diff --git a/tests/test_tls_client.sh b/tests/test_tls_client.sh deleted file mode 100755 index 9df0409..0000000 --- a/tests/test_tls_client.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -xe - -rm -rf screenlog.0 -rm -rf optee-qemuv8-3.20.0-ubuntu-20.04 -rm -rf shared - -curl https://nightlies.apache.org/teaclave/teaclave-trustzone-sdk/optee-qemuv8-3.20.0-ubuntu-20.04-expand-ta-memory.tar.gz | tar zxv -mkdir shared -cp ../examples/tls_client-rs/ta/target/aarch64-unknown-optee-trustzone/release/*.ta shared -cp ../examples/tls_client-rs/host/target/aarch64-unknown-linux-gnu/release/tls_client-rs shared - -screen -L -d -m -S qemu_screen ./optee-qemuv8.sh -sleep 30 -screen -S qemu_screen -p 0 -X stuff "root\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "mkdir shared && mount -t 9p -o trans=virtio host shared && cd shared\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "cp *.ta /lib/optee_armtz/\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "./tls_client-rs\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "^C" -sleep 5 - -{ - grep -q "Success" screenlog.0 -} || { - cat -v screenlog.0 - cat -v /tmp/serial.log - false -} - -rm -rf screenlog.0 -rm -rf optee-qemuv8-3.20.0-ubuntu-20.04 -rm -rf shared diff --git a/tests/test_tls_server.sh b/tests/test_tls_server.sh deleted file mode 100755 index d25909b..0000000 --- a/tests/test_tls_server.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -xe - -rm -rf screenlog.0 -rm -rf openssl.log -rm -rf optee-qemuv8-3.20.0-ubuntu-20.04 -rm -rf shared - -curl https://nightlies.apache.org/teaclave/teaclave-trustzone-sdk/optee-qemuv8-3.20.0-ubuntu-20.04-expand-ta-memory.tar.gz | tar zxv -mkdir shared -cp ../examples/tls_server-rs/ta/target/aarch64-unknown-optee-trustzone/release/*.ta shared -cp ../examples/tls_server-rs/host/target/aarch64-unknown-linux-gnu/release/tls_server-rs shared - -screen -L -d -m -S qemu_screen ./optee-qemuv8.sh -sleep 30 -screen -S qemu_screen -p 0 -X stuff "root\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "mkdir shared && mount -t 9p -o trans=virtio host shared && cd shared\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "cp *.ta /lib/optee_armtz/\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "./tls_server-rs\n" -sleep 5 -echo "Q" | openssl s_client -connect 127.0.0.1:54433 -debug > openssl.log 2>&1 -sleep 5 -screen -S qemu_screen -p 0 -X stuff "^C" - -{ - grep -q "DONE" openssl.log -} || { - cat -v screenlog.0 - cat -v /tmp/serial.log - cat -v openssl.log - false -} - -rm -rf screenlog.0 -rm -rf openssl.log -rm -rf optee-qemuv8-3.20.0-ubuntu-20.04 -rm -rf shared diff --git a/tests/test_udp_socket.sh b/tests/test_udp_socket.sh deleted file mode 100755 index d91aa52..0000000 --- a/tests/test_udp_socket.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -xe - -rm -rf screenlog.0 -rm -rf optee-qemuv8-3.20.0-ubuntu-20.04 -rm -rf shared - -curl https://nightlies.apache.org/teaclave/teaclave-trustzone-sdk/optee-qemuv8-3.20.0-ubuntu-20.04.tar.gz | tar zxv -mkdir shared -cp ../examples/udp_socket-rs/ta/target/aarch64-unknown-optee-trustzone/release/*.ta shared -cp ../examples/udp_socket-rs/host/target/aarch64-unknown-linux-gnu/release/udp_socket-rs shared - -screen -L -d -m -S qemu_screen ./optee-qemuv8.sh -sleep 30 -screen -S qemu_screen -p 0 -X stuff "root\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "mkdir shared && mount -t 9p -o trans=virtio host shared && cd shared\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "cp *.ta /lib/optee_armtz/\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "./udp_socket-rs\n" -sleep 5 -screen -S qemu_screen -p 0 -X stuff "^C" -sleep 5 - -{ - grep -q "Success" screenlog.0 -} || { - cat -v screenlog.0 - cat -v /tmp/serial.log - false -} - -rm -rf screenlog.0 -rm -rf optee-qemuv8-3.20.0-ubuntu-20.04 -rm -rf shared --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
