TI-RPC: enhancements (pkg-config, travis)
v2 cover TI-RPC: enhancements (pkg-config, travis)
Hi,
Changes v1->v2:
* do not include libntirpc support (would require a bit more work)
* fix glibc enablement
* split glibc enablement into separate commit
Here are some improvements to LTP RPC and TI-RPC tests (these which are in net.tirpc_tests and net.rpc_tests). These are mostly build fixes + enablement of glibc tests.
I'm not sure whether instead of merging this we should just remove RPC tests from LTP. IMHO these tests (or probably new ones, as it might be faster to write them from scratch) should be in libtirpc an ntirpc. LTP would benefit more to test sunrpc kernel modules (which these tests does not address, it might be adressed by LTP nfs tests). Maybe we'd just keep basic RPC testing (builded rpc_server in as part of net.rpc, which contains other RPC userspace
tests: rpcinfo and very old rup + rusers).
Other argument for removing these tests is that LTP priority is to catch up changes in recent kernel (over 30 new systemcalls in kernel v5.x).
Kind regards,
Petr
Petr Vorel (4):
rpc-tirpc: Detect libtirpc with pkg-config
rpc: Fix build under glibc only TI-RPC implementation
travis: Merge debian.cross-compile.*.sh
rpc-tirpc: Remove unused tests
.travis.yml | 6 +- include/lapi/rpc.h | 27 --- include/mk/config.mk.in | 3 +- m4/ltp-tirpc.m4 | 31 ++- testcases/network/Makefile | 24 +- .../rpc/basic_tests/rpc01/lib/librpc01.c | 2 +- .../rpc/basic_tests/rpc01/lib/librpc01.h | 2 +- .../rpc/basic_tests/rpc01/rpc_server.c | 2 +- testcases/network/rpc/rpc-tirpc/.gitignore | 4 - .../network/rpc/rpc-tirpc/tests_pack/Makefile | 26 +-- .../rpc/rpc-tirpc/tests_pack/Makefile.inc | 21 +- .../rpc/rpc-tirpc/tests_pack/include/rpc.h | 22 ++ .../rpc/rpc-tirpc/tests_pack/rpc_cleaner.c | 2 +- .../rpc-tirpc/tests_pack/rpc_suite/Makefile | 23 +- .../tests_pack/rpc_suite/rpc/Makefile | 25 +-- .../rpc_pmap_getport.c | 2 +- .../rpc_pmap_rmtcall.c | 2 +- .../rpc_pmap_rmtcall_performance.c | 2 +- .../rpc_pmap_rmtcall_stress.c | 2 +- .../rpc_addrmanagmt_pmap_set/rpc_pmap_set.c | 2 +- .../rpc_pmap_unset.c | 2 +- .../rpc_auth_auth_destroy/rpc_auth_destroy.c | 63 ------ .../rpc_clnt_broadcast.c | 2 +- .../rpc_clnt_broadcast_complex.c | 3 +- .../rpc_clnt_broadcast_dataint.c | 2 +- .../rpc_clnt_broadcast_performance.c | 2 +- .../rpc_clnt_broadcast_scalability.c | 2 +- .../rpc_clnt_broadcast_stress.c | 2 +- .../rpc_clntraw_create.c | 65 ------ .../rpc_registerrpc.c | 2 +- .../rpc_svc_register.c | 2 +- .../rpc_svc_unregister.c | 2 +- .../rpc_clnt_call_complex.c | 2 +- .../rpc_svc_freeargs_svc.c | 2 +- .../rpc_stdcall_svc_getargs/rpc_svc_getargs.c | 2 +- .../rpc_svc_sendreply.c | 2 +- .../tirpc_rpcb_getaddr.c | 2 +- .../tirpc_rpcb_getaddr_limits.c | 2 +- .../tirpc_rpcb_getmaps.c | 2 +- .../tirpc_authnone_create.c | 2 +- .../tirpc_authsys_create.c | 2 +- .../tirpc_authsys_create_default.c | 2 +- .../tirpc_bottomlevel_clnt_call.c | 2 +- .../tirpc_bottomlevel_clnt_call_complex.c | 2 +- .../tirpc_bottomlevel_clnt_call_dataint.c | 2 +- .../tirpc_bottomlevel_clnt_call_mt.c | 2 +- .../tirpc_bottomlevel_clnt_call_performance.c | 2 +- .../tirpc_bottomlevel_clnt_call_scalability.c | 2 +- .../tirpc_bottomlevel_clnt_call_stress.c | 2 +- .../tirpc_clnt_dg_create.c | 2 +- .../tirpc_clnt_dg_create_limits.c | 2 +- .../tirpc_clnt_vc_create.c | 2 +- .../tirpc_clnt_vc_create_limits.c | 2 +- .../tirpc_svc_dg_create.c | 2 +- .../tirpc_svc_dg_create_limits.c | 2 +- .../tirpc_svc_vc_create.c | 2 +- .../tirpc_svc_vc_create_limits.c | 2 +- .../tirpc_clnt_pcreateerror.c | 2 +- .../tirpc_err_clnt_perrno/tirpc_clnt_perrno.c | 2 +- .../tirpc_clnt_perrno_complex.c | 2 +- .../tirpc_err_clnt_perror/tirpc_clnt_perror.c | 2 +- .../tirpc_clnt_perror_complex.c | 2 +- .../tirpc_svcerr_noproc.c | 2 +- .../tirpc_svcerr_noprog.c | 2 +- .../tirpc_svcerr_progvers.c | 2 +- .../tirpc_svcerr_systemerr.c | 2 +- .../tirpc_svcerr_weakauth.c | 2 +- .../tirpc_expertlevel_clnt_call.c | 2 +- .../tirpc_expertlevel_clnt_call_complex.c | 2 +- .../tirpc_expertlevel_clnt_call_dataint.c | 2 +- .../tirpc_expertlevel_clnt_call_mt.c | 2 +- .../tirpc_expertlevel_clnt_call_performance.c | 2 +- .../tirpc_expertlevel_clnt_call_scalability.c | 2 +- .../tirpc_expertlevel_clnt_call_stress.c | 2 +- .../tirpc_clnt_tli_create.c | 2 +- .../tirpc_clnt_tli_create_limits.c | 2 +- .../tirpc_rpcb_rmtcall.c | 2 +- .../tirpc_rpcb_rmtcall_complex.c | 2 +- .../tirpc_rpcb_rmtcall_dataint.c | 2 +- .../tirpc_rpcb_rmtcall_mt.c | 2 +- .../tirpc_rpcb_rmtcall_performance.c | 2 +- .../tirpc_rpcb_rmtcall_scalability.c | 2 +- .../tirpc_rpcb_rmtcall_stress.c | 2 +- .../tirpc_rpcb_set.c | 2 +- .../tirpc_rpcb_unset.c | 2 +- .../tirpc_expertlevel_svc_reg/tirpc_svc_reg.c | 2 +- .../tirpc_svc_reg_mt.c | 2 +- .../tirpc_svc_reg_stress.c | 2 +- .../tirpc_svc_tli_create.c | 2 +- .../tirpc_svc_tli_create_limits.c | 2 +- .../tirpc_svc_unreg.c | 2 +- .../tirpc_svc_unreg_mt.c | 2 +- .../tirpc_svc_unreg_stress.c | 2 +- .../tirpc_interlevel_clnt_call.c | 2 +- .../tirpc_interlevel_clnt_call_complex.c | 2 +- .../tirpc_interlevel_clnt_call_dataint.c | 2 +- .../tirpc_interlevel_clnt_call_mt.c | 2 +- .../tirpc_interlevel_clnt_call_performance.c | 2 +- .../tirpc_interlevel_clnt_call_scalability.c | 2 +- .../tirpc_interlevel_clnt_call_stress.c | 2 +- .../tirpc_clnt_control.c | 2 +- .../tirpc_clnt_control_limits.c | 2 +- .../tirpc_clnt_tp_create.c | 2 +- .../tirpc_clnt_tp_create_timed.c | 2 +- .../tirpc_clnt_tp_create_timed_limits.c | 2 +- .../tirpc_svc_tp_create.c | 2 +- .../tirpc_rpc_broadcast.c | 2 +- .../tirpc_rpc_broadcast_complex.c | 2 +- .../tirpc_rpc_broadcast_dataint.c | 2 +- .../tirpc_rpc_broadcast_mt.c | 2 +- .../tirpc_rpc_broadcast_performance.c | 2 +- .../tirpc_rpc_broadcast_scalability.c | 2 +- .../tirpc_rpc_broadcast_stress.c | 2 +- .../tirpc_rpc_broadcast_exp.c | 2 +- .../tirpc_rpc_broadcast_exp_complex.c | 2 +- .../tirpc_rpc_broadcast_exp_dataint.c | 2 +- .../tirpc_rpc_broadcast_exp_limits.c | 2 +- .../tirpc_rpc_broadcast_exp_mt.c | 2 +- .../tirpc_rpc_broadcast_exp_performance.c | 2 +- .../tirpc_rpc_broadcast_exp_scalability.c | 2 +- .../tirpc_rpc_broadcast_exp_stress.c | 2 +- .../tirpc_simple_rpc_call/tirpc_rpc_call.c | 2 +- .../tirpc_rpc_call_complex.c | 2 +- .../tirpc_rpc_call_dataint.c | 2 +- .../tirpc_simple_rpc_call/tirpc_rpc_call_mt.c | 2 +- .../tirpc_rpc_call_performance.c | 2 +- .../tirpc_rpc_call_scalability.c | 2 +- .../tirpc_rpc_call_stress.c | 2 +- .../tirpc_simple_rpc_reg/tirpc_rpc_reg.c | 2 +- .../tirpc_simple_rpc_reg/tirpc_rpc_reg_mt.c | 2 +- .../tirpc_rpc_reg_stress.c | 2 +- .../tirpc_toplevel_clnt_call.c | 2 +- .../tirpc_toplevel_clnt_call_complex.c | 2 +- .../tirpc_toplevel_clnt_call_dataint.c | 2 +- .../tirpc_toplevel_clnt_call_mt.c | 2 +- .../tirpc_toplevel_clnt_call_performance.c | 2 +- .../tirpc_toplevel_clnt_call_scalability.c | 2 +- .../tirpc_toplevel_clnt_call_stress.c | 2 +- .../tirpc_clnt_create.c | 2 +- .../tirpc_clnt_create_timed.c | 2 +- .../tirpc_clnt_create_timed_limits.c | 2 +- .../tirpc_clnt_destroy.c | 2 +- .../tirpc_svc_create.c | 2 +- .../tirpc_svc_destroy.c | 2 +- .../tests_pack/rpc_svc_1/rpc_svc_1.c | 2 +- .../tests_pack/rpc_svc_2/rpc_svc_2.c | 2 +- .../rpc/rpc-tirpc/tests_pack/tirpc_cleaner.c | 2 +- .../tests_pack/tirpc_svc_1/tirpc_svc_1.c | 2 +- .../tests_pack/tirpc_svc_11/tirpc_svc_11.c | 2 +- .../tests_pack/tirpc_svc_2/tirpc_svc_2.c | 2 +- .../tests_pack/tirpc_svc_3/tirpc_svc_3.c | 2 +- .../tests_pack/tirpc_svc_4/tirpc_svc_4.c | 2 +- .../tests_pack/tirpc_svc_5/tirpc_svc_5.c | 2 +- .../rpc-tirpc/tests_pack/tirpc_svc_6/Makefile | 23 -- .../tests_pack/tirpc_svc_6/tirpc_svc_6.c | 181 --------------- .../rpc-tirpc/tests_pack/tirpc_svc_7/Makefile | 23 -- .../tests_pack/tirpc_svc_7/tirpc_svc_7.c | 212 ------------------ .../rpc-tirpc/tests_pack/tirpc_svc_8/Makefile | 23 -- .../tests_pack/tirpc_svc_8/tirpc_svc_8.c | 183 --------------- .../rpc-tirpc/tests_pack/tirpc_svc_9/Makefile | 23 -- .../tests_pack/tirpc_svc_9/tirpc_svc_9.c | 192 ---------------- travis/debian.cross-compile.aarch64.sh | 7 - travis/debian.cross-compile.ppc64le.sh | 7 - travis/debian.cross-compile.sh | 22 ++ travis/debian.i386.sh | 5 +- travis/debian.sh | 5 +- travis/fedora.sh | 5 +- travis/tumbleweed.sh | 5 +- 168 files changed, 254 insertions(+), 1283 deletions(-) delete mode 100644 include/lapi/rpc.h create mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/include/rpc.h delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_auth_destroy/rpc_auth_destroy.c delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntraw_create/rpc_clntraw_create.c delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_6/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_6/tirpc_svc_6.c delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_7/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_7/tirpc_svc_7.c delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_8/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_8/tirpc_svc_8.c delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_9/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_9/tirpc_svc_9.c delete mode 100755 travis/debian.cross-compile.aarch64.sh delete mode 100755 travis/debian.cross-compile.ppc64le.sh create mode 100755 travis/debian.cross-compile.sh
Signature · 1 line
2.24.1
RFC PATCH v2 1/4 rpc-tirpc: Detect libtirpc with pkg-config
Using pkg-config is more reliable way than detecting presence of libtirpc shared library with headers. As it does not require use $SYSROOT, which is not defined everywhere (at least SDKs built in YOCTO as they use nonstandard $SDKTARGETSYSROOT, see [1]).
Also use CFLAGS instead of CPPFLAGS in build system (we have C sources).
Use only <rpc/*.h> includes, <tirpc/rpc/*.h> removed as not needed (pkg-config detects -I/usr/include/tirpc when needed). Therefore rpc.h moved out of lapi.
Also removed <netconfig.h> (resp. <tirpc/netconfig.h>) as it's not needed.
Implementation expects that RPC headers (<rpc/rpc.h> etc) are available, because AC_CHECK_HEADERS() doesn't support passing header location and libtirpc has them anyway.
[1] https://github.com/linux-test-project/ltp/pull/628
--- include/lapi/rpc.h | 27 -------- include/mk/config.mk.in | 2 +- m4/ltp-tirpc.m4 | 19 +++--- .../rpc/basic_tests/rpc01/lib/librpc01.c | 2 +- .../rpc/basic_tests/rpc01/lib/librpc01.h | 2 +- .../rpc/rpc-tirpc/tests_pack/Makefile.inc | 21 +----- .../rpc/rpc-tirpc/tests_pack/include/rpc.h | 16 +++++ .../rpc-tirpc/tests_pack/rpc_suite/Makefile | 23 ++----- .../rpc_auth_auth_destroy/rpc_auth_destroy.c | 63 ------------------ .../rpc_clntraw_create.c | 65 ------------------- .../rpc_clnt_call_complex.c | 2 +- .../tirpc_rpcb_getaddr.c | 2 +- .../tirpc_rpcb_getaddr_limits.c | 2 +- .../tirpc_rpcb_getmaps.c | 2 +- .../tirpc_authnone_create.c | 2 +- .../tirpc_authsys_create.c | 2 +- .../tirpc_authsys_create_default.c | 2 +- .../tirpc_bottomlevel_clnt_call.c | 2 +- .../tirpc_bottomlevel_clnt_call_complex.c | 2 +- .../tirpc_bottomlevel_clnt_call_dataint.c | 2 +- .../tirpc_bottomlevel_clnt_call_mt.c | 2 +- .../tirpc_bottomlevel_clnt_call_performance.c | 2 +- .../tirpc_bottomlevel_clnt_call_scalability.c | 2 +- .../tirpc_bottomlevel_clnt_call_stress.c | 2 +- .../tirpc_clnt_dg_create.c | 2 +- .../tirpc_clnt_dg_create_limits.c | 2 +- .../tirpc_clnt_vc_create.c | 2 +- .../tirpc_clnt_vc_create_limits.c | 2 +- .../tirpc_svc_dg_create.c | 2 +- .../tirpc_svc_dg_create_limits.c | 2 +- .../tirpc_svc_vc_create.c | 2 +- .../tirpc_svc_vc_create_limits.c | 2 +- .../tirpc_clnt_pcreateerror.c | 2 +- .../tirpc_err_clnt_perrno/tirpc_clnt_perrno.c | 2 +- .../tirpc_clnt_perrno_complex.c | 2 +- .../tirpc_err_clnt_perror/tirpc_clnt_perror.c | 2 +- .../tirpc_clnt_perror_complex.c | 2 +- .../tirpc_svcerr_noproc.c | 2 +- .../tirpc_svcerr_noprog.c | 2 +- .../tirpc_svcerr_progvers.c | 2 +- .../tirpc_svcerr_systemerr.c | 2 +- .../tirpc_svcerr_weakauth.c | 2 +- .../tirpc_expertlevel_clnt_call.c | 2 +- .../tirpc_expertlevel_clnt_call_complex.c | 2 +- .../tirpc_expertlevel_clnt_call_dataint.c | 2 +- .../tirpc_expertlevel_clnt_call_mt.c | 2 +- .../tirpc_expertlevel_clnt_call_performance.c | 2 +- .../tirpc_expertlevel_clnt_call_scalability.c | 2 +- .../tirpc_expertlevel_clnt_call_stress.c | 2 +- .../tirpc_clnt_tli_create.c | 2 +- .../tirpc_clnt_tli_create_limits.c | 2 +- .../tirpc_rpcb_rmtcall.c | 2 +- .../tirpc_rpcb_rmtcall_complex.c | 2 +- .../tirpc_rpcb_rmtcall_dataint.c | 2 +- .../tirpc_rpcb_rmtcall_mt.c | 2 +- .../tirpc_rpcb_rmtcall_performance.c | 2 +- .../tirpc_rpcb_rmtcall_scalability.c | 2 +- .../tirpc_rpcb_rmtcall_stress.c | 2 +- .../tirpc_rpcb_set.c | 2 +- .../tirpc_rpcb_unset.c | 2 +- .../tirpc_expertlevel_svc_reg/tirpc_svc_reg.c | 2 +- .../tirpc_svc_reg_mt.c | 2 +- .../tirpc_svc_reg_stress.c | 2 +- .../tirpc_svc_tli_create.c | 2 +- .../tirpc_svc_tli_create_limits.c | 2 +- .../tirpc_svc_unreg.c | 2 +- .../tirpc_svc_unreg_mt.c | 2 +- .../tirpc_svc_unreg_stress.c | 2 +- .../tirpc_interlevel_clnt_call.c | 2 +- .../tirpc_interlevel_clnt_call_complex.c | 2 +- .../tirpc_interlevel_clnt_call_dataint.c | 2 +- .../tirpc_interlevel_clnt_call_mt.c | 2 +- .../tirpc_interlevel_clnt_call_performance.c | 2 +- .../tirpc_interlevel_clnt_call_scalability.c | 2 +- .../tirpc_interlevel_clnt_call_stress.c | 2 +- .../tirpc_clnt_control.c | 2 +- .../tirpc_clnt_control_limits.c | 2 +- .../tirpc_clnt_tp_create.c | 2 +- .../tirpc_clnt_tp_create_timed.c | 2 +- .../tirpc_clnt_tp_create_timed_limits.c | 2 +- .../tirpc_svc_tp_create.c | 2 +- .../tirpc_rpc_broadcast.c | 2 +- .../tirpc_rpc_broadcast_complex.c | 2 +- .../tirpc_rpc_broadcast_dataint.c | 2 +- .../tirpc_rpc_broadcast_mt.c | 2 +- .../tirpc_rpc_broadcast_performance.c | 2 +- .../tirpc_rpc_broadcast_scalability.c | 2 +- .../tirpc_rpc_broadcast_stress.c | 2 +- .../tirpc_rpc_broadcast_exp.c | 2 +- .../tirpc_rpc_broadcast_exp_complex.c | 2 +- .../tirpc_rpc_broadcast_exp_dataint.c | 2 +- .../tirpc_rpc_broadcast_exp_limits.c | 2 +- .../tirpc_rpc_broadcast_exp_mt.c | 2 +- .../tirpc_rpc_broadcast_exp_performance.c | 2 +- .../tirpc_rpc_broadcast_exp_scalability.c | 2 +- .../tirpc_rpc_broadcast_exp_stress.c | 2 +- .../tirpc_simple_rpc_call/tirpc_rpc_call.c | 2 +- .../tirpc_rpc_call_complex.c | 2 +- .../tirpc_rpc_call_dataint.c | 2 +- .../tirpc_simple_rpc_call/tirpc_rpc_call_mt.c | 2 +- .../tirpc_rpc_call_performance.c | 2 +- .../tirpc_rpc_call_scalability.c | 2 +- .../tirpc_rpc_call_stress.c | 2 +- .../tirpc_simple_rpc_reg/tirpc_rpc_reg.c | 2 +- .../tirpc_simple_rpc_reg/tirpc_rpc_reg_mt.c | 2 +- .../tirpc_rpc_reg_stress.c | 2 +- .../tirpc_toplevel_clnt_call.c | 2 +- .../tirpc_toplevel_clnt_call_complex.c | 2 +- .../tirpc_toplevel_clnt_call_dataint.c | 2 +- .../tirpc_toplevel_clnt_call_mt.c | 2 +- .../tirpc_toplevel_clnt_call_performance.c | 2 +- .../tirpc_toplevel_clnt_call_scalability.c | 2 +- .../tirpc_toplevel_clnt_call_stress.c | 2 +- .../tirpc_clnt_create.c | 2 +- .../tirpc_clnt_create_timed.c | 2 +- .../tirpc_clnt_create_timed_limits.c | 2 +- .../tirpc_clnt_destroy.c | 2 +- .../tirpc_svc_create.c | 2 +- .../tirpc_svc_destroy.c | 2 +- .../rpc/rpc-tirpc/tests_pack/tirpc_cleaner.c | 2 +- .../tests_pack/tirpc_svc_1/tirpc_svc_1.c | 2 +- .../tests_pack/tirpc_svc_11/tirpc_svc_11.c | 2 +- .../tests_pack/tirpc_svc_2/tirpc_svc_2.c | 2 +- .../tests_pack/tirpc_svc_3/tirpc_svc_3.c | 2 +- .../tests_pack/tirpc_svc_4/tirpc_svc_4.c | 2 +- .../tests_pack/tirpc_svc_5/tirpc_svc_5.c | 2 +- .../tests_pack/tirpc_svc_6/tirpc_svc_6.c | 2 +- .../tests_pack/tirpc_svc_7/tirpc_svc_7.c | 2 +- .../tests_pack/tirpc_svc_8/tirpc_svc_8.c | 2 +- .../tests_pack/tirpc_svc_9/tirpc_svc_9.c | 2 +- travis/debian.cross-compile.aarch64.sh | 8 ++- travis/debian.cross-compile.ppc64le.sh | 8 ++- travis/debian.i386.sh | 5 +- travis/debian.sh | 5 +- travis/fedora.sh | 5 +- travis/tumbleweed.sh | 5 +- 136 files changed, 183 insertions(+), 333 deletions(-) delete mode 100644 include/lapi/rpc.h create mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/include/rpc.h delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_auth_destroy/rpc_auth_destroy.c delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntraw_create/rpc_clntraw_create.c
include/lapi/rpc.h deleted +0 -27
@@ -1,27 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* -* Copyright (c) 2018 Petr Vorel <[email protected]> -*/ - -#ifndef LAPI_RPC_H__ -#define LAPI_RPC_H__ - -#include "config.h" - -#ifdef HAVE_NETCONFIG_H -# include <netconfig.h> -# include <rpc/rpc.h> -# include <rpc/types.h> -# include <rpc/xdr.h> -# include <rpc/svc.h> -#elif defined(HAVE_TIRPC_NETCONFIG_H ) -# include <tirpc/netconfig.h> -# include <tirpc/rpc/rpc.h> -# include <tirpc/rpc/types.h> -# include <tirpc/rpc/xdr.h> -# include <tirpc/rpc/svc.h> -#else -# error Missing rpc headers! -#endif - -#endif /* LAPI_RPC_H__ */
include/mk/config.mk.in +1 -1
@@ -38,7 +38,7 @@ CRYPTO_LIBS := @CRYPTO_LIBS@ LEXLIB := @LEXLIB@ NUMA_LIBS := @NUMA_LIBS@ SELINUX_LIBS := @SELINUX_LIBS@ -TIRPC_CPPFLAGS := @TIRPC_CPPFLAGS@ +TIRPC_CFLAGS := @TIRPC_CFLAGS@ TIRPC_LIBS := @TIRPC_LIBS@ KEYUTILS_LIBS := @KEYUTILS_LIBS@ HAVE_FTS_H := @HAVE_FTS_H@
m4/ltp-tirpc.m4 +10 -9
@@ -1,15 +1,16 @@ dnl SPDX-License-Identifier: GPL-2.0-or-later +dnl Copyright (c) 2020 Petr Vorel <[email protected]> dnl Copyright (c) 2014 Oracle and/or its affiliates. All Rights Reserved. -AC_DEFUN([LTP_CHECK_TIRPC],[ - TIRPC_CPPFLAGS="" - TIRPC_LIBS="" +AC_DEFUN([LTP_CHECK_TIRPC], [ + dnl libtirpc library and headers + PKG_CHECK_MODULES([LIBTIRPC], [libtirpc], [ + TIRPC_CFLAGS=$LIBTIRPC_CFLAGS + TIRPC_LIBS=$LIBTIRPC_LIBS + ], [have_libtirpc=no]) - AC_CHECK_HEADERS([tirpc/netconfig.h netconfig.h], [ - TIRPC_CPPFLAGS="-I${SYSROOT}/usr/include/tirpc" - AC_DEFINE(HAVE_LIBTIRPC, 1, [Define to 1 if you have libtirpc headers installed]) - AC_CHECK_LIB(tirpc, rpcb_set, [TIRPC_LIBS="-ltirpc"])]) - - AC_SUBST(TIRPC_CPPFLAGS) + dnl fix for old pkg-config (< 0.24) + dnl https://autotools.io/pkgconfig/pkg_check_modules.html + AC_SUBST(TIRPC_CFLAGS) AC_SUBST(TIRPC_LIBS) ])
testcases/network/rpc/basic_tests/rpc01/lib/librpc01.c +1 -1
@@ -16,7 +16,7 @@* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "lapi/rpc.h" +#include "rpc.h" #include "librpc01.h" bool_t xdr_receive_data (XDR *xdrs,struct data **buffer)
testcases/network/rpc/basic_tests/rpc01/lib/librpc01.h +1 -1
@@ -19,7 +19,7 @@ #ifndef __LIBRPC_H__ #define __LIBRPC_H__ -#include "lapi/rpc.h" +#include "rpc.h" struct data { long address;
testcases/network/rpc/rpc-tirpc/tests_pack/Makefile.inc +3 -18
@@ -1,20 +1,5 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# +# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. +# Copyright (c) 2020 Petr Vorel <[email protected]> LIBRELDIR := testcases/network/rpc/rpc-tirpc/tests_pack/lib LIBDIR := $(abs_top_builddir)/$(LIBRELDIR)
@@ -31,4 +16,4 @@ MAKE_DEPS += $(LIBRPC-TIRPC) LDFLAGS += -L$(LIBDIR) LDLIBS += $(TIRPC_LIBS) -lrpc-tirpc -CPPFLAGS += $(TIRPC_CPPFLAGS) -I$(LIBSRCDIR) -pthread +CFLAGS += $(TIRPC_CFLAGS) -I$(LIBSRCDIR) -I$(LIBSRCDIR)/../include -pthread
testcases/network/rpc/rpc-tirpc/tests_pack/include/rpc.h new file +16 -0
@@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* +* Copyright (c) 2018-2020 Petr Vorel <[email protected]> +*/ + +#ifndef RPC_H__ +#define RPC_H__ + +#include "config.h" + +#include <rpc/rpc.h> +#include <rpc/types.h> +#include <rpc/xdr.h> +#include <rpc/svc.h> + +#endif /* RPC_H__ */
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/Makefile +6 -17
@@ -1,22 +1,11 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# +# Copyright (C) 2009, Cisco Systems Inc. +# Copyright (c) 2020 Petr Vorel <[email protected]> top_srcdir ?= ../../../../../.. +ifeq ($(TIRPC_LIBS),) +FILTER_OUT_DIRS += tirpc +endif + include $(top_srcdir)/include/mk/env_pre.mk include $(top_srcdir)/include/mk/generic_trunk_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_auth_destroy/rpc_auth_destroy.c deleted +0 -63
63 lines not on this page · raw message
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntraw_create/rpc_clntraw_create.c deleted +0 -65
65 lines not on this page · raw message
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_clnt_call/rpc_clnt_call_complex.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define CALCPROC 10000
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_addrmanagmt_rpcb_getaddr/tirpc_rpcb_getaddr.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_addrmanagmt_rpcb_getaddr/tirpc_rpcb_getaddr_limits.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_addrmanagmt_rpcb_getmaps/tirpc_rpcb_getmaps.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authnone_create/tirpc_authnone_create.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <netdb.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authsys_create/tirpc_authsys_create.c +1 -1
@@ -30,7 +30,7 @@#include <time.h> #include <unistd.h> #include <netdb.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_auth_authsys_create_default/tirpc_authsys_create_default.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <netdb.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call.c +1 -1
@@ -31,7 +31,7 @@#include <errno.h> #include <unistd.h> #include "librpc-tirpc.h" -#include "lapi/rpc.h" +#include "rpc.h" #define PROCNUM 1#define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call_complex.c +1 -1
@@ -30,7 +30,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define CALCTHREADPROC 1000
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call_dataint.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <string.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define INTPROCNUM 10
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call_mt.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call_performance.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <sys/time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call_scalability.c +1 -1
@@ -31,7 +31,7 @@#include <pthread.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_call/tirpc_bottomlevel_clnt_call_stress.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_dg_create/tirpc_clnt_dg_create.c +1 -1
@@ -31,7 +31,7 @@#include <errno.h> #include <unistd.h> #include "librpc-tirpc.h" -#include "lapi/rpc.h" +#include "rpc.h" #define PROCNUM 1#define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_dg_create/tirpc_clnt_dg_create_limits.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_vc_create/tirpc_clnt_vc_create.c +1 -1
@@ -31,7 +31,7 @@#include <errno.h> #include <unistd.h> #include "librpc-tirpc.h" -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_clnt_vc_create/tirpc_clnt_vc_create_limits.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_svc_dg_create/tirpc_svc_dg_create.c +1 -1
@@ -31,7 +31,7 @@#include <errno.h> #include <unistd.h> #include "librpc-tirpc.h" -#include "lapi/rpc.h" +#include "rpc.h" #define PROCNUM 1#define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_svc_dg_create/tirpc_svc_dg_create_limits.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_svc_vc_create/tirpc_svc_vc_create.c +1 -1
@@ -31,7 +31,7 @@#include <errno.h> #include <unistd.h> #include "librpc-tirpc.h" -#include "lapi/rpc.h" +#include "rpc.h" #define PROCNUM 1#define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_bottomlevel_svc_vc_create/tirpc_svc_vc_create_limits.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_clnt_pcreateerror/tirpc_clnt_pcreateerror.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_clnt_perrno/tirpc_clnt_perrno.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_clnt_perrno/tirpc_clnt_perrno_complex.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_clnt_perror/tirpc_clnt_perror.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_clnt_perror/tirpc_clnt_perror_complex.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_noproc/tirpc_svcerr_noproc.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 667
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_noprog/tirpc_svcerr_noprog.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_progvers/tirpc_svcerr_progvers.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_systemerr/tirpc_svcerr_systemerr.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 10
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_err_svcerr_weakauth/tirpc_svcerr_weakauth.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 100
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/tirpc_expertlevel_clnt_call.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/tirpc_expertlevel_clnt_call_complex.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define CALCTHREADPROC 1000
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/tirpc_expertlevel_clnt_call_dataint.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <string.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define INTPROCNUM 10
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/tirpc_expertlevel_clnt_call_mt.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/tirpc_expertlevel_clnt_call_performance.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <sys/time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/tirpc_expertlevel_clnt_call_scalability.c +1 -1
@@ -31,7 +31,7 @@#include <pthread.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_call/tirpc_expertlevel_clnt_call_stress.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_tli_create/tirpc_clnt_tli_create.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_clnt_tli_create/tirpc_clnt_tli_create_limits.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_complex.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define CALCTHREADPROC 1000
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_dataint.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <string.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define INTPROCNUM 10
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_mt.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_performance.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <sys/time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_scalability.c +1 -1
@@ -31,7 +31,7 @@#include <pthread.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_rmtcall/tirpc_rpcb_rmtcall_stress.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_set/tirpc_rpcb_set.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" #define PROCNUM 1#define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_rpcb_unset/tirpc_rpcb_unset.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" #define PROCNUM 1#define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_svc_reg/tirpc_svc_reg.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_svc_reg/tirpc_svc_reg_mt.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_svc_reg/tirpc_svc_reg_stress.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_svc_tli_create/tirpc_svc_tli_create.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_svc_tli_create/tirpc_svc_tli_create_limits.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_svc_unreg/tirpc_svc_unreg.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_svc_unreg/tirpc_svc_unreg_mt.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_expertlevel_svc_unreg/tirpc_svc_unreg_stress.c +1 -1
@@ -29,7 +29,7 @@#include <stdio.h> #include <netinet/in.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/tirpc_interlevel_clnt_call.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/tirpc_interlevel_clnt_call_complex.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define CALCTHREADPROC 1000
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/tirpc_interlevel_clnt_call_dataint.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <string.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define INTPROCNUM 10
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/tirpc_interlevel_clnt_call_mt.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/tirpc_interlevel_clnt_call_performance.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <sys/time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/tirpc_interlevel_clnt_call_scalability.c +1 -1
@@ -31,7 +31,7 @@#include <pthread.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/tirpc_interlevel_clnt_call_stress.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_control/tirpc_clnt_control.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_control/tirpc_clnt_control_limits.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_tp_create/tirpc_clnt_tp_create.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_tp_create_timed/tirpc_clnt_tp_create_timed.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_tp_create_timed/tirpc_clnt_tp_create_timed_limits.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_svc_tp_create/tirpc_svc_tp_create.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <sys/socket.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/tirpc_rpc_broadcast.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/tirpc_rpc_broadcast_complex.c +1 -1
@@ -30,7 +30,7 @@#include <time.h> #include <sys/socket.h> #include <netdb.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PINGPROC 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/tirpc_rpc_broadcast_dataint.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <string.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define INTPROCNUM 10
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/tirpc_rpc_broadcast_mt.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/tirpc_rpc_broadcast_performance.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <sys/time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/tirpc_rpc_broadcast_scalability.c +1 -1
@@ -31,7 +31,7 @@#include <pthread.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast/tirpc_rpc_broadcast_stress.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/tirpc_rpc_broadcast_exp.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/tirpc_rpc_broadcast_exp_complex.c +1 -1
@@ -30,7 +30,7 @@#include <time.h> #include <sys/socket.h> #include <netdb.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PINGPROC 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/tirpc_rpc_broadcast_exp_dataint.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <string.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define INTPROCNUM 10
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/tirpc_rpc_broadcast_exp_limits.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/tirpc_rpc_broadcast_exp_mt.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/tirpc_rpc_broadcast_exp_performance.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <sys/time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/tirpc_rpc_broadcast_exp_scalability.c +1 -1
@@ -31,7 +31,7 @@#include <pthread.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_broadcast_exp/tirpc_rpc_broadcast_exp_stress.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/tirpc_rpc_call.c +1 -1
@@ -30,7 +30,7 @@#include <string.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/tirpc_rpc_call_complex.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define CALCTHREADPROC 1000
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/tirpc_rpc_call_dataint.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <string.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define INTPROCNUM 10
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/tirpc_rpc_call_mt.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/tirpc_rpc_call_performance.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <string.h> #include <sys/time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/tirpc_rpc_call_scalability.c +1 -1
@@ -31,7 +31,7 @@#include <pthread.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_call/tirpc_rpc_call_stress.c +1 -1
@@ -30,7 +30,7 @@#include <string.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_reg/tirpc_rpc_reg.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_reg/tirpc_rpc_reg_mt.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_simple_rpc_reg/tirpc_rpc_reg_stress.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/tirpc_toplevel_clnt_call.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/tirpc_toplevel_clnt_call_complex.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define CALCTHREADPROC 1000
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/tirpc_toplevel_clnt_call_dataint.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <string.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define INTPROCNUM 10
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/tirpc_toplevel_clnt_call_mt.c +1 -1
@@ -31,7 +31,7 @@#include <time.h> #include <pthread.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/tirpc_toplevel_clnt_call_performance.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <sys/time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/tirpc_toplevel_clnt_call_scalability.c +1 -1
@@ -31,7 +31,7 @@#include <pthread.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_call/tirpc_toplevel_clnt_call_stress.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_create/tirpc_clnt_create.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_create_timed/tirpc_clnt_create_timed.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_create_timed/tirpc_clnt_create_timed_limits.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_clnt_destroy/tirpc_clnt_destroy.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_svc_create/tirpc_svc_create.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_toplevel_svc_destroy/tirpc_svc_destroy.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <time.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_cleaner.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <sys/socket.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_1/tirpc_svc_1.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <sys/socket.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_11/tirpc_svc_11.c +1 -1
@@ -30,7 +30,7 @@#include <sys/socket.h> #include <errno.h> #include <netinet/in.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_2/tirpc_svc_2.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <sys/socket.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_3/tirpc_svc_3.c +1 -1
@@ -29,7 +29,7 @@#include <string.h> #include <sys/socket.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_4/tirpc_svc_4.c +1 -1
@@ -29,7 +29,7 @@#include <string.h> #include <sys/socket.h> #include <errno.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_5/tirpc_svc_5.c +1 -1
@@ -33,7 +33,7 @@#include <netinet/in.h> #include <unistd.h> #include "librpc-tirpc.h" -#include "lapi/rpc.h" +#include "rpc.h" #define VERSNUM 1#define PROCSIMPLEPING 1
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_6/tirpc_svc_6.c +1 -1
@@ -31,7 +31,7 @@#include <errno.h> #include <pthread.h> #include <netinet/in.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_7/tirpc_svc_7.c +1 -1
@@ -30,7 +30,7 @@#include <sys/socket.h> #include <errno.h> #include <netinet/in.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_8/tirpc_svc_8.c +1 -1
@@ -31,7 +31,7 @@#include <sys/socket.h> #include <errno.h> #include <netinet/in.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_9/tirpc_svc_9.c +1 -1
@@ -31,7 +31,7 @@#include <sys/socket.h> #include <errno.h> #include <netinet/in.h> -#include "lapi/rpc.h" +#include "rpc.h" //Standard define #define VERSNUM 1
travis/debian.cross-compile.aarch64.sh +6 -2
@@ -1,7 +1,11 @@ #!/bin/sh -# Copyright (c) 2018 Petr Vorel <[email protected]> +# Copyright (c) 2018-2020 Petr Vorel <[email protected]> set -e +dpkg --add-architecture arm64 +apt update + apt install -y --no-install-recommends \ gcc-aarch64-linux-gnu \ - libc6-dev-arm64-cross + libc6-dev-arm64-cross \ + libtirpc-dev:arm64
travis/debian.cross-compile.ppc64le.sh +6 -2
@@ -1,7 +1,11 @@ #!/bin/sh -# Copyright (c) 2018 Petr Vorel <[email protected]> +# Copyright (c) 2018-2020 Petr Vorel <[email protected]> set -e +dpkg --add-architecture ppc64el +apt update + apt install -y --no-install-recommends \ gcc-powerpc64le-linux-gnu \ - libc6-dev-ppc64el-cross + libc6-dev-ppc64el-cross \ + libtirpc-dev:ppc64el
travis/debian.i386.sh +3 -2
@@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (c) 2018 Petr Vorel <[email protected]> +# Copyright (c) 2018-2020 Petr Vorel <[email protected]> set -e dpkg --add-architecture i386
@@ -16,4 +16,5 @@ apt install -y --no-install-recommends \ libkeyutils1:i386 \ libnuma1:i386 \ libssl-dev:i386 \ - libtirpc-dev:i386 + libtirpc-dev:i386 \ + pkg-config:i386
travis/debian.sh +3 -2
@@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (c) 2018-2019 Petr Vorel <[email protected]> +# Copyright (c) 2018-2020 Petr Vorel <[email protected]> set -e # workaround for missing oldstable-updates repository
@@ -35,4 +35,5 @@ apt install -y --no-install-recommends \ libssl-dev \ libtirpc-dev \ linux-libc-dev \ - lsb-release + lsb-release \ + pkg-config
travis/fedora.sh +4 -1
@@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (c) 2018 Petr Vorel <[email protected]> +# Copyright (c) 2018-2020 Petr Vorel <[email protected]> set -e yum -y install \
@@ -9,4 +9,7 @@ yum -y install \ clang \ gcc \ findutils \ + libtirpc \ + libtirpc-devel \ + pkg-config \ redhat-lsb-core
travis/tumbleweed.sh +3 -2
@@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (c) 2018 Petr Vorel <[email protected]> +# Copyright (c) 2018-2020 Petr Vorel <[email protected]> set -e zypper --non-interactive install --no-recommends \
@@ -19,4 +19,5 @@ zypper --non-interactive install --no-recommends \ libselinux-devel \ libtirpc-devel \ linux-glibc-devel \ - lsb-release + lsb-release \ + pkg-config
Signature · 1 line
2.24.1
RFC PATCH v2 1/4 rpc-tirpc: Detect libtirpc with pkg-config
Hi,
Quoted 3 lines
136 files changed, 183 insertions(+), 333 deletions(-) delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_auth_destroy/rpc_auth_destroy.c delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_createdestroy_clntraw_create/rpc_clntraw_create.c
These 2 files I deleted by accident, they need to stay. Sorry for the noise.
Kind regards,
Petr
RFC PATCH v2 1/4 rpc-tirpc: Detect libtirpc with pkg-config
Hi,
merged rest of the patchset.
Kind regards,
Petr
RFC PATCH v2 2/4 rpc: Fix build under glibc only TI-RPC implementation
In reply to Petr Voreland keep basic rpc tests when there are glibc RPC headers (glibc build with --enable-obsolete-rpc).
Motivation for it is that nfs-utils allows compiling with glibc headers only. We still need to restrict TI-RPC tests (testcases/network/rpc/rpc-tirpc/) to libtirpc tests as they use libtirpc only API (svc_reg, svc_unreg, pmap_unset, clnt_dg_create).
NOTE: IMHO from long term perspective these tests should be cleaned and moved to upstream (libtirpc and ntirpc) and glibc testing probably abandoned.
--- include/mk/config.mk.in | 1 + m4/ltp-tirpc.m4 | 14 ++++++++++ testcases/network/Makefile | 24 +++-------------- .../rpc/basic_tests/rpc01/rpc_server.c | 2 +- .../network/rpc/rpc-tirpc/tests_pack/Makefile | 26 +++++++------------ .../rpc/rpc-tirpc/tests_pack/include/rpc.h | 6 +++++ .../rpc/rpc-tirpc/tests_pack/rpc_cleaner.c | 2 +- .../tests_pack/rpc_suite/rpc/Makefile | 25 ++++++------------ .../rpc_pmap_getport.c | 2 +- .../rpc_pmap_rmtcall.c | 2 +- .../rpc_pmap_rmtcall_performance.c | 2 +- .../rpc_pmap_rmtcall_stress.c | 2 +- .../rpc_addrmanagmt_pmap_set/rpc_pmap_set.c | 2 +- .../rpc_pmap_unset.c | 2 +- .../rpc_clnt_broadcast.c | 2 +- .../rpc_clnt_broadcast_complex.c | 3 +-- .../rpc_clnt_broadcast_dataint.c | 2 +- .../rpc_clnt_broadcast_performance.c | 2 +- .../rpc_clnt_broadcast_scalability.c | 2 +- .../rpc_clnt_broadcast_stress.c | 2 +- .../rpc_registerrpc.c | 2 +- .../rpc_svc_register.c | 2 +- .../rpc_svc_unregister.c | 2 +- .../rpc_svc_freeargs_svc.c | 2 +- .../rpc_stdcall_svc_getargs/rpc_svc_getargs.c | 2 +- .../rpc_svc_sendreply.c | 2 +- .../tests_pack/rpc_svc_1/rpc_svc_1.c | 2 +- .../tests_pack/rpc_svc_2/rpc_svc_2.c | 2 +- 28 files changed, 63 insertions(+), 78 deletions(-)
include/mk/config.mk.in +1 -0
@@ -38,6 +38,7 @@ CRYPTO_LIBS := @CRYPTO_LIBS@ LEXLIB := @LEXLIB@ NUMA_LIBS := @NUMA_LIBS@ SELINUX_LIBS := @SELINUX_LIBS@ +HAVE_RPC := @HAVE_RPC@ TIRPC_CFLAGS := @TIRPC_CFLAGS@ TIRPC_LIBS := @TIRPC_LIBS@ KEYUTILS_LIBS := @KEYUTILS_LIBS@
m4/ltp-tirpc.m4 +14 -0
@@ -5,10 +5,24 @@ dnl Copyright (c) 2014 Oracle and/or its affiliates. All Rights Reserved. AC_DEFUN([LTP_CHECK_TIRPC], [ dnl libtirpc library and headers PKG_CHECK_MODULES([LIBTIRPC], [libtirpc], [ + have_libtirpc=yes TIRPC_CFLAGS=$LIBTIRPC_CFLAGS TIRPC_LIBS=$LIBTIRPC_LIBS ], [have_libtirpc=no]) + dnl TI-RPC headers (in glibc, since 2.26 installed only when configured + dnl with --enable-obsolete-rpc) + dnl NOTE: To port tests for ntirpc would require use non-deprecated + dnl functions as it does not have the deprecated ones any more (e.g. use + dnl rpc_broadcast() instead of clnt_broadcast()), but glibc implementation + dnl does not have the new ones. We could either provide the deprecated + dnl functions (copy from libtirpc src/rpc_soc.c) or drop glibc tests. + AC_CHECK_HEADERS([rpc/rpc.h], [have_rpc_headers=yes]) + + if test "x$have_libtirpc" = "xyes" -o "x$have_rpc_headers" = "xyes"; then + AC_SUBST(HAVE_RPC, 1) + fi + dnl fix for old pkg-config (< 0.24) dnl https://autotools.io/pkgconfig/pkg_check_modules.html AC_SUBST(TIRPC_CFLAGS)
testcases/network/Makefile +3 -21
@@ -1,24 +1,6 @@ -# -# network test suite Makefile. -# -# Copyright (C) 2009, Cisco Systems Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# +# Copyright (C) 2009, Cisco Systems Inc. +# Copyright (c) 2020 Petr Vorel <[email protected]> # Ngie Cooper, July 2009 -# top_srcdir ?= ../..
@@ -39,7 +21,7 @@ ifeq ($(ANDROID),1) FILTER_OUT_DIRS += lib6 rpc sockets endif -ifeq ($(TIRPC_LIBS),) +ifeq ($(HAVE_RPC),) FILTER_OUT_DIRS += rpc endif
testcases/network/rpc/basic_tests/rpc01/rpc_server.c +1 -1
@@ -6,7 +6,7 @@#include <stdlib.h> #include <string.h> #include <unistd.h> -#include <rpc/rpc.h> +#include "rpc.h" #include "librpc01.h" int debug =0 ;
testcases/network/rpc/rpc-tirpc/tests_pack/Makefile +9 -17
@@ -1,20 +1,5 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# +# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. +# Copyright (c) 2020 Petr Vorel <[email protected]> top_srcdir ?= ../../../../..
@@ -24,6 +9,13 @@ LIBDIR := lib FILTER_OUT_DIRS := $(LIBDIR) LIB := $(LIBDIR)/librpc-tirpc.a +# keep only rpc_* +ifeq ($(TIRPC_LIBS),) +FILTER_OUT_MAKE_TARGETS += tirpc_cleaner +FILTER_OUT_DIRS += tirpc_svc_1 tirpc_svc_2 tirpc_svc_3 tirpc_svc_4 tirpc_svc_5 tirpc_svc_6 tirpc_svc_7 tirpc_svc_8 tirpc_svc_9 tirpc_svc_11 +endif + + $(LIBDIR): mkdir -p "$@"
testcases/network/rpc/rpc-tirpc/tests_pack/include/rpc.h +6 -0
@@ -13,4 +13,10 @@#include <rpc/xdr.h> #include <rpc/svc.h> +/* +* For pmap_unset() and clnt_broadcast(). +* Needed for glibc, which does not include <rpc/pmap_clnt.h> in <rpc/rpc.h>. +*/ +#include <rpc/pmap_clnt.h> +#endif /* RPC_H__ */
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_cleaner.c +1 -1
@@ -18,7 +18,7 @@*/ #include <stdio.h> -#include <rpc/rpc.h> +#include "rpc.h" #define VERSNUM 1/* Default version used in the test binaries */
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/Makefile +8 -17
@@ -1,22 +1,13 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# +# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. +# Copyright (c) 2020 Petr Vorel <[email protected]> top_srcdir ?= ../../../../../../.. +ifeq ($(TIRPC_LIBS),) +# glibc does not define registerrpc() in <rpc/rpc.h> +# registerrpc() is deprecated in libtirpc, it should be replaced by rpc_reg() +FILTER_OUT_DIRS += rpc_regunreg_registerrpc +endif + include $(top_srcdir)/include/mk/env_pre.mk include $(top_srcdir)/include/mk/generic_trunk_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_pmap_getport/rpc_pmap_getport.c +1 -1
@@ -29,8 +29,8 @@#include <stdio.h> #include <rpc/rpc.h> #include <netinet/in.h> -#include <rpc/pmap_clnt.h> #include <netdb.h> +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_pmap_rmtcall/rpc_pmap_rmtcall.c +1 -1
@@ -27,9 +27,9 @@#include <stdlib.h> #include <stdio.h> -#include <rpc/rpc.h> #include <errno.h> #include <netdb.h> +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_pmap_rmtcall/rpc_pmap_rmtcall_performance.c +1 -1
@@ -28,9 +28,9 @@#include <stdio.h> #include <stdlib.h> #include <sys/time.h> -#include <rpc/rpc.h> #include <errno.h> #include <netdb.h> +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_pmap_rmtcall/rpc_pmap_rmtcall_stress.c +1 -1
@@ -27,9 +27,9 @@#include <stdlib.h> #include <stdio.h> -#include <rpc/rpc.h> #include <errno.h> #include <netdb.h> +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_pmap_set/rpc_pmap_set.c +1 -1
@@ -27,7 +27,7 @@#include <stdlib.h> #include <stdio.h> -#include <rpc/rpc.h> +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_addrmanagmt_pmap_unset/rpc_pmap_unset.c +1 -1
@@ -27,7 +27,7 @@#include <stdlib.h> #include <stdio.h> -#include <rpc/rpc.h> +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_broadc_clnt_broadcast/rpc_clnt_broadcast.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include <rpc/rpc.h> +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_broadc_clnt_broadcast/rpc_clnt_broadcast_complex.c +1 -2
@@ -28,10 +28,9 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include <rpc/rpc.h> #include <sys/socket.h> #include <netdb.h> -#include <rpc/pmap_clnt.h> +#include "rpc.h" //Standard define #define PROCNUM 1000
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_broadc_clnt_broadcast/rpc_clnt_broadcast_dataint.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <string.h> #include <time.h> -#include <rpc/rpc.h> +#include "rpc.h" //Standard define #define INTPROCNUM 1000
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_broadc_clnt_broadcast/rpc_clnt_broadcast_performance.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <sys/time.h> -#include <rpc/rpc.h> +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_broadc_clnt_broadcast/rpc_clnt_broadcast_scalability.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <sys/time.h> -#include <rpc/rpc.h> +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_broadc_clnt_broadcast/rpc_clnt_broadcast_stress.c +1 -1
@@ -28,7 +28,7 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include <rpc/rpc.h> +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_regunreg_registerrpc/rpc_registerrpc.c +1 -1
@@ -28,10 +28,10 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include <rpc/rpc.h> #include <sys/types.h> #include <sys/socket.h> #include <utmp.h> +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_regunreg_svc_register/rpc_svc_register.c +1 -1
@@ -28,9 +28,9 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include <rpc/rpc.h> #include <sys/types.h> #include <sys/socket.h> +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_regunreg_svc_unregister/rpc_svc_unregister.c +1 -1
@@ -28,9 +28,9 @@#include <stdio.h> #include <stdlib.h> #include <time.h> -#include <rpc/rpc.h> #include <sys/types.h> #include <sys/socket.h> +#include "rpc.h" //Standard define #define PROCNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_svc_freeargs/rpc_svc_freeargs_svc.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <string.h> #include <time.h> -#include <rpc/rpc.h> +#include "rpc.h" //Standard define #define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_svc_getargs/rpc_svc_getargs.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <string.h> #include <time.h> -#include <rpc/rpc.h> +#include "rpc.h" //Standard define #define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_stdcall_svc_sendreply/rpc_svc_sendreply.c +1 -1
@@ -29,7 +29,7 @@#include <stdlib.h> #include <string.h> #include <time.h> -#include <rpc/rpc.h> +#include "rpc.h" //Standard define #define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_svc_1/rpc_svc_1.c +1 -1
@@ -27,8 +27,8 @@#include <stdio.h> #include <string.h> -#include <rpc/rpc.h> #include <utmp.h> +#include "rpc.h" //Standard define #define VERSNUM 1
testcases/network/rpc/rpc-tirpc/tests_pack/rpc_svc_2/rpc_svc_2.c +1 -1
@@ -27,8 +27,8 @@#include <stdio.h> #include <string.h> -#include <rpc/rpc.h> #include <utmp.h> +#include "rpc.h" //Standard define #define VERSNUM 1
Signature · 1 line
2.24.1
RFC PATCH v2 3/4 travis: Merge debian.cross-compile.*.sh
In reply to Petr Vorel--- .travis.yml | 6 +++--- travis/debian.cross-compile.aarch64.sh | 11 ----------- travis/debian.cross-compile.ppc64le.sh | 11 ----------- travis/debian.cross-compile.sh | 22 ++++++++++++++++++++++ 4 files changed, 25 insertions(+), 25 deletions(-) delete mode 100755 travis/debian.cross-compile.aarch64.sh delete mode 100755 travis/debian.cross-compile.ppc64le.sh create mode 100755 travis/debian.cross-compile.sh
.travis.yml +3 -3
@@ -12,11 +12,11 @@ matrix: # cross compilation builds - os: linux - env: DISTRO=debian:stable VARIANT=cross-compile.ppc64le TREE="out" + env: DISTRO=debian:stable VARIANT=cross-compile ARCH=ppc64el TREE="out" compiler: powerpc64le-linux-gnu-gcc - os: linux - env: DISTRO=debian:stable VARIANT=cross-compile.aarch64 TREE="out" + env: DISTRO=debian:stable VARIANT=cross-compile ARCH=arm64 TREE="out" compiler: aarch64-linux-gnu-gcc # musl (native)
@@ -98,4 +98,4 @@ script: - INSTALL="${INSTALL%%/*}" - if [ ! "$TREE" ]; then TREE="in"; fi - case $VARIANT in cross-compile*) BUILD="cross";; i386) BUILD="32";; *) BUILD="native";; esac - - docker run -t ltp /bin/sh -c "cd travis && ./$INSTALL.sh && if [ \"$VARIANT\" ]; then ./$INSTALL.$VARIANT.sh; fi && ../build.sh -o $TREE -t $BUILD -c $CC" + - docker run -t ltp /bin/sh -c "cd travis && ./$INSTALL.sh && if [ \"$VARIANT\" ]; then ARCH=\"$ARCH\" ./$INSTALL.$VARIANT.sh; fi && ../build.sh -o $TREE -t $BUILD -c $CC"
travis/debian.cross-compile.aarch64.sh deleted +0 -11
@@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright (c) 2018-2020 Petr Vorel <[email protected]> -set -e - -dpkg --add-architecture arm64 -apt update - -apt install -y --no-install-recommends \ - gcc-aarch64-linux-gnu \ - libc6-dev-arm64-cross \ - libtirpc-dev:arm64
travis/debian.cross-compile.ppc64le.sh deleted +0 -11
@@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright (c) 2018-2020 Petr Vorel <[email protected]> -set -e - -dpkg --add-architecture ppc64el -apt update - -apt install -y --no-install-recommends \ - gcc-powerpc64le-linux-gnu \ - libc6-dev-ppc64el-cross \ - libtirpc-dev:ppc64el
travis/debian.cross-compile.sh new file +22 -0
@@ -0,0 +1,22 @@ +#!/bin/sh +# Copyright (c) 2018-2020 Petr Vorel <[email protected]> +set -e + +if [ -z "$ARCH" ]; then + echo "missing \$ARCH!" >&2 + exit 1 +fi + +case "$ARCH" in +arm64) gcc_arch="aarch64";; +ppc64el) gcc_arch="powerpc64le";; +*) echo "unsupported arch: '$1'!" >&2; exit 1;; +esac + +dpkg --add-architecture $ARCH +apt update + +apt install -y --no-install-recommends \ + gcc-${gcc_arch}-linux-gnu \ + libc6-dev-${ARCH}-cross \ + libtirpc-dev:$ARCH
Signature · 1 line
2.24.1
RFC PATCH v2 4/4 rpc-tirpc: Remove unused tests
In reply to Petr VorelRemoved tests which were compiled but not run:
* tirpc_svc_6: multithreaded tests for all levels
* tirpc_svc_7: limits and dataint tests for all levels
* tirpc_svc_8: ping tests
* tirpc_svc_9: complex domain for all levels
Use of all but tirpc_svc_8 was removed in aa1e5d877 , tirpc_svc_8 was never used since including in c0caf8f23. Removed, as it'd be probably easier to write these tests from scratch than cleaning them.
--- testcases/network/rpc/rpc-tirpc/.gitignore | 4 - .../rpc-tirpc/tests_pack/tirpc_svc_6/Makefile | 23 -- .../tests_pack/tirpc_svc_6/tirpc_svc_6.c | 181 --------------- .../rpc-tirpc/tests_pack/tirpc_svc_7/Makefile | 23 -- .../tests_pack/tirpc_svc_7/tirpc_svc_7.c | 212 ------------------ .../rpc-tirpc/tests_pack/tirpc_svc_8/Makefile | 23 -- .../tests_pack/tirpc_svc_8/tirpc_svc_8.c | 183 --------------- .../rpc-tirpc/tests_pack/tirpc_svc_9/Makefile | 23 -- .../tests_pack/tirpc_svc_9/tirpc_svc_9.c | 192 ---------------- 9 files changed, 864 deletions(-) delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_6/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_6/tirpc_svc_6.c delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_7/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_7/tirpc_svc_7.c delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_8/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_8/tirpc_svc_8.c delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_9/Makefile delete mode 100644 testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_9/tirpc_svc_9.c
testcases/network/rpc/rpc-tirpc/.gitignore +0 -4
@@ -7,10 +7,6 @@ /tests_pack/tirpc_svc_3/tirpc_svc_3 /tests_pack/tirpc_svc_4/tirpc_svc_4 /tests_pack/tirpc_svc_5/tirpc_svc_5 -/tests_pack/tirpc_svc_6/tirpc_svc_6 -/tests_pack/tirpc_svc_7/tirpc_svc_7 -/tests_pack/tirpc_svc_8/tirpc_svc_8 -/tests_pack/tirpc_svc_9/tirpc_svc_9 /tests_pack/tirpc_svc_11/tirpc_svc_11 /tests_pack/rpc_suite/rpc/rpc_stdcall_clnt_control/rpc_clnt_control /tests_pack/rpc_suite/rpc/rpc_stdcall_clnt_control/rpc_clnt_control_dataint
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_6/Makefile deleted +0 -23
@@ -1,23 +0,0 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -top_srcdir ?= ../../../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk -include $(abs_srcdir)/../Makefile.inc -include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_6/tirpc_svc_6.c deleted +0 -181
181 lines not on this page · raw message
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_7/Makefile deleted +0 -23
@@ -1,23 +0,0 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -top_srcdir ?= ../../../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk -include $(abs_srcdir)/../Makefile.inc -include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_7/tirpc_svc_7.c deleted +0 -212
212 lines not on this page · raw message
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_8/Makefile deleted +0 -23
@@ -1,23 +0,0 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -top_srcdir ?= ../../../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk -include $(abs_srcdir)/../Makefile.inc -include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_8/tirpc_svc_8.c deleted +0 -183
183 lines not on this page · raw message
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_9/Makefile deleted +0 -23
@@ -1,23 +0,0 @@ -# -# Copyright (C) 2014, Oracle and/or its affiliates. All Rights Reserved. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# - -top_srcdir ?= ../../../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk -include $(abs_srcdir)/../Makefile.inc -include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/network/rpc/rpc-tirpc/tests_pack/tirpc_svc_9/tirpc_svc_9.c deleted +0 -192
192 lines not on this page · raw message
Signature · 1 line
2.24.1