simtest: all
@$(foreach x, $(TESTLIST), $(MAKE) X=$x unit || exit;)
+ rm -f tests/root
+ ln -s root1 tests/root
clean:
rm -f sadc sar sadf iostat tapestat mpstat pidstat cifsiostat *.o *.a core TAGS tests/*.tmp
rm -f tests/root
ln -s root5 tests/root
./sadc --unix_time=1555593649 -S XALL tests/data.tmp 1 1 >/dev/null
-
-rm -f tests/root
-ln -s root1 tests/root
+rm -f tests/root
+ln -s root1 tests/root
./sadc --unix_time=1555594649 tests/data.tmp
ln -s root6 tests/root
./sadc --unix_time=1555595649 tests/data.tmp
-
-rm -f tests/root
-ln -s root1 tests/root
rm -f tests/root
ln -s root7 tests/root
./sadc --unix_time=1555595675 -S XALL tests/data.tmp 1 1 >/dev/null
-
-rm -f tests/root
-ln -s root1 tests/root
ln -s root1 tests/root
./mpstat -o JSON 1 10 | $VER_JSON >/dev/null;
fi
-rm -f tests/root
-ln -s root1 tests/root
ln -s root1 tests/root
./iostat -p ALL -o JSON 1 10 | $VER_JSON >/dev/null;
fi
-rm -f tests/root
-ln -s root1 tests/root
+rm -f tests/root
+ln -s root1 tests/root
LC_ALL=C TZ=GMT ./sar -dh -j UUID -f tests/data.tmp > tests/out.sar-jUUID.tmp
rm -f tests/root
ln -s root1 tests/root
./sadc --unix_time=1555593609 -S A_NULL,A_PCSW tests/data0.tmp >/dev/null
-
-rm -f tests/root
-ln -s root1 tests/root
rm -f tests/root
ln -s root7 tests/root
./sadc --unix_time=1555593651 -S XALL tests/data0.tmp 1 1 >/dev/null
-
-rm -f tests/root
-ln -s root1 tests/root
+rm -f tests/root
+ln -s root1 tests/root
./sadc -F 1 1 -
rm -f tests/root
ln -s root1 tests/root
LC_ALL=C TZ=GMT ./sar --unix_time=1556755203 -o tests/sa-sigint.tmp 1 10 > /dev/null
-rm -f tests/root
-ln -s root1 tests/root
--- /dev/null
+./sadf -g tests/data-trunc -- -A > tests/out.sadf-g-trunc.tmp 2>/dev/null
--- /dev/null
+diff -u tests/out.sadf-g-trunc.tmp tests/expected.sadf-g-trunc
===== Testing error cases
01400 LC_ALL=C TZ=GMT ./sar -f tests/data-trunc 2>&1 | grep "End of system activity file unexpected" >/dev/null
+01405 ./sadf -g tests/data-trunc -- -A > tests/out.sadf-g-trunc.tmp 2>/dev/null
+ [Check that sadf -g terminates properly on truncated input file]
+01406 diff -u tests/out.sadf-g-trunc.tmp tests/expected.sadf-g-trunc
01410 ./sar 0 0 2>&1 | grep "Usage:" >/dev/null
01415 ./sar 0 2 2>&1 | grep "Usage:" >/dev/null
01420 ./sar 2 0 2>&1 | grep "Usage:" >/dev/null
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg xmlns="http://www.w3.org/2000/svg" width="1060" height="100" fill="black" stroke="#808080" stroke-width="1">
+<text x="0" y="30" text-anchor="start" stroke="#a52a2a">Linux 1.2.3-TEST (SYSSTAT.TEST) 05/02/2019 _x86_64_ (8 CPU)
+</text>
+<text x= "0" y="60" text-anchor="start" stroke="#ff0000">No data!</text>
+<!-- Actual canvas height: 60 -->
+</svg>