Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 1003
blob197e96ba2c104ff22010a8280dfa6b365a212eae
1 #!/bin/sh
2 # PCP QA Test No. 1003
3 # Check that Global clause is detected
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 # real QA test starts here
17 cat <<End-of-File | pmchart -Dappl2 -C -c - 2>&1 | _filter_views
18 #pmchart
19 Version 1.1 host dynamic
21 Global width 800
22 Global height 600
23 Global points 30
25 Chart Title "Memory Usage" Style stacking
26 # IRIX
27 Optional-Plot Color #f8ff00 Host * Metric mem.util.kernel
28 Optional-Plot Color #00ffff Host * Metric mem.util.fs_ctl
29 Optional-Plot Color #ff0000 Host * Metric mem.util.fs_dirty
30 Optional-Plot Color #fe00ff Host * Metric mem.util.fs_clean
31 Optional-Plot Color #0000fd Host * Metric mem.util.user
33 # IRIX and Linux
34 Plot Color #00ff00 Host * Metric mem.util.free
36 # Linux
37 Optional-Plot Color #fefe32 Host * Metric mem.util.mapped
38 Optional-Plot Color #fe68ad Host * Metric mem.util.bufmem
39 Optional-Plot Color #00f1ea Host * Metric mem.util.pageTables
40 Optional-Plot Color #e873e4 Host * Metric mem.util.slab
41 Optional-Plot Color #327ffe Host * Metric mem.util.cached
42 Optional-Plot Color #007f00 Host * Metric mem.util.other
44 Chart Title "Dirty Buffers" Style stacking
45 Optional-Plot Color #fe3732 Host * Metric mem.util.dirty
46 Optional-Plot Color #ff8900 Host * Metric mem.util.writeback
47 Optional-Plot Color #008900 Host * Metric mem.util.cache_clean
48 End-of-File