diff --git a/Kmesh.spec b/Kmesh.spec index 58d6ba42ad0465d081275cff42c1ff324de4c364..fb64dc5e75e15385c5fabab223660ad661e3e2a0 100644 --- a/Kmesh.spec +++ b/Kmesh.spec @@ -2,7 +2,7 @@ Name: Kmesh Version: 0.2.0 -Release: 6 +Release: 7 Summary: %{name} is a eBPF-based service mesh kernel solution License: ASL 2.0 URL: https://gitee.com/openeuler/%{name} @@ -15,6 +15,7 @@ BuildRequires: clang >= 10.0.1 llvm >= 10.0.1 BuildRequires: libbpf-devel kernel-devel >= 5.10 BuildRequires: libboundscheck BuildRequires: uname-build-checks +BuildRequires: expect psmisc make iputils python3-six python3-paramiko Requires: bpftool Requires: libbpf @@ -60,8 +61,18 @@ install %{_builddir}/%{name}-%{version}/build/kmesh.service %{buildroot}/usr/lib %check cd %{_builddir}/%{name}-%{version} -#make -#make test +cd test +#IPADDR="$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}' | head -1)" +sed -i 's/yum install -y make .*/:/g' runtest.sh +sed -i '/cd mugen-master/a\sed -i \"s\/yum install expect .*\/:/g\" dep_install.sh' runtest.sh +sed -i '/cd mugen-master/a\sed -i \"s\/ load_conf\/#load_conf/g\" mugen.sh' runtest.sh +sed -i '/cd mugen-master/a\sed -i \"s\/ copy_libs_to_node1\/#copy_libs_to_node1/g\" mugen.sh' runtest.sh +sed -i 's/bash mugen.sh -c .*/:/g' runtest.sh +sed -i 's/yum localinstall -y fortio-\*.rpm/rpm -ivh fortio-\*.rpm/g' testcases/kmesh/libs/common.sh +sed -i 's/yum remove -y fortio/rpm -evh fortio/g' testcases/kmesh/libs/common.sh + +./runtest.sh 192.168.1.1 12345678 oe_test_base_function + %post echo "installing ..."