• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2# Copyright (c) 2020-2022 Petr Vorel <pvorel@suse.cz>
3
4TST_NEEDS_CMDS="rpcinfo $TST_NEEDS_CMDS"
5
6check_rpc()
7{
8	local services
9
10	tst_res TINFO "check registered RPC with rpcinfo"
11
12	services=$(rpcinfo -p)
13
14	if [ $? -ne 0 ] || ! echo "$services" | grep -q '[0-9]'; then
15		tst_brk TCONF "no RPC services, is rpcbind/portmap running?"
16	fi
17
18	tst_res TINFO "registered RPC:"
19	echo "$services"
20}
21
22. tst_net.sh
23