--- /dev/null
+LC_ALL=C TZ="America/New_York" ./sadf -d tests/data-tz.tmp -- -uw > tests/out.sadf-d-tz.tmp && diff -u tests/expected.sadf-d-tz tests/out.sadf-d-tz.tmp
--- /dev/null
+LC_ALL=C TZ="America/New_York" ./sadf -d tests/data-tz.tmp -T -- -uw > tests/out.sadf-d-T-tz.tmp && diff -u tests/expected.sadf-d-T-tz tests/out.sadf-d-T-tz.tmp
--- /dev/null
+LC_ALL=C TZ="America/New_York" ./sadf -d tests/data-tz.tmp -t -- -uw > tests/out.sadf-d-t-tz.tmp && diff -u tests/expected.sadf-d-t-tz tests/out.sadf-d-t-tz.tmp
--- /dev/null
+LC_ALL=C TZ="America/New_York" ./sadf -r tests/data-tz.tmp -- -uw > tests/out.sadf-r-tz.tmp && diff -u tests/expected.sadf-r-tz tests/out.sadf-r-tz.tmp
--- /dev/null
+LC_ALL=C TZ="America/New_York" ./sadf -r tests/data-tz.tmp -T -- -uw > tests/out.sadf-r-T-tz.tmp && diff -u tests/expected.sadf-r-T-tz tests/out.sadf-r-T-tz.tmp
--- /dev/null
+LC_ALL=C TZ="America/New_York" ./sadf -r tests/data-tz.tmp -t -- -uw > tests/out.sadf-r-t-tz.tmp && diff -u tests/expected.sadf-r-t-tz tests/out.sadf-r-t-tz.tmp
01900 LC_ALL=C TZ="America/New_York" ./sadf -g tests/data-tz.tmp -- -uw | grep ":20:" > tests/out.sadf-tz.tmp
01905 LC_ALL=C TZ="America/New_York" ./sadf -g tests/data-tz.tmp -T -- -uw | grep ":20:" > tests/out.sadf-T-tz.tmp
01908 LC_ALL=C TZ="America/New_York" ./sadf -g tests/data-tz.tmp -t -- -uw > tests/out.sadf-t-tz.tmp
+01910 LC_ALL=C TZ="America/New_York" ./sadf -d tests/data-tz.tmp -- -uw > tests/out.sadf-d-tz.tmp
+01915 LC_ALL=C TZ="America/New_York" ./sadf -d tests/data-tz.tmp -T -- -uw > tests/out.sadf-d-T-tz.tmp
+01918 LC_ALL=C TZ="America/New_York" ./sadf -d tests/data-tz.tmp -t -- -uw > tests/out.sadf-d-t-tz.tmp
+01920 LC_ALL=C TZ="America/New_York" ./sadf -r tests/data-tz.tmp -- -uw > tests/out.sadf-r-tz.tmp
+01925 LC_ALL=C TZ="America/New_York" ./sadf -r tests/data-tz.tmp -T -- -uw > tests/out.sadf-r-T-tz.tmp
+01928 LC_ALL=C TZ="America/New_York" ./sadf -r tests/data-tz.tmp -t -- -uw > tests/out.sadf-r-t-tz.tmp
===== iostat tests (basic output)
02010 LC_ALL=C TZ=GMT ./iostat 2 3 > tests/out.iostat.tmp
--- /dev/null
+# hostname;interval;timestamp;CPU;%user;%nice;%system;%iowait;%steal;%idle
+SYSSTAT.TEST;31;2019-04-18 09:20:19;-1;2.15;12.50;2.36;0.12;0.00;82.88
+SYSSTAT.TEST;31;2019-04-18 09:20:29;-1;2.28;0.00;1.93;0.48;0.00;95.31
+# hostname;interval;timestamp;proc/s;cswch/s
+SYSSTAT.TEST;31;2019-04-18 09:20:19;3.56;68409.30
+SYSSTAT.TEST;31;2019-04-18 09:20:29;4.83;46287.74
--- /dev/null
+# hostname;interval;timestamp;CPU;%user;%nice;%system;%iowait;%steal;%idle
+SYSSTAT.TEST;31;2019-04-18 15:20:19 CET;-1;2.15;12.50;2.36;0.12;0.00;82.88
+SYSSTAT.TEST;31;2019-04-18 15:20:29 CET;-1;2.28;0.00;1.93;0.48;0.00;95.31
+# hostname;interval;timestamp;proc/s;cswch/s
+SYSSTAT.TEST;31;2019-04-18 15:20:19 CET;3.56;68409.30
+SYSSTAT.TEST;31;2019-04-18 15:20:29 CET;4.83;46287.74
--- /dev/null
+# hostname;interval;timestamp;CPU;%user;%nice;%system;%iowait;%steal;%idle
+SYSSTAT.TEST;31;2019-04-18 13:20:19 UTC;-1;2.15;12.50;2.36;0.12;0.00;82.88
+SYSSTAT.TEST;31;2019-04-18 13:20:29 UTC;-1;2.28;0.00;1.93;0.48;0.00;95.31
+# hostname;interval;timestamp;proc/s;cswch/s
+SYSSTAT.TEST;31;2019-04-18 13:20:19 UTC;3.56;68409.30
+SYSSTAT.TEST;31;2019-04-18 13:20:29 UTC;4.83;46287.74
--- /dev/null
+09:20:19; CPU; -1; %user; 96005; 96538; %nice; 2578701; 2581805; %system; 107589; 108174; %iowait; 60648; 60677; %steal; 0; 0; %idle; 3617879; 3638469;
+09:20:29; CPU; -1; %user; 96538; 97026; %nice; 2581805; 2584918; %system; 108174; 108649; %iowait; 60677; 60803; %steal; 0; 0; %idle; 3638469; 3659199;
+09:20:19; proc/s; 46972; 47083; cswch/s; 130465866; 132598184;
+09:20:29; proc/s; 47083; 47234; cswch/s; 132598184; 134044213;
--- /dev/null
+15:20:19 CET; CPU; -1; %user; 96005; 96538; %nice; 2578701; 2581805; %system; 107589; 108174; %iowait; 60648; 60677; %steal; 0; 0; %idle; 3617879; 3638469;
+15:20:29 CET; CPU; -1; %user; 96538; 97026; %nice; 2581805; 2584918; %system; 108174; 108649; %iowait; 60677; 60803; %steal; 0; 0; %idle; 3638469; 3659199;
+15:20:19 CET; proc/s; 46972; 47083; cswch/s; 130465866; 132598184;
+15:20:29 CET; proc/s; 47083; 47234; cswch/s; 132598184; 134044213;
--- /dev/null
+13:20:19 UTC; CPU; -1; %user; 96005; 96538; %nice; 2578701; 2581805; %system; 107589; 108174; %iowait; 60648; 60677; %steal; 0; 0; %idle; 3617879; 3638469;
+13:20:29 UTC; CPU; -1; %user; 96538; 97026; %nice; 2581805; 2584918; %system; 108174; 108649; %iowait; 60677; 60803; %steal; 0; 0; %idle; 3638469; 3659199;
+13:20:19 UTC; proc/s; 46972; 47083; cswch/s; 130465866; 132598184;
+13:20:29 UTC; proc/s; 47083; 47234; cswch/s; 132598184; 134044213;
<text x="648" y="10" style="fill: #ffffff; stroke: none; font-size: 12px; text-anchor: start" transform="rotate(45,648,0)">15:20:27</text>
<polyline points="20,0 20,-200" style="vector-effect: non-scaling-stroke; stroke: #202020" transform="scale(36.000000,1)"/>
<text x="720" y="10" style="fill: #ffffff; stroke: none; font-size: 12px; text-anchor: start" transform="rotate(45,720,0)">15:20:29</text>
-<text x="-10" y="30" style="fill: #ffff00; stroke: none; font-size: 12px; text-anchor: end">UTC</text>
+<text x="-10" y="30" style="fill: #ffff00; stroke: none; font-size: 12px; text-anchor: end">CET</text>
<g style="fill: #00cc00; stroke: none" transform="scale(36.000000,-2.000000)">
<rect x="0" y="0.00" height="2.15" width="31"/><rect x="0" y="0.00" height="2.28" width="31"/>
</g>
<text x="648" y="10" style="fill: #ffffff; stroke: none; font-size: 12px; text-anchor: start" transform="rotate(45,648,0)">15:20:27</text>
<polyline points="20,0 20,-200" style="vector-effect: non-scaling-stroke; stroke: #202020" transform="scale(36.000000,1)"/>
<text x="720" y="10" style="fill: #ffffff; stroke: none; font-size: 12px; text-anchor: start" transform="rotate(45,720,0)">15:20:29</text>
-<text x="-10" y="30" style="fill: #ffff00; stroke: none; font-size: 12px; text-anchor: end">UTC</text>
+<text x="-10" y="30" style="fill: #ffff00; stroke: none; font-size: 12px; text-anchor: end">CET</text>
<path d=" M10,3.56 L20,4.83" style="vector-effect: non-scaling-stroke; stroke: #00cc00; stroke-width: 1; fill-opacity: 0" transform="scale(36.000000,-41.377483)"/>
</g>
<rect x="0" y="310" height="300" width="1050" fill="#000000"/>
<text x="648" y="10" style="fill: #ffffff; stroke: none; font-size: 12px; text-anchor: start" transform="rotate(45,648,0)">15:20:27</text>
<polyline points="20,0 20,-200" style="vector-effect: non-scaling-stroke; stroke: #202020" transform="scale(36.000000,1)"/>
<text x="720" y="10" style="fill: #ffffff; stroke: none; font-size: 12px; text-anchor: start" transform="rotate(45,720,0)">15:20:29</text>
-<text x="-10" y="30" style="fill: #ffff00; stroke: none; font-size: 12px; text-anchor: end">UTC</text>
+<text x="-10" y="30" style="fill: #ffff00; stroke: none; font-size: 12px; text-anchor: end">CET</text>
<path d=" M10,68409.30 L20,46287.74" style="vector-effect: non-scaling-stroke; stroke: #ff00bf; stroke-width: 1; fill-opacity: 0" transform="scale(36.000000,-0.002924)"/>
</g>
</g>