summaryrefslogtreecommitdiff
path: root/qa/226
blob: 0e8524415118c2e47b20f088bb1efbe437ebb74e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#! /bin/sh
# PCP QA Test No. 226
# Check for missing dbpmda help text
#
# Copyright (c) 2009 Silicon Graphics, Inc.  All Rights Reserved.
# Copyright (c) 2013 Red Hat.
#

seq=`basename $0`
echo "QA output created by $seq"

# get standard environment, filters and checks
. ./common.product
. ./common.filter
. ./common.check

rm -f $seq.out
if [ $PCP_VER -ge 3801 ]
then
    ln $seq.out.3 $seq.out || exit 1
elif [ $PCP_VER -ge 3800 ]
then
    ln $seq.out.2 $seq.out || exit 1
else
    ln $seq.out.1 $seq.out || exit 1
fi

status=0	# success is the default!
$sudo rm -rf $tmp.*
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15

# real QA test starts here
echo help | dbpmda 2>&1 | tee $tmp.cmds

sed -e 's/ .*//' <$tmp.cmds \
| LC_COLLATE=POSIX sort -u \
| while read cmd
do
    [ -z "$cmd" ] && continue
    [ "$cmd" = help ] && continue
    echo "help $cmd"
done \
| dbpmda -ie

# success, all done
exit