All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Kodanev <alexey.kodanev@oracle.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 2/2] rpc_test.sh: Print used TI-RPC implementation
Date: Wed, 20 May 2020 16:39:58 +0300	[thread overview]
Message-ID: <c46d8783-9c13-faac-a845-22199a6e2523@oracle.com> (raw)
In-Reply-To: <20200518211514.20445-2-pvorel@suse.cz>

On 19.05.2020 00:15, Petr Vorel wrote:
> This helps to debug glibc tests. Some of them are failing:
> Cannot register service: RPC: Unable to receive; errno = Connection refused
> 
> + unify case on message in check_portmap_rpcbind.
> 
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
>  testcases/network/rpc/basic_tests/rpc_lib.sh | 2 +-
>  testcases/network/rpc/rpc-tirpc/rpc_test.sh  | 7 +++++++
>  2 files changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/testcases/network/rpc/basic_tests/rpc_lib.sh b/testcases/network/rpc/basic_tests/rpc_lib.sh
> index 96dae8dd3..c7c868709 100644
> --- a/testcases/network/rpc/basic_tests/rpc_lib.sh
> +++ b/testcases/network/rpc/basic_tests/rpc_lib.sh
> @@ -11,5 +11,5 @@ check_portmap_rpcbind()
>  		pgrep rpcbind > /dev/null && PORTMAPPER="rpcbind" || \
>  			tst_brk TCONF "portmap or rpcbind is not running"
>  	fi
> -	tst_res TINFO "Using $PORTMAPPER"
> +	tst_res TINFO "using $PORTMAPPER"
>  }
> diff --git a/testcases/network/rpc/rpc-tirpc/rpc_test.sh b/testcases/network/rpc/rpc-tirpc/rpc_test.sh
> index dc97213d0..410482c14 100755
> --- a/testcases/network/rpc/rpc-tirpc/rpc_test.sh
> +++ b/testcases/network/rpc/rpc-tirpc/rpc_test.sh
> @@ -55,6 +55,13 @@ setup()
>  
>  	[ -n "$CLIENT" ] || tst_brk TBROK "client program not set"
>  	tst_check_cmds $CLIENT $SERVER || tst_brk TCONF "LTP compiled without TI-RPC support?"
> +
> +	tst_cmd_available ldd which || return
> +	if ldd $(which $CLIENT) |grep -q /libtirpc\.so; then
> +		tst_res TINFO "using libtirpc: yes"
> +	else
> +		tst_res TINFO "using libtirpc: no (probably using glibc)"
> +	fi
>  }
>  
>  cleanup()
> 

Acked-by: Alexey Kodanev <alexey.kodanev@oracle.com>

  reply	other threads:[~2020-05-20 13:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-18 21:15 [LTP] [PATCH 1/2] tst_net.sh: Print output on unexpected PASS/FAIL Petr Vorel
2020-05-18 21:15 ` [LTP] [PATCH 2/2] rpc_test.sh: Print used TI-RPC implementation Petr Vorel
2020-05-20 13:39   ` Alexey Kodanev [this message]
2020-05-20 13:39 ` [LTP] [PATCH 1/2] tst_net.sh: Print output on unexpected PASS/FAIL Alexey Kodanev
2020-05-20 14:25 ` Xiao Yang
2020-05-20 14:44   ` Petr Vorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c46d8783-9c13-faac-a845-22199a6e2523@oracle.com \
    --to=alexey.kodanev@oracle.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.