在 IBM Power Systems 上的 Docker 容器中运行 STAF 和 LTP 的开源解决方案更新
 
- UID
- 1066743
|

在 IBM Power Systems 上的 Docker 容器中运行 STAF 和 LTP 的开源解决方案更新
使用 Dockerfile 创建 Docker 镜像
Dockerfile 完成设置 STAF 框架所需的配置。Dockerfile 还会完成从 STAF 框架内运行 LTP 测试桶所需的配置。
使用从 Dockerfile 构建的镜像启动容器时,会使用 STAF 框架启动 LTP 测试。
可以在 github 存储库中找到 Dockerfile、其他配置文件,以及有关如何创建 ltp_staf Docker 容器的细节:。
执行以下步骤来构建镜像:
- 运行以下命令,以便克隆 网站中的 ltp_staf 目录:
gitclone - 运行 cd /STAF_LTP 命令来更改目录。
- 运行 docker build -t <image_name> 命令来构建 Docker 镜像。
监视 LTP 测试要监视在容器内运行的测试,可以使用以下原生 STAF 命令。
docker exec -it <container_id> /bin/bash
STAF LOCAL STAX LIST JOBS
STAF LOCAL STAX LIST JOB <job ID> testcases
|
备注:测试案例结果位于 Docker 容器内的 /var/log/staf/ltp 位置。
免责声明完整的 LTP 测试套件未经过测试,也未包含在本项目中。本项目仅展示了在 IBM Power Systems 服务器上启用 Docker、LTP 和 STAF 的部分。
以下是本项目包含的 LTP 测试案例。
表 1. LTP 测试案例[td]
|
|
| Admin_tools | Stress.part2 | Io_floppy | Nw_under_ns | Can | Stress.part3 | ipc | Pipes | Cap_bounds | Syscalls | tracing | Power_management_tests | Commands | Syscalls-ipc | Kernel_misc | Tom_tools | Connectors | Timers | Ltp-aiodio.part1 | makefile | Containers | Fs_ext4 | Ltp-aiodio.part2 | Pty | Controllers | Fs_perms_simple | Ltp-aiodio.part3 | quickhit | Cpuhotplug | Fs_readonly | Ltp-aiodio.part4 | Rpc_tests | Dio | fsx | Ltp-aio-stress.part1 | Sched | Dma_thread_diotest | hugetlb | Ltp-aio-stress.part2 | Scsi_debug.part1 | fcntl-locktests | hyperthreading | mm | sercurebits | fliecapts | ima | modules | smack | fs | io | nptl | Lvm.part2 | Fs_bind | Io_cd | numa |
| Stress.part1 | math | Tirpc_tests |
| ltplite | Lvm.part1 |
|
| 示例 XML (ltp.xml) 文件中包含 syscalls、fs、fsx、dio、mm、commands、ipc、sched、pty 和 math 测试案例。我们还修改了该 XML 文件,以包含上述测试案例。编辑 ltp.xml 文件中的 RUNTEST 变量。
例如:
"RUNTEST" default="['lvm.part2','power_management_tests','power_management_tests_exclusive','quickhit','scsi_debug.part1','securebits','smack','stress.part2','stress.part3']"
|
备注:在 LTP、STAF、STAX 和 Java 构建版本发生变化时,这些目录也会发生相应变化。如果系统位于私有网络中,您需要添加相关的代理或存储库。
致谢感谢 Linux 技术中心的 STSM、Power 云和 Docker 架构师 Pradipta K Banerjee,他为本文的发表提供了许多指导和帮助。 |
|
|
|
|
|