3 # multi-thread - fetch and profile services for contented contexts
5 # Copyright (c) 2011 Ken McDonell. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
17 $multi_threaded || _notrun
"No libpcp threading support"
19 status
=0 # success is the default!
20 $sudo rm -f $tmp.
* /tmp
/func?.out
$seq.full
21 trap "rm -f $tmp.* /tmp/func?.out; exit \$status" 0 1 2 3 15
23 # real QA test starts here
24 echo "Only one context ..."
25 src
/multithread7 localhost
26 cat /tmp
/func?.out | LC_COLLATE
=POSIX
sort |
uniq -c |
sed -e 's/ */ /g'
29 echo "Two contexts, same host, different fd's ..."
30 src
/multithread7
`hostname` localhost
31 cat /tmp
/func?.out | LC_COLLATE
=POSIX
sort |
uniq -c |
sed -e 's/ */ /g'
34 echo "Two contexts, same host, same fd's ..."
35 src
/multithread7
`hostname` `hostname`
36 cat /tmp
/func?.out | LC_COLLATE
=POSIX
sort |
uniq -c |
sed -e 's/ */ /g'
39 echo "Three contexts, same host, different fd's ..."
40 src
/multithread7
`hostname` localhost
127.0.0.1
41 cat /tmp
/func?.out | LC_COLLATE
=POSIX
sort |
uniq -c |
sed -e 's/ */ /g'
44 echo "Three contexts, same host, same fd's ..."
45 src
/multithread7
`hostname` `hostname` `hostname`
46 cat /tmp
/func?.out | LC_COLLATE
=POSIX
sort |
uniq -c |
sed -e 's/ */ /g'