build: Makepkgs support for vector deb building
[pcp.git] / qa / 155
blob8466b1f24f73110781f1527c93fc357d61685bad
1 #! /bin/sh
2 # PCP QA Test No. 155
3 # verify PMDA not ready protocol
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard filters
12 . ./common.product
13 . ./common.filter
15 trap "pmstore sample.long.write_me 13 >/dev/null; rm -f $tmp.*; exit" 0 1 2 3 15
17 # for newer versions, we default to local sockets (without
18 # auto-credential transfer to the PMDA, which causes early
19 # protocol exchange between PMCD/PMDA, and circumvents the
20 # goal of this test).
21 target=""
22 hostname=`hostname`
23 target="-h $hostname"
25 pmstore sample.not_ready 5
27 for i in no yes
29 if [ "$i" = no ]
30 then
31 echo "-- THESE SHOULD RETURN PM_ERR_AGAIN --"
32 else
33 sleep 8
34 echo
35 echo "-- THESE SHOULD SUCCEED --"
38 echo
39 echo "descriptor request:"
40 pminfo $target -d sample.long.ten
41 echo
42 echo "short help text request:"
43 pminfo $target -t sample.long.ten
44 echo
45 echo "long help text request:"
46 pminfo $target -T sample.long.ten
47 echo
48 echo "fetch request:"
49 src/fetchpdu $target
50 echo
51 echo "store request:"
52 src/storepdu $target
54 done