docs: tweak formatting in pmrep(1) archive folio example
[pcp.git] / qa / 222
blob60dcbbd07761a56b1086535e8a489aa512f0b7a9
1 #! /bin/sh
2 # PCP QA Test No. 222
3 # Check symlinks in $PCP_PMDAS_DIR
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 status=0
16 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
18 # real QA test starts here
19 echo "expect no output ..."
21 if [ ! -d $PCP_PMDAS_DIR ]
22 then
23 echo "No $PCP_PMDAS_DIR dir?"
24 exit 1
27 cd $PCP_PMDAS_DIR
29 for dir in *
31 if [ $dir = "irix" ]
32 then
33 continue
36 if [ -L $dir ]
37 then
38 if [ ! -d $dir ]
39 then
40 echo "Error: symlink $PCP_PMDAS_DIR/$dir -> nowhere?"
42 elif [ -d $dir ]
43 then
44 if [ ! -L /usr/pcp/pmdas/$dir -a -d /usr/pcp/pmdas/$dir ]
45 then
46 echo "Error: $dir directory in both /usr/pcp and /var/pcp!"
48 else
49 echo "Error: what is $PCP_PMDAS_DIR/$dir?"
52 done
54 # all done
55 exit