代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/lmbench 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。