File: 231

package info (click to toggle)
pcp 7.1.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 252,748 kB
  • sloc: ansic: 1,483,656; sh: 182,366; xml: 160,462; cpp: 83,813; python: 24,980; perl: 18,327; yacc: 6,877; lex: 2,864; makefile: 2,738; awk: 165; fortran: 60; java: 52
file content (33 lines) | stat: -rwxr-xr-x 923 bytes parent folder | download | duplicates (6)
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
#! /bin/sh
# PCP QA Test No. 231
# number w/out leading digit in pmie ... bug #421411
#
# Copyright (c) 1995-2002 Silicon Graphics, Inc.  All Rights Reserved.
#

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

# get standard filters
. ./common.product
. ./common.filter

status=1
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15

# real QA test starts here
cat >$tmp.conf <<'End-of-File'
delta = 1;
(1000 * 0.1 + hinv.ncpu - hinv.ncpu) != 100 -> print "%v != 100?";
(1000 * .1 + hinv.ncpu - hinv.ncpu) != 100 -> print "%v != 100?";
(1000 * 0.123 + hinv.ncpu - hinv.ncpu) != 123 -> print "%v != 123?";
(1000 * .123 + hinv.ncpu - hinv.ncpu) != 123 -> print "%v != 123?";
(0.4567e3 + hinv.ncpu - hinv.ncpu) != 456.7 -> print "%v != 456.7?";
(.4567e3 + hinv.ncpu - hinv.ncpu) != 456.7 -> print "%v != 456.7?";
End-of-File

pmie -T 1sec <$tmp.conf >$tmp.out 2>$tmp.err
status=$?
cat $tmp.out $tmp.err | _show_pmie_errors

exit