pmrep: update TODO, man page
[pcp.git] / qa / 188
blob1e436e6225b71f13c1da5c690ed2fa76b2248e69
1 #! /bin/sh
2 # PCP QA Test No. 188
3 # exercise __pmMktime
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 rm -f $seq.out
16 if [ $PCP_PLATFORM = irix ] ; then
17 ln $seq.irix $seq.out
18 elif [ $PCP_PLATFORM = linux ] ; then
19 # Linux is all over the shop here!
21 # History (linux version of $seq.out)
22 # glibc-2.3.3-98.* SuSE SLES9
24 # History (irix version of $seq.out)
25 # glibc-2.3.3-27 RedHat Fedora Core 2
27 if [ -f /etc/SuSE-release ]
28 then
29 case `cat /etc/SuSE-release`
31 'SUSE LINUX Enterprise Server 9 '*|\
32 'SUSE Linux Enterprise Server 10 '*|\
33 'SUSE Linux Enterprise Server 11 '*|\
34 'openSUSE 11'*|\
35 'openSUSE 12'*)
36 ln $seq.linux $seq.out
38 esac
39 elif [ -f /etc/redhat-release ]
40 then
41 case `cat /etc/redhat-release`
43 'Fedora Core release 2 '*)
44 ln $seq.irix $seq.out
46 'Fedora Core release 6 '*)
47 ln $seq.linux.fc6 $seq.out
49 'Fedora release 7'*)
50 ln $seq.linux.fc6 $seq.out
53 ln $seq.linux $seq.out
55 esac
56 elif [ -f /etc/debian_version ]
57 then
58 ln $seq.linux $seq.out
60 if [ ! -f $seq.out ]
61 then
62 # this is some old folklore ... better to handle in the explicit
63 # case above if possible
65 if which rpm >/dev/null 2>&1
66 then
67 case `rpm -q glibc`
69 glibc-1.*|glibc-2.[01].*|glibc-2.1[0-9]-*|glibc-2.2.[0-4]-*|glibc-2.3.3-*)
70 ln $seq.linux $seq.out
73 ln $seq.irix $seq.out
75 esac
76 elif which emerge >/dev/null 2>&1
77 then
78 # looking for a line like ...
79 # sys-libs/glibc-2.12.2 was built with the following:
80 version="`emerge --info glibc | sed -n -e '/was built with/{
81 s/ was built with.*//
82 s/.*\///
84 }'`"
85 case "$version"
87 glibc-2\.1[23][-.]*|glibc-2\.2[0][-.]*)
88 ln $seq.linux $seq.out
91 echo "Arrgh ... don't know what to do with glibc version $version"
92 exit 1
94 esac
95 else
96 echo "Arrg ... don't know how to determine glibc version"
97 exit 1
100 elif [ $PCP_PLATFORM = darwin ]
101 then
102 ln $seq.darwin $seq.out
103 elif [ $PCP_PLATFORM = solaris ]
104 then
105 ln $seq.solaris $seq.out
108 sts=0
109 trap "rm -f $tmp.*; exit \$sts" 0 1 2 3 15
111 # real QA test starts here
113 # dodge daylight saving nonsense
115 TZ=EST-11; export TZ
117 src/xmktime