Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 1006
blob9dc2a52564778c11b339a7af88ec26706d6e76d7
1 #!/bin/sh
2 # PCP QA Test No. 1006
3 # Check units compatibility in view loading
5 seq=`basename $0`
6 echo "QA output created by $seq"
8 status=0 # success is the default!
9 . ./common.qt
10 trap "_cleanup_qt; exit \$status" 0 1 2 3 15
12 _check_display
13 which pmchart >/dev/null 2>&1 || _notrun "pmchart not installed"
15 _filter_debug()
17 sed \
18 -e '/SamplingItem::replot/d' \
19 # end
22 # real QA test starts here
23 PCP_STDERR=$tmp.post
24 for config in views/006-01 views/006-02 views/006-03 views/006-04 views/006-05
26 echo "=== $config ==="
27 cat $config
28 rm -f $tmp.post
29 pmchart -CC -D appl0 -c $config >$tmp.out 2>$tmp.err
30 echo "exit=$?"
31 echo "--- out ---"
32 cat $tmp.out
33 echo "--- err ---"
34 _filter_console <$tmp.err | _filter_debug | _filter_views
35 echo "--- post ---"
36 if [ -f $tmp.post ]
37 then
38 _filter_post <$tmp.post
40 done
42 # success, all done
43 exit