1 Star 0 Fork 18

wangchuangGG/lmbench

forked from src-openEuler/lmbench 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ltp-build_withtirpc.sh 3.81 KB
一键复制 编辑 原始数据 按行查看 历史
wangchuangGG 提交于 2021-03-31 09:38 . update record.txt.
#!/bin/sh
rm -rf ltp-full-20160510
[ -d ltp-full-20160510 ] || tar xf ltp-full-20160510.tar.xz
cd ltp-full-20160510
sed -i '425s/WEXITSTATUS(status)/-1/' testcases/kernel/sched/tool/trace_sched.c
sed -i '35 aFILTER_OUT_DIRS += ustat' testcases/kernel/syscalls/Makefile
sed -i '46 a#include <sys/sysmacros.h>' testcases/kernel/syscalls/mount/mount02.c
sed -i '48 a#include <sys/sysmacros.h>' testcases/kernel/syscalls/readahead/readahead02.c
sed -i '73 a#include <sys/sysmacros.h>' testcases/kernel/syscalls/open/open11.c
sed -i '41 a#include <sys/sysmacros.h>' testcases/kernel/syscalls/mknod/mknod01.c
sed -i '58 a#include <sys/sysmacros.h>' testcases/kernel/syscalls/setxattr/setxattr02.c
sed -i '40 a#include <sys/sysmacros.h>' ./testcases/kernel/device-drivers/agp/user_space/user_tagp.c
sed -i '31 a#include <sys/sysmacros.h>' ./testcases/kernel/device-drivers/nls/userBlockNLS.c
sed -i '52 a#include <sys/sysmacros.h>' ./testcases/kernel/device-drivers/tbio/tbio_user/tbio.c
sed -i '44 a#include <sys/sysmacros.h>' ./testcases/kernel/device-drivers/dev_sim_framework/user_space/user_tmod.c
sed -i '40 a#include <sys/sysmacros.h>' ./testcases/kernel/device-drivers/base/user_base/user_tbase.c
sed -i '31 a#include <sys/sysmacros.h>' ./testcases/kernel/device-drivers/include/userBlockInclude.c
sed -i '38 a#include <sys/sysmacros.h>' ./testcases/kernel/device-drivers/drm/user_space/user_tdrm.c
sed -i '27 a#include <sys/sysmacros.h>' ./testcases/kernel/device-drivers/usb/user_usb/user_tusb.c
sed -i '16 a#include <sys/sysmacros.h>' ./testcases/kernel/fs/scsi/ltpfs/main.c
#sed -i 's/ustat01 ustat01/#ustat01 ustat01' runtest/syscalls
#sed -i 's/ustat02 ustat02/#ustat02 ustat02' runtest/syscalls
# if we use this shell, we need depend on the libtirpc-devel package.
# remove #include <rpcsvc/rusers.h> cause we use libtirpc_devel's rpc,and this file is not needeed in this package.
sed -i '33 d' testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_auth_destroy/rpc_auth_destroy.c
sed -i '33 d' testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authnone_create/rpc_authnone_create.c
sed -i '33 d' testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authunix_create/rpc_authunix_create.c
sed -i '33 d' testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authunix_create_default/rpc_authunix_create_default.c
sed -i '33 d' testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create.c
sed -i '33 d' testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create_limits.c
sed -i '33 d' testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clnttcp_create/rpc_clnttcp_create_stress.c
sed -i '33 d' testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_bufcreate/rpc_clntudp_bufcreate.c
sed -i '33 d' testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_bufcreate/rpc_clntudp_bufcreate_limits.c
sed -i '33 d' testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/rpc_clntudp_create.c
sed -i '33 d' testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntudp_create/rpc_clntudp_create_stress.c
# include libtirpc_devel 's header file and libtirpc.so, do not use glibc's grpc
sed -i '30s/-I$(abs_srcdir)\/lib/-I$(abs_srcdir)\/lib $(TIRPC_CPPFLAGS)/' testcases/network/rpc/basic_tests/rpc01/Makefile
sed -i '32s/-lrpc01/-lrpc01 $(TIRPC_LIBS)/' testcases/network/rpc/basic_tests/rpc01/Makefile
sed -i '21 aCPPFLAGS += $(TIRPC_CPPFLAGS)' testcases/network/rpc/basic_tests/rpc01/lib/Makefile
#patch -p1 <../0003-rusers.h-is-unused-and-not-available-for-uClibc-ng-l.patch
#patch -p1 <../0004-tirpc-replcae-rpc-head-with-tirpc.patch
make autotools &&
./configure &&
make &&
make install
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangchuanggg/lmbench.git
[email protected]:wangchuanggg/lmbench.git
wangchuanggg
lmbench
lmbench
master

搜索帮助