3 # Exercise __pmSetClientId()
5 # Copyright (c) 2009 Ken McDonell. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=0 # success is the default!
18 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
23 egrep 'QA-clientid|Error|__pmSetClientId' \
24 |
sed -e 's/value ".* QA/value "<host> QA/' \
25 |
sed -e 's/\[/[ /' -e 's/]/ ]/' \
28 $1 == "inst" { if (seen[$3] == "") {
29 seen[$3] = "INST-" seq++
31 $5 = "\"" seen[$3] "\""
35 | LC_COLLATE
=POSIX
sort -u
38 # real QA test starts here
39 src
/clientid
-l a bb ccc dddd eeeee ffffff ggggggg hhhhhhhh iiiiiiiii
>$tmp.1.out
2>$tmp.1.err
&
42 src
/clientid
-l foo-bar-mumble
>$tmp.2.out
2>$tmp.2.err
&
45 src
/clientid
-l "here is a longer string to go in the ident place holder to try things out that are not quite so short and boring" >$tmp.3.out
2>$tmp.3.err
&
52 echo "=== $file ===" >>$seq.full