3 Star 0 Fork 1

SpacemiT Buildroot SDK/factorytest

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
stress-ng.sh 468 Bytes
一键复制 编辑 原始数据 按行查看 历史
James Deng 提交于 2024-04-30 17:48 +08:00 . Update for v1.0rc1
#!/bin/bash
echo "Starting stress test..."
stress-ng --cpu 6 --cpu-method all --cpu-load 50 --metrics-brief &
# Get the process ID of the stress-ng instance
stress_ng_pid=$!
# Wait for the process to finish
wait $stress_ng_pid
# Check the exit status of stress-ng process
if [ $? -eq 0 ]; then
echo "Stress test completed successfully."
else
echo "Stress test encountered an error or exited prematurely."
echo none > /sys/class/leds/sys-led/trigger
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/spacemit-buildroot/factorytest.git
git@gitee.com:spacemit-buildroot/factorytest.git
spacemit-buildroot
factorytest
factorytest
k1-bl-v2.2.y

搜索帮助