初始提交:terminalX 可运行态(M0/M1/M1.5 已真机验证)
- M0: libghostty SSH 终端(渲染/输入/连接)+ 白屏修复(OutputGate) + 会话状态机/自动重连 - M1: tsnet 用户态组网 + SSH-over-tsnet(fd 桥),shell 级真机验证;R5(Go+gvisor+C+++Swift 同进程) retire - M1.5: tmux -CC 原生 tab(MVP) - 结构: packages/(TXCore·TXTransport), apps/TerminalX, vendor/(libghostty-spm/libssh2/mbedtls/tsnet-bridge), artifacts/ - 文档: CLAUDE.md + docs/HANDOFF.md(新会话入口) - 环境: 认证代理→依赖 vendor 本地化;Go 在 ~/.local/go;仅模拟器/未签名 - 待续: M2 mosh, tmux 多 pane, M4 安全(host key/SE) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
52
vendor/mbedtls/framework/tests/programs/dlopen_demo.sh
vendored
Executable file
52
vendor/mbedtls/framework/tests/programs/dlopen_demo.sh
vendored
Executable file
@@ -0,0 +1,52 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Run the shared library dynamic loading demo program.
|
||||
# This is only expected to work when Mbed TLS is built as a shared library.
|
||||
|
||||
# Copyright The Mbed TLS Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
|
||||
SCRIPT_DIR=$(dirname "$0")
|
||||
. "${SCRIPT_DIR}/../../scripts/demo_common.sh"
|
||||
|
||||
msg "Test the dynamic loading of libmbed*"
|
||||
|
||||
# Once demo_common.sh is sourced we'll have $root_dir pointing to the root
|
||||
# path of Mbed TLS or TF-PSA-Crypto.
|
||||
if is_mbedtls_root $root_dir; then
|
||||
msg "Running in Mbed TLS repo"
|
||||
program="$root_dir/programs/test/dlopen"
|
||||
library_dir="$root_dir/library"
|
||||
else
|
||||
msg "Running in TF-PSA-Crypto repo"
|
||||
program="$root_dir/programs/test/tfpsacrypto_dlopen"
|
||||
library_dir="$root_dir/core"
|
||||
fi
|
||||
|
||||
# Skip this test if we don't have a shared library build. Detect this
|
||||
# through the absence of the demo program.
|
||||
if [ ! -e "$program" ]; then
|
||||
msg "Error: demo program $program not found."
|
||||
# Exit with a success status so that this counts as a pass for run_demos.py.
|
||||
exit
|
||||
fi
|
||||
|
||||
# ELF-based Unix-like (Linux, *BSD, Solaris, ...)
|
||||
if [ -n "${LD_LIBRARY_PATH-}" ]; then
|
||||
LD_LIBRARY_PATH="$library_dir:$LD_LIBRARY_PATH"
|
||||
else
|
||||
LD_LIBRARY_PATH="$library_dir"
|
||||
fi
|
||||
export LD_LIBRARY_PATH
|
||||
|
||||
# OSX/macOS
|
||||
if [ -n "${DYLD_LIBRARY_PATH-}" ]; then
|
||||
DYLD_LIBRARY_PATH="$library_dir:$DYLD_LIBRARY_PATH"
|
||||
else
|
||||
DYLD_LIBRARY_PATH="$library_dir"
|
||||
fi
|
||||
export DYLD_LIBRARY_PATH
|
||||
|
||||
msg "Running dynamic loading test program: $program"
|
||||
msg "Loading libraries from: $library_dir"
|
||||
"$program"
|
||||
Reference in New Issue
Block a user