5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
16 if [ $PCP_PLATFORM = irix
] ; then
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
]
29 case `cat /etc/SuSE-release`
31 'SUSE LINUX Enterprise Server 9 '*|\
32 'SUSE Linux Enterprise Server 10 '*|\
33 'SUSE Linux Enterprise Server 11 '*|\
36 ln $seq.linux
$seq.out
39 elif [ -f /etc
/redhat-release
]
41 case `cat /etc/redhat-release`
43 'Fedora Core release 2 '*)
46 'Fedora Core release 6 '*)
47 ln $seq.linux.fc6
$seq.out
50 ln $seq.linux.fc6
$seq.out
53 ln $seq.linux
$seq.out
56 elif [ -f /etc
/debian_version
]
58 ln $seq.linux
$seq.out
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
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
76 elif which emerge
>/dev
/null
2>&1
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/{
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"
96 echo "Arrg ... don't know how to determine glibc version"
100 elif [ $PCP_PLATFORM = darwin
]
102 ln $seq.darwin
$seq.out
103 elif [ $PCP_PLATFORM = solaris
]
105 ln $seq.solaris
$seq.out
109 trap "rm -f $tmp.*; exit \$sts" 0 1 2 3 15
111 # real QA test starts here
113 # dodge daylight saving nonsense