forked from redrsoe2100/os-autotest
openruyi: fix openruyi-test
This commit is contained in:
@@ -27,7 +27,7 @@ function pre_test() {
|
|||||||
|
|
||||||
function run_test() {
|
function run_test() {
|
||||||
LOG_INFO "start to run test."
|
LOG_INFO "start to run test."
|
||||||
if git clone -b v6.0.0 hhttps://github.com/kdlucas/byte-unixbench.git "${UNIXBENCH_DIR}"; then
|
if git clone -b v6.0.0 https://github.com/kdlucas/byte-unixbench.git "${UNIXBENCH_DIR}"; then
|
||||||
LOG_INFO "UnixBench 仓库克隆成功"
|
LOG_INFO "UnixBench 仓库克隆成功"
|
||||||
cd $UNIXBENCH_DIR/UnixBench
|
cd $UNIXBENCH_DIR/UnixBench
|
||||||
sed -i 's/rv64g/rva23u64/g' Makefile
|
sed -i 's/rv64g/rva23u64/g' Makefile
|
||||||
|
|||||||
@@ -27,11 +27,12 @@ function pre_test() {
|
|||||||
function run_test() {
|
function run_test() {
|
||||||
set -e
|
set -e
|
||||||
LOG_INFO "start to run test."
|
LOG_INFO "start to run test."
|
||||||
|
rm -rf build
|
||||||
mkdir -p build/rpmbuild/SOURCES/
|
mkdir -p build/rpmbuild/SOURCES/
|
||||||
if wget -P build/rpmbuild/SOURCES/ https://github.com/houseroad/foxi/archive/c278588/foxi-c278588.tar.gz; then
|
if wget -P build/rpmbuild/SOURCES/ https://github.com/houseroad/foxi/archive/c278588/foxi-c278588.tar.gz; then
|
||||||
LOG_INFO "foxi-c278588.tar.gz 下载成功"
|
LOG_INFO "foxi-c278588.tar.gz 下载成功"
|
||||||
cp 0001-Fix-signatures-of-functions.patch -p build/rpmbuild/SOURCES/
|
cp 0001-Fix-signatures-of-functions.patch -p build/rpmbuild/SOURCES/
|
||||||
rpmbuild --define '_topdir ' -ba foxi.spec
|
rpmbuild --define '_topdir build' -ba foxi.spec
|
||||||
CHECK_RESULT $? 0 0 "build foxi rpm succeed"
|
CHECK_RESULT $? 0 0 "build foxi rpm succeed"
|
||||||
else
|
else
|
||||||
LOG_ERROR "foxi-c278588.tar.gz 下载失败,脚本退出"
|
LOG_ERROR "foxi-c278588.tar.gz 下载失败,脚本退出"
|
||||||
|
|||||||
Reference in New Issue
Block a user