3 # Extended testing of multi-file MMV instances
5 # Copyright (c) 2009 Aconex. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
18 MMV_STATS_DIR
="$PCP_TMP_DIR/mmv"
20 # for QA the default install for mmv PMDA is as a dso, not a daemon
21 ( echo b
&& echo dso
) >$tmp.input
25 [ -d $MMV_STATS_DIR.
$seq ] && _restore_config
$MMV_STATS_DIR
26 _cleanup_pmda mmv
$tmp.input
30 trap "_cleanup; exit \$status" 0 1 2 3 15
32 # real QA test starts here
38 # move the MMV directory to restore contents later.
39 [ -d $MMV_STATS_DIR ] && _save_config
$MMV_STATS_DIR
41 # start from a known starting point
42 $sudo .
/Remove
>/dev
/null
2>&1
44 # create a directory we can write and pcp group can read
45 $sudo rm -rf "$MMV_STATS_DIR"
46 $sudo mkdir
-m 755 "$MMV_STATS_DIR"
47 $sudo chown
$username "$MMV_STATS_DIR"
48 $sudo chgrp pcp
"$MMV_STATS_DIR"
51 echo "=== $iam agent installation ==="
52 $sudo .
/Install
</dev
/null
>$tmp.out
2>&1
53 _filter_pmda_install
<$tmp.out
55 $here/src
/mmv_instances cats
56 $here/src
/mmv_instances dogs
57 $here/src
/mmv_instances mice
58 $here/src
/mmv2_instances cats2
59 $here/src
/mmv2_instances dogs2
60 $here/src
/mmv2_instances mice2
61 $here/src
/mmv2_instances film2
64 echo "=== validate values ==="
65 if pminfo
$iam | LC_COLLATE
=POSIX
sort >$tmp.names
67 for name
in `cat $tmp.names`
69 pminfo
-fdmtT $name | LC_COLLATE
=POSIX
sort -n
72 echo "... failed! ... here is the Install log ..."
77 echo "=== remove $iam agent ==="
78 $sudo .
/Remove
>$tmp.out
2>&1
79 _filter_pmda_remove
<$tmp.out