1 Star 0 Fork 0

sean.hu/porting-advisor-for-graviton

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
container-test.sh 996 Bytes
一键复制 编辑 原始数据 按行查看 历史
Arturo Molina 提交于 2023-06-16 06:03 . Updates shebangs to use bash
#!/bin/bash
source ./test-helpers.sh
# This script tests container image build and runs a couple of
# tests against the generated image.
if [ -d ".venv" ]; then
mv .venv .venv_temp
fi
docker build -t porting-advisor .
if [ $? -ne 0 ]; then
echo "**ERROR**: building container image" && exit 1
fi
echo "Running container on samples to console"
docker run --rm -v $(pwd)/sample-projects:/source porting-advisor /source > console_test.txt
test_report 'console' 'console_test.txt' "${lines_to_find[@]}"
if [ $? -ne 0 ]; then
echo "**ERROR**: running container to console" && exit 1
fi
rm console_test.txt
echo "Running container on samples to HTML report"
docker run --rm -v $(pwd):/source porting-advisor /source/sample-projects --output /source/test.html
test_report 'html' 'test.html' "${lines_to_find[@]}"
if [ $? -ne 0 ]; then
echo "**ERROR**: running container to html report" && exit 1
fi
rm -f test.html
if [ -d ".venv_temp" ]; then
mv .venv_temp .venv
fi
exit 0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sean_hu/porting-advisor-for-graviton.git
git@gitee.com:sean_hu/porting-advisor-for-graviton.git
sean_hu
porting-advisor-for-graviton
porting-advisor-for-graviton
FixFalseCanaryFailureAlarm

搜索帮助